public class FileRequestChangeDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FileRequestChangeDetails.Builder
Builder for
FileRequestChangeDetails . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fileRequestId |
protected FileRequestDetails |
newDetails |
protected FileRequestDetails |
previousDetails |
Constructor and Description |
---|
FileRequestChangeDetails(FileRequestDetails newDetails)
Changed file request.
|
FileRequestChangeDetails(FileRequestDetails newDetails,
java.lang.String fileRequestId,
FileRequestDetails previousDetails)
Changed file request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFileRequestId()
File request id.
|
FileRequestDetails |
getNewDetails()
New file request details.
|
FileRequestDetails |
getPreviousDetails()
Previous file request details.
|
int |
hashCode() |
static FileRequestChangeDetails.Builder |
newBuilder(FileRequestDetails newDetails)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String fileRequestId
protected final FileRequestDetails previousDetails
protected final FileRequestDetails newDetails
public FileRequestChangeDetails(FileRequestDetails newDetails, java.lang.String fileRequestId, FileRequestDetails previousDetails)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
newDetails
- New file request details. Must not be null
.fileRequestId
- File request id. Might be missing due to historical
data gap. Must have length of at least 1 and match pattern "[-_0-9a-zA-Z]+
".previousDetails
- Previous file request details. Might be missing
due to historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileRequestChangeDetails(FileRequestDetails newDetails)
The default values for unset fields will be used.
newDetails
- New file request details. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileRequestDetails getNewDetails()
null
.public java.lang.String getFileRequestId()
null
if not present.public FileRequestDetails getPreviousDetails()
null
if not present.public static FileRequestChangeDetails.Builder newBuilder(FileRequestDetails newDetails)
newDetails
- New file request details. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.