Class GetTargetGroupResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.vpclattice.model.VpcLatticeResponse
-
- software.amazon.awssdk.services.vpclattice.model.GetTargetGroupResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetTargetGroupResponse.Builder,GetTargetGroupResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetTargetGroupResponse extends VpcLatticeResponse implements ToCopyableBuilder<GetTargetGroupResponse.Builder,GetTargetGroupResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetTargetGroupResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) of the target group.static GetTargetGroupResponse.Builderbuilder()TargetGroupConfigconfig()The target group configuration.InstantcreatedAt()The date and time that the target group was created, specified in ISO-8601 format.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfailureCode()The failure code.StringfailureMessage()The failure message.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasServiceArns()For responses, this returns true if the service returned a value for the ServiceArns property.Stringid()The ID of the target group.InstantlastUpdatedAt()The date and time that the target group was last updated, specified in ISO-8601 format.Stringname()The name of the target group.List<SdkField<?>>sdkFields()static Class<? extends GetTargetGroupResponse.Builder>serializableBuilderClass()List<String>serviceArns()The Amazon Resource Names (ARNs) of the service.TargetGroupStatusstatus()The status.StringstatusAsString()The status.GetTargetGroupResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.TargetGroupTypetype()The target group type.StringtypeAsString()The target group type.-
Methods inherited from class software.amazon.awssdk.services.vpclattice.model.VpcLatticeResponse
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 target group.
- Returns:
- The Amazon Resource Name (ARN) of the target group.
-
config
public final TargetGroupConfig config()
The target group configuration.
- Returns:
- The target group configuration.
-
createdAt
public final Instant createdAt()
The date and time that the target group was created, specified in ISO-8601 format.
- Returns:
- The date and time that the target group was created, specified in ISO-8601 format.
-
failureCode
public final String failureCode()
The failure code.
- Returns:
- The failure code.
-
failureMessage
public final String failureMessage()
The failure message.
- Returns:
- The failure message.
-
id
public final String id()
The ID of the target group.
- Returns:
- The ID of the target group.
-
lastUpdatedAt
public final Instant lastUpdatedAt()
The date and time that the target group was last updated, specified in ISO-8601 format.
- Returns:
- The date and time that the target group was last updated, specified in ISO-8601 format.
-
name
public final String name()
The name of the target group.
- Returns:
- The name of the target group.
-
hasServiceArns
public final boolean hasServiceArns()
For responses, this returns true if the service returned a value for the ServiceArns 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.
-
serviceArns
public final List<String> serviceArns()
The Amazon Resource Names (ARNs) of the service.
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
hasServiceArns()method.- Returns:
- The Amazon Resource Names (ARNs) of the service.
-
status
public final TargetGroupStatus status()
The status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnTargetGroupStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status.
- See Also:
TargetGroupStatus
-
statusAsString
public final String statusAsString()
The status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnTargetGroupStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status.
- See Also:
TargetGroupStatus
-
type
public final TargetGroupType type()
The target group type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnTargetGroupType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The target group type.
- See Also:
TargetGroupType
-
typeAsString
public final String typeAsString()
The target group type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnTargetGroupType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The target group type.
- See Also:
TargetGroupType
-
toBuilder
public GetTargetGroupResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetTargetGroupResponse.Builder,GetTargetGroupResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetTargetGroupResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetTargetGroupResponse.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
-
-