Class ReferenceSummary
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReferenceSummary.Builder,ReferenceSummary>
Contains summary information about a reference. ReferenceSummary contains only one non null field
between the URL and attachment based on the reference type.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionfinal AttachmentReferenceInformation about the reference when thereferenceTypeisATTACHMENT.static ReferenceSummary.Builderbuilder()final DateReferencedate()Information about a reference when thereferenceTypeisDATE.final EmailReferenceemail()Information about a reference when thereferenceTypeisEMAIL.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static ReferenceSummaryfromAttachment(Consumer<AttachmentReference.Builder> attachment) Create an instance of this class withattachment()initialized to the given value.static ReferenceSummaryfromAttachment(AttachmentReference attachment) Create an instance of this class withattachment()initialized to the given value.static ReferenceSummaryCreate an instance of this class withdate()initialized to the given value.static ReferenceSummaryfromDate(DateReference date) Create an instance of this class withdate()initialized to the given value.static ReferenceSummaryfromEmail(Consumer<EmailReference.Builder> email) Create an instance of this class withemail()initialized to the given value.static ReferenceSummaryfromEmail(EmailReference email) Create an instance of this class withemail()initialized to the given value.static ReferenceSummaryfromNumber(Consumer<NumberReference.Builder> number) Create an instance of this class withnumber()initialized to the given value.static ReferenceSummaryfromNumber(NumberReference number) Create an instance of this class withnumber()initialized to the given value.static ReferenceSummaryfromString(Consumer<StringReference.Builder> string) Create an instance of this class withstring()initialized to the given value.static ReferenceSummaryfromString(StringReference string) Create an instance of this class withstring()initialized to the given value.static ReferenceSummaryCreate an instance of this class withurl()initialized to the given value.static ReferenceSummaryfromUrl(UrlReference url) Create an instance of this class withurl()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final NumberReferencenumber()Information about a reference when thereferenceTypeisNUMBER.static Class<? extends ReferenceSummary.Builder> final StringReferencestring()Information about a reference when thereferenceTypeisSTRING.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.final UrlReferenceurl()Information about the reference when thereferenceTypeisURL.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
url
Information about the reference when the
referenceTypeisURL. Otherwise, null.- Returns:
- Information about the reference when the
referenceTypeisURL. Otherwise, null.
-
attachment
Information about the reference when the
referenceTypeisATTACHMENT. Otherwise, null.- Returns:
- Information about the reference when the
referenceTypeisATTACHMENT. Otherwise, null.
-
string
Information about a reference when the
referenceTypeisSTRING. Otherwise, null.- Returns:
- Information about a reference when the
referenceTypeisSTRING. Otherwise, null.
-
number
Information about a reference when the
referenceTypeisNUMBER. Otherwise, null.- Returns:
- Information about a reference when the
referenceTypeisNUMBER. Otherwise, null.
-
date
Information about a reference when the
referenceTypeisDATE. Otherwise, null.- Returns:
- Information about a reference when the
referenceTypeisDATE. Otherwise, null.
-
email
Information about a reference when the
referenceTypeisEMAIL. Otherwise, null.- Returns:
- Information about a reference when the
referenceTypeisEMAIL. Otherwise, null.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ReferenceSummary.Builder,ReferenceSummary> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromUrl
Create an instance of this class withurl()initialized to the given value.Information about the reference when the
referenceTypeisURL. Otherwise, null.- Parameters:
url- Information about the reference when thereferenceTypeisURL. Otherwise, null.
-
fromUrl
Create an instance of this class withurl()initialized to the given value.Information about the reference when the
referenceTypeisURL. Otherwise, null.- Parameters:
url- Information about the reference when thereferenceTypeisURL. Otherwise, null.
-
fromAttachment
Create an instance of this class withattachment()initialized to the given value.Information about the reference when the
referenceTypeisATTACHMENT. Otherwise, null.- Parameters:
attachment- Information about the reference when thereferenceTypeisATTACHMENT. Otherwise, null.
-
fromAttachment
Create an instance of this class withattachment()initialized to the given value.Information about the reference when the
referenceTypeisATTACHMENT. Otherwise, null.- Parameters:
attachment- Information about the reference when thereferenceTypeisATTACHMENT. Otherwise, null.
-
fromString
Create an instance of this class withstring()initialized to the given value.Information about a reference when the
referenceTypeisSTRING. Otherwise, null.- Parameters:
string- Information about a reference when thereferenceTypeisSTRING. Otherwise, null.
-
fromString
Create an instance of this class withstring()initialized to the given value.Information about a reference when the
referenceTypeisSTRING. Otherwise, null.- Parameters:
string- Information about a reference when thereferenceTypeisSTRING. Otherwise, null.
-
fromNumber
Create an instance of this class withnumber()initialized to the given value.Information about a reference when the
referenceTypeisNUMBER. Otherwise, null.- Parameters:
number- Information about a reference when thereferenceTypeisNUMBER. Otherwise, null.
-
fromNumber
Create an instance of this class withnumber()initialized to the given value.Information about a reference when the
referenceTypeisNUMBER. Otherwise, null.- Parameters:
number- Information about a reference when thereferenceTypeisNUMBER. Otherwise, null.
-
fromDate
Create an instance of this class withdate()initialized to the given value.Information about a reference when the
referenceTypeisDATE. Otherwise, null.- Parameters:
date- Information about a reference when thereferenceTypeisDATE. Otherwise, null.
-
fromDate
Create an instance of this class withdate()initialized to the given value.Information about a reference when the
referenceTypeisDATE. Otherwise, null.- Parameters:
date- Information about a reference when thereferenceTypeisDATE. Otherwise, null.
-
fromEmail
Create an instance of this class withemail()initialized to the given value.Information about a reference when the
referenceTypeisEMAIL. Otherwise, null.- Parameters:
email- Information about a reference when thereferenceTypeisEMAIL. Otherwise, null.
-
fromEmail
Create an instance of this class withemail()initialized to the given value.Information about a reference when the
referenceTypeisEMAIL. Otherwise, null.- Parameters:
email- Information about a reference when thereferenceTypeisEMAIL. Otherwise, null.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beReferenceSummary.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beReferenceSummary.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-