@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReferenceSummary extends Object implements Serializable, Cloneable, StructuredPojo
Contains summary information about a reference. ReferenceSummary contains only one non null field
between the URL and attachment based on the reference type.
| Constructor and Description |
|---|
ReferenceSummary() |
| Modifier and Type | Method and Description |
|---|---|
ReferenceSummary |
clone() |
boolean |
equals(Object obj) |
AttachmentReference |
getAttachment()
Information about the reference when the
referenceType is ATTACHMENT. |
DateReference |
getDate()
Information about a reference when the
referenceType is DATE. |
EmailReference |
getEmail()
Information about a reference when the
referenceType is EMAIL. |
NumberReference |
getNumber()
Information about a reference when the
referenceType is NUMBER. |
StringReference |
getString()
Information about a reference when the
referenceType is STRING. |
UrlReference |
getUrl()
Information about the reference when the
referenceType is URL. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttachment(AttachmentReference attachment)
Information about the reference when the
referenceType is ATTACHMENT. |
void |
setDate(DateReference date)
Information about a reference when the
referenceType is DATE. |
void |
setEmail(EmailReference email)
Information about a reference when the
referenceType is EMAIL. |
void |
setNumber(NumberReference number)
Information about a reference when the
referenceType is NUMBER. |
void |
setString(StringReference string)
Information about a reference when the
referenceType is STRING. |
void |
setUrl(UrlReference url)
Information about the reference when the
referenceType is URL. |
String |
toString()
Returns a string representation of this object.
|
ReferenceSummary |
withAttachment(AttachmentReference attachment)
Information about the reference when the
referenceType is ATTACHMENT. |
ReferenceSummary |
withDate(DateReference date)
Information about a reference when the
referenceType is DATE. |
ReferenceSummary |
withEmail(EmailReference email)
Information about a reference when the
referenceType is EMAIL. |
ReferenceSummary |
withNumber(NumberReference number)
Information about a reference when the
referenceType is NUMBER. |
ReferenceSummary |
withString(StringReference string)
Information about a reference when the
referenceType is STRING. |
ReferenceSummary |
withUrl(UrlReference url)
Information about the reference when the
referenceType is URL. |
public void setUrl(UrlReference url)
Information about the reference when the referenceType is URL. Otherwise, null.
url - Information about the reference when the referenceType is URL. Otherwise, null.public UrlReference getUrl()
Information about the reference when the referenceType is URL. Otherwise, null.
referenceType is URL. Otherwise, null.public ReferenceSummary withUrl(UrlReference url)
Information about the reference when the referenceType is URL. Otherwise, null.
url - Information about the reference when the referenceType is URL. Otherwise, null.public void setAttachment(AttachmentReference attachment)
Information about the reference when the referenceType is ATTACHMENT. Otherwise, null.
attachment - Information about the reference when the referenceType is ATTACHMENT. Otherwise,
null.public AttachmentReference getAttachment()
Information about the reference when the referenceType is ATTACHMENT. Otherwise, null.
referenceType is ATTACHMENT.
Otherwise, null.public ReferenceSummary withAttachment(AttachmentReference attachment)
Information about the reference when the referenceType is ATTACHMENT. Otherwise, null.
attachment - Information about the reference when the referenceType is ATTACHMENT. Otherwise,
null.public void setString(StringReference string)
Information about a reference when the referenceType is STRING. Otherwise, null.
string - Information about a reference when the referenceType is STRING. Otherwise, null.public StringReference getString()
Information about a reference when the referenceType is STRING. Otherwise, null.
referenceType is STRING. Otherwise,
null.public ReferenceSummary withString(StringReference string)
Information about a reference when the referenceType is STRING. Otherwise, null.
string - Information about a reference when the referenceType is STRING. Otherwise, null.public void setNumber(NumberReference number)
Information about a reference when the referenceType is NUMBER. Otherwise, null.
number - Information about a reference when the referenceType is NUMBER. Otherwise, null.public NumberReference getNumber()
Information about a reference when the referenceType is NUMBER. Otherwise, null.
referenceType is NUMBER. Otherwise,
null.public ReferenceSummary withNumber(NumberReference number)
Information about a reference when the referenceType is NUMBER. Otherwise, null.
number - Information about a reference when the referenceType is NUMBER. Otherwise, null.public void setDate(DateReference date)
Information about a reference when the referenceType is DATE. Otherwise, null.
date - Information about a reference when the referenceType is DATE. Otherwise, null.public DateReference getDate()
Information about a reference when the referenceType is DATE. Otherwise, null.
referenceType is DATE. Otherwise, null.public ReferenceSummary withDate(DateReference date)
Information about a reference when the referenceType is DATE. Otherwise, null.
date - Information about a reference when the referenceType is DATE. Otherwise, null.public void setEmail(EmailReference email)
Information about a reference when the referenceType is EMAIL. Otherwise, null.
email - Information about a reference when the referenceType is EMAIL. Otherwise, null.public EmailReference getEmail()
Information about a reference when the referenceType is EMAIL. Otherwise, null.
referenceType is EMAIL. Otherwise, null.public ReferenceSummary withEmail(EmailReference email)
Information about a reference when the referenceType is EMAIL. Otherwise, null.
email - Information about a reference when the referenceType is EMAIL. Otherwise, null.public String toString()
toString in class ObjectObject.toString()public ReferenceSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.