Class GetIndexResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.resourceexplorer2.model.ResourceExplorer2Response
-
- software.amazon.awssdk.services.resourceexplorer2.model.GetIndexResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetIndexResponse.Builder,GetIndexResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetIndexResponse extends ResourceExplorer2Response implements ToCopyableBuilder<GetIndexResponse.Builder,GetIndexResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetIndexResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon resource name (ARN) of the index.static GetIndexResponse.Builderbuilder()InstantcreatedAt()The date and time when the index was originally created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasReplicatingFrom()For responses, this returns true if the service returned a value for the ReplicatingFrom property.booleanhasReplicatingTo()For responses, this returns true if the service returned a value for the ReplicatingTo property.booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.InstantlastUpdatedAt()The date and time when the index was last updated.List<String>replicatingFrom()This response value is present only if this index isType=AGGREGATOR.List<String>replicatingTo()This response value is present only if this index isType=LOCAL.List<SdkField<?>>sdkFields()static Class<? extends GetIndexResponse.Builder>serializableBuilderClass()IndexStatestate()The current state of the index in this Amazon Web Services Region.StringstateAsString()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.BuildertoBuilder()StringtoString()Returns a string representation of this object.IndexTypetype()The type of the index in this Region.StringtypeAsString()The type of the index in this Region.-
Methods inherited from class software.amazon.awssdk.services.resourceexplorer2.model.ResourceExplorer2Response
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
arn
public final String arn()
The Amazon resource name (ARN) of the index.
- Returns:
- The Amazon resource name (ARN) of the index.
-
createdAt
public final Instant createdAt()
The date and time when the index was originally created.
- Returns:
- The date and time when the index was originally created.
-
lastUpdatedAt
public final Instant lastUpdatedAt()
The date and time when the index was last updated.
- Returns:
- The date and time when the index was last updated.
-
hasReplicatingFrom
public final boolean hasReplicatingFrom()
For responses, this returns true if the service returned a value for the ReplicatingFrom property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
replicatingFrom
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.- Returns:
- 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.
-
hasReplicatingTo
public final boolean hasReplicatingTo()
For responses, this returns true if the service returned a value for the ReplicatingTo property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
replicatingTo
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.- Returns:
- 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.
-
state
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,
statewill returnIndexState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the index in this Amazon Web Services Region.
- See Also:
IndexState
-
stateAsString
public 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,
statewill returnIndexState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the index in this Amazon Web Services Region.
- See Also:
IndexState
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
tags
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.- Returns:
- Tag key and value pairs that are attached to the index.
-
type
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,
typewill returnIndexType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
- See Also:
IndexType
-
typeAsString
public 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,
typewill returnIndexType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
- See Also:
IndexType
-
toBuilder
public GetIndexResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetIndexResponse.Builder,GetIndexResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetIndexResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetIndexResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-