Class GetSubscriptionResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.datazone.model.DataZoneResponse
-
- software.amazon.awssdk.services.datazone.model.GetSubscriptionResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetSubscriptionResponse.Builder,GetSubscriptionResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetSubscriptionResponse extends DataZoneResponse implements ToCopyableBuilder<GetSubscriptionResponse.Builder,GetSubscriptionResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetSubscriptionResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetSubscriptionResponse.Builderbuilder()InstantcreatedAt()The timestamp of when the subscription was created.StringcreatedBy()The Amazon DataZone user who created the subscription.StringdomainId()The ID of the Amazon DataZone domain in which the subscription exists.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The ID of the subscription.BooleanretainPermissions()The retain permissions of the subscription.List<SdkField<?>>sdkFields()static Class<? extends GetSubscriptionResponse.Builder>serializableBuilderClass()SubscriptionStatusstatus()The status of the subscription.StringstatusAsString()The status of the subscription.SubscribedListingsubscribedListing()SubscribedPrincipalsubscribedPrincipal()The principal that owns the subscription.StringsubscriptionRequestId()The ID of the subscription request.GetSubscriptionResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The timestamp of when the subscription was updated.StringupdatedBy()The Amazon DataZone user who updated the subscription.-
Methods inherited from class software.amazon.awssdk.services.datazone.model.DataZoneResponse
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
-
createdAt
public final Instant createdAt()
The timestamp of when the subscription was created.
- Returns:
- The timestamp of when the subscription was created.
-
createdBy
public final String createdBy()
The Amazon DataZone user who created the subscription.
- Returns:
- The Amazon DataZone user who created the subscription.
-
domainId
public final String domainId()
The ID of the Amazon DataZone domain in which the subscription exists.
- Returns:
- The ID of the Amazon DataZone domain in which the subscription exists.
-
id
public final String id()
The ID of the subscription.
- Returns:
- The ID of the subscription.
-
retainPermissions
public final Boolean retainPermissions()
The retain permissions of the subscription.
- Returns:
- The retain permissions of the subscription.
-
status
public final SubscriptionStatus status()
The status of the subscription.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnSubscriptionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the subscription.
- See Also:
SubscriptionStatus
-
statusAsString
public final String statusAsString()
The status of the subscription.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnSubscriptionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the subscription.
- See Also:
SubscriptionStatus
-
subscribedListing
public final SubscribedListing subscribedListing()
- Returns:
-
subscribedPrincipal
public final SubscribedPrincipal subscribedPrincipal()
The principal that owns the subscription.
- Returns:
- The principal that owns the subscription.
-
subscriptionRequestId
public final String subscriptionRequestId()
The ID of the subscription request.
- Returns:
- The ID of the subscription request.
-
updatedAt
public final Instant updatedAt()
The timestamp of when the subscription was updated.
- Returns:
- The timestamp of when the subscription was updated.
-
updatedBy
public final String updatedBy()
The Amazon DataZone user who updated the subscription.
- Returns:
- The Amazon DataZone user who updated the subscription.
-
toBuilder
public GetSubscriptionResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetSubscriptionResponse.Builder,GetSubscriptionResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetSubscriptionResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetSubscriptionResponse.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
-
-