public class GetCopyReferenceResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
copyReference |
protected java.util.Date |
expires |
protected Metadata |
metadata |
Constructor and Description |
---|
GetCopyReferenceResult(Metadata metadata,
java.lang.String copyReference,
java.util.Date expires) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCopyReference()
A copy reference to the file or folder.
|
java.util.Date |
getExpires()
The expiration date of the copy reference.
|
Metadata |
getMetadata()
Metadata of the file or folder.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final Metadata metadata
protected final java.lang.String copyReference
protected final java.util.Date expires
public GetCopyReferenceResult(Metadata metadata, java.lang.String copyReference, java.util.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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public Metadata getMetadata()
null
.public java.lang.String getCopyReference()
null
.public java.util.Date getExpires()
null
.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.