@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 attachment reference if the
referenceType is ATTACHMENT. |
static ReferenceSummary.Builder |
builder() |
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 |
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() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReferenceSummary.Builder> |
serializableBuilderClass() |
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 URL reference if the
referenceType is URL. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final UrlReference url()
Information about the URL reference if the referenceType is URL. Otherwise, null.
referenceType is URL. Otherwise,
null.public final AttachmentReference attachment()
Information about the attachment reference if the referenceType is ATTACHMENT.
Otherwise, null.
referenceType is ATTACHMENT.
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 URL reference if the referenceType is URL. Otherwise, null.
url - Information about the URL reference if the referenceType is URL. Otherwise,
null.public static ReferenceSummary fromUrl(Consumer<UrlReference.Builder> url)
url() initialized to the given value.
Information about the URL reference if the referenceType is URL. Otherwise, null.
url - Information about the URL reference if the referenceType is URL. Otherwise,
null.public static ReferenceSummary fromAttachment(AttachmentReference attachment)
attachment() initialized to the given value.
Information about the attachment reference if the referenceType is ATTACHMENT.
Otherwise, null.
attachment - Information about the attachment reference if the referenceType is ATTACHMENT.
Otherwise, null.public static ReferenceSummary fromAttachment(Consumer<AttachmentReference.Builder> attachment)
attachment() initialized to the given value.
Information about the attachment reference if the referenceType is ATTACHMENT.
Otherwise, null.
attachment - Information about the attachment reference if the referenceType is ATTACHMENT.
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 © 2022. All rights reserved.