@Generated(value="software.amazon.awssdk:codegen") public final class ReferenceSummary extends Object implements SdkPojo, Serializable, 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReferenceSummary.Builder |
static class |
ReferenceSummary.Type |
| Modifier and Type | Method and Description |
|---|---|
AttachmentReference |
attachment()
Information about the reference when the
referenceType is ATTACHMENT. |
static ReferenceSummary.Builder |
builder() |
DateReference |
date()
Information about a reference when the
referenceType is DATE. |
EmailReference |
email()
Information about a reference when the
referenceType is EMAIL. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static ReferenceSummary |
fromAttachment(AttachmentReference attachment)
Create an instance of this class with
attachment() initialized to the given value. |
static ReferenceSummary |
fromAttachment(Consumer<AttachmentReference.Builder> attachment)
Create an instance of this class with
attachment() initialized to the given value. |
static ReferenceSummary |
fromDate(Consumer<DateReference.Builder> date)
Create an instance of this class with
date() initialized to the given value. |
static ReferenceSummary |
fromDate(DateReference date)
Create an instance of this class with
date() initialized to the given value. |
static ReferenceSummary |
fromEmail(Consumer<EmailReference.Builder> email)
Create an instance of this class with
email() initialized to the given value. |
static ReferenceSummary |
fromEmail(EmailReference email)
Create an instance of this class with
email() initialized to the given value. |
static ReferenceSummary |
fromNumber(Consumer<NumberReference.Builder> number)
Create an instance of this class with
number() initialized to the given value. |
static ReferenceSummary |
fromNumber(NumberReference number)
Create an instance of this class with
number() initialized to the given value. |
static ReferenceSummary |
fromString(Consumer<StringReference.Builder> string)
Create an instance of this class with
string() initialized to the given value. |
static ReferenceSummary |
fromString(StringReference string)
Create an instance of this class with
string() initialized to the given value. |
static ReferenceSummary |
fromUrl(Consumer<UrlReference.Builder> url)
Create an instance of this class with
url() initialized to the given value. |
static ReferenceSummary |
fromUrl(UrlReference url)
Create an instance of this class with
url() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
NumberReference |
number()
Information about a reference when the
referenceType is NUMBER. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReferenceSummary.Builder> |
serializableBuilderClass() |
StringReference |
string()
Information about a reference when the
referenceType is STRING. |
ReferenceSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ReferenceSummary.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
UrlReference |
url()
Information about the reference when the
referenceType is URL. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final UrlReference url()
Information about the reference when the referenceType is URL. Otherwise, null.
referenceType is URL. Otherwise, null.public final AttachmentReference attachment()
Information about the reference when the referenceType is ATTACHMENT. Otherwise, null.
referenceType is ATTACHMENT.
Otherwise, null.public final StringReference string()
Information about a reference when the referenceType is STRING. Otherwise, null.
referenceType is STRING. Otherwise,
null.public final NumberReference number()
Information about a reference when the referenceType is NUMBER. Otherwise, null.
referenceType is NUMBER. Otherwise,
null.public final DateReference date()
Information about a reference when the referenceType is DATE. Otherwise, null.
referenceType is DATE. Otherwise, null.public final EmailReference email()
Information about a reference when the referenceType is EMAIL. Otherwise, null.
referenceType is EMAIL. Otherwise, null.public ReferenceSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ReferenceSummary.Builder,ReferenceSummary>public static ReferenceSummary.Builder builder()
public static Class<? extends ReferenceSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static ReferenceSummary fromUrl(UrlReference url)
url() initialized to the given value.
Information about the reference when the referenceType is URL. Otherwise, null.
url - Information about the reference when the referenceType is URL. Otherwise, null.public static ReferenceSummary fromUrl(Consumer<UrlReference.Builder> url)
url() initialized to the given value.
Information about the reference when the referenceType is URL. Otherwise, null.
url - Information about the reference when the referenceType is URL. Otherwise, null.public static ReferenceSummary fromAttachment(AttachmentReference attachment)
attachment() initialized to the given value.
Information about the reference when the referenceType is ATTACHMENT. Otherwise, null.
attachment - Information about the reference when the referenceType is ATTACHMENT. Otherwise,
null.public static ReferenceSummary fromAttachment(Consumer<AttachmentReference.Builder> attachment)
attachment() initialized to the given value.
Information about the reference when the referenceType is ATTACHMENT. Otherwise, null.
attachment - Information about the reference when the referenceType is ATTACHMENT. Otherwise,
null.public static ReferenceSummary fromString(StringReference string)
string() initialized to the given value.
Information about a reference when the referenceType is STRING. Otherwise, null.
string - Information about a reference when the referenceType is STRING. Otherwise, null.public static ReferenceSummary fromString(Consumer<StringReference.Builder> string)
string() initialized to the given value.
Information about a reference when the referenceType is STRING. Otherwise, null.
string - Information about a reference when the referenceType is STRING. Otherwise, null.public static ReferenceSummary fromNumber(NumberReference number)
number() initialized to the given value.
Information about a reference when the referenceType is NUMBER. Otherwise, null.
number - Information about a reference when the referenceType is NUMBER. Otherwise, null.public static ReferenceSummary fromNumber(Consumer<NumberReference.Builder> number)
number() initialized to the given value.
Information about a reference when the referenceType is NUMBER. Otherwise, null.
number - Information about a reference when the referenceType is NUMBER. Otherwise, null.public static ReferenceSummary fromDate(DateReference date)
date() initialized to the given value.
Information about a reference when the referenceType is DATE. Otherwise, null.
date - Information about a reference when the referenceType is DATE. Otherwise, null.public static ReferenceSummary fromDate(Consumer<DateReference.Builder> date)
date() initialized to the given value.
Information about a reference when the referenceType is DATE. Otherwise, null.
date - Information about a reference when the referenceType is DATE. Otherwise, null.public static ReferenceSummary fromEmail(EmailReference email)
email() initialized to the given value.
Information about a reference when the referenceType is EMAIL. Otherwise, null.
email - Information about a reference when the referenceType is EMAIL. Otherwise, null.public static ReferenceSummary fromEmail(Consumer<EmailReference.Builder> email)
email() initialized to the given value.
Information about a reference when the referenceType is EMAIL. Otherwise, null.
email - Information about a reference when the referenceType is EMAIL. Otherwise, null.public ReferenceSummary.Type type()
ReferenceSummary.Type.UNKNOWN_TO_SDK_VERSION if 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 be ReferenceSummary.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.