@Generated(value="software.amazon.awssdk:codegen") public final class GetIndexResponse extends ResourceExplorer2Response implements ToCopyableBuilder<GetIndexResponse.Builder,GetIndexResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetIndexResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon resource name
(ARN) of the index.
|
static GetIndexResponse.Builder |
builder() |
Instant |
createdAt()
The date and time when the index was originally created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasReplicatingFrom()
For responses, this returns true if the service returned a value for the ReplicatingFrom property.
|
boolean |
hasReplicatingTo()
For responses, this returns true if the service returned a value for the ReplicatingTo property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Instant |
lastUpdatedAt()
The date and time when the index was last updated.
|
List<String> |
replicatingFrom()
This response value is present only if this index is
Type=AGGREGATOR. |
List<String> |
replicatingTo()
This response value is present only if this index is
Type=LOCAL. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetIndexResponse.Builder> |
serializableBuilderClass() |
IndexState |
state()
The current state of the index in this Amazon Web Services Region.
|
String |
stateAsString()
The current state of the index in this Amazon Web Services Region.
|
Map<String,String> |
tags()
Tag key and value pairs that are attached to the index.
|
GetIndexResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
IndexType |
type()
The type of the index in this Region.
|
String |
typeAsString()
The type of the index in this Region.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The Amazon resource name (ARN) of the index.
public final Instant createdAt()
The date and time when the index was originally created.
public final Instant lastUpdatedAt()
The date and time when the index was last updated.
public final boolean hasReplicatingFrom()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> replicatingFrom()
This response value is present only if this index is Type=AGGREGATOR.
A list of the Amazon Web Services Regions that replicate their content to the index in this Region.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasReplicatingFrom() method.
Type=AGGREGATOR.
A list of the Amazon Web Services Regions that replicate their content to the index in this Region.
public final boolean hasReplicatingTo()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> replicatingTo()
This response value is present only if this index is Type=LOCAL.
The Amazon Web Services Region that contains the aggregator index, if one exists. If an aggregator index does exist then the Region in which you called this operation replicates its index information to the Region specified in this response value.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasReplicatingTo() method.
Type=LOCAL.
The Amazon Web Services Region that contains the aggregator index, if one exists. If an aggregator index does exist then the Region in which you called this operation replicates its index information to the Region specified in this response value.
public final IndexState state()
The current state of the index in this Amazon Web Services Region.
If the service returns an enum value that is not available in the current SDK version, state will return
IndexState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
IndexStatepublic final String stateAsString()
The current state of the index in this Amazon Web Services Region.
If the service returns an enum value that is not available in the current SDK version, state will return
IndexState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
IndexStatepublic final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
Tag key and value pairs that are attached to the index.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final IndexType type()
The type of the index in this Region. For information about the aggregator index and how it differs from a local index, see Turning on cross-Region search by creating an aggregator index.
If the service returns an enum value that is not available in the current SDK version, type will return
IndexType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
IndexTypepublic final String typeAsString()
The type of the index in this Region. For information about the aggregator index and how it differs from a local index, see Turning on cross-Region search by creating an aggregator index.
If the service returns an enum value that is not available in the current SDK version, type will return
IndexType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
IndexTypepublic GetIndexResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetIndexResponse.Builder,GetIndexResponse>toBuilder in class AwsResponsepublic static GetIndexResponse.Builder builder()
public static Class<? extends GetIndexResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.