Class ReferenceSummary
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.ReferenceSummary
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReferenceSummary.Builder,ReferenceSummary>
@Generated("software.amazon.awssdk:codegen") public final class ReferenceSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReferenceSummary.Builder,ReferenceSummary>
Contains summary information about a reference.
ReferenceSummarycontains only one non null field between the URL and attachment based on the reference type.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReferenceSummary.Builderstatic classReferenceSummary.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentReferenceattachment()Information about the reference when thereferenceTypeisATTACHMENT.static ReferenceSummary.Builderbuilder()DateReferencedate()Information about a reference when thereferenceTypeisDATE.EmailReferenceemail()Information about a reference when thereferenceTypeisEMAIL.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)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 ReferenceSummaryfromDate(Consumer<DateReference.Builder> date)Create 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 ReferenceSummaryfromUrl(Consumer<UrlReference.Builder> url)Create 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.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()NumberReferencenumber()Information about a reference when thereferenceTypeisNUMBER.List<SdkField<?>>sdkFields()static Class<? extends ReferenceSummary.Builder>serializableBuilderClass()StringReferencestring()Information about a reference when thereferenceTypeisSTRING.ReferenceSummary.BuildertoBuilder()StringtoString()Returns a string representation of this object.ReferenceSummary.Typetype()Retrieve an enum value representing which member of this object is populated.UrlReferenceurl()Information about the reference when thereferenceTypeisURL.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
url
public final UrlReference url()
Information about the reference when the
referenceTypeisURL. Otherwise, null.- Returns:
- Information about the reference when the
referenceTypeisURL. Otherwise, null.
-
attachment
public final AttachmentReference attachment()
Information about the reference when the
referenceTypeisATTACHMENT. Otherwise, null.- Returns:
- Information about the reference when the
referenceTypeisATTACHMENT. Otherwise, null.
-
string
public final StringReference string()
Information about a reference when the
referenceTypeisSTRING. Otherwise, null.- Returns:
- Information about a reference when the
referenceTypeisSTRING. Otherwise, null.
-
number
public final NumberReference number()
Information about a reference when the
referenceTypeisNUMBER. Otherwise, null.- Returns:
- Information about a reference when the
referenceTypeisNUMBER. Otherwise, null.
-
date
public final DateReference date()
Information about a reference when the
referenceTypeisDATE. Otherwise, null.- Returns:
- Information about a reference when the
referenceTypeisDATE. Otherwise, null.
-
email
public final EmailReference email()
Information about a reference when the
referenceTypeisEMAIL. Otherwise, null.- Returns:
- Information about a reference when the
referenceTypeisEMAIL. Otherwise, null.
-
toBuilder
public ReferenceSummary.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReferenceSummary.Builder,ReferenceSummary>
-
builder
public static ReferenceSummary.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReferenceSummary.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromUrl
public static ReferenceSummary fromUrl(UrlReference url)
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
public static ReferenceSummary fromUrl(Consumer<UrlReference.Builder> url)
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
public static ReferenceSummary fromAttachment(AttachmentReference attachment)
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
public static ReferenceSummary fromAttachment(Consumer<AttachmentReference.Builder> attachment)
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
public static ReferenceSummary fromString(StringReference string)
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
public static ReferenceSummary fromString(Consumer<StringReference.Builder> string)
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
public static ReferenceSummary fromNumber(NumberReference number)
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
public static ReferenceSummary fromNumber(Consumer<NumberReference.Builder> number)
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
public static ReferenceSummary fromDate(DateReference date)
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
public static ReferenceSummary fromDate(Consumer<DateReference.Builder> date)
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
public static ReferenceSummary fromEmail(EmailReference email)
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
public static ReferenceSummary fromEmail(Consumer<EmailReference.Builder> email)
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
public ReferenceSummary.Type 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.
-
-