public class Content
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
contentKey |
protected ContentPurpose |
purpose |
| Constructor and Description |
|---|
Content(ContentPurpose purpose,
java.lang.String contentKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContentKey()
The key returned from an upload_additional_content response.
|
ContentPurpose |
getPurpose() |
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final ContentPurpose purpose
protected final java.lang.String contentKey
public Content(ContentPurpose purpose, java.lang.String contentKey)
purpose - Must not be null.contentKey - The key returned from an upload_additional_content
response. Must not be null.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public ContentPurpose getPurpose()
null.public java.lang.String getContentKey()
null.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.