public class GetCopyReferenceResult extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
copyReference |
protected Date |
expires |
protected Metadata |
metadata |
Constructor and Description |
---|
GetCopyReferenceResult(Metadata metadata,
String copyReference,
Date expires) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCopyReference()
A copy reference to the file or folder.
|
Date |
getExpires()
The expiration date of the copy reference.
|
Metadata |
getMetadata()
Metadata of the file or folder.
|
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final Metadata metadata
protected final String copyReference
protected final Date expires
public GetCopyReferenceResult(Metadata metadata, String copyReference, Date expires)
metadata
- Metadata of the file or folder. Must not be null
.copyReference
- A copy reference to the file or folder. Must not be
null
.expires
- The expiration date of the copy reference. This value is
currently set to be far enough in the future so that expiration is
effectively not an issue. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public Metadata getMetadata()
null
.public String getCopyReference()
null
.public Date getExpires()
null
.public String toStringMultiline()
The returned String may contain newlines.