Class AcceptDataGrantResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.dataexchange.model.DataExchangeResponse
-
- software.amazon.awssdk.services.dataexchange.model.AcceptDataGrantResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<AcceptDataGrantResponse.Builder,AcceptDataGrantResponse>
@Generated("software.amazon.awssdk:codegen") public final class AcceptDataGrantResponse extends DataExchangeResponse implements ToCopyableBuilder<AcceptDataGrantResponse.Builder,AcceptDataGrantResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAcceptDataGrantResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataGrantAcceptanceStateacceptanceState()The acceptance state of the data grant.StringacceptanceStateAsString()The acceptance state of the data grant.InstantacceptedAt()The timestamp of when the data grant was accepted.Stringarn()The Amazon Resource Name (ARN) of the accepted data grant.static AcceptDataGrantResponse.Builderbuilder()InstantcreatedAt()The timestamp of when the data grant was created.StringdataSetId()The ID of the data set associated to the data grant.Stringdescription()The description of the accepted data grant.InstantendsAt()The timestamp of when access to the associated data set ends.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)GrantDistributionScopegrantDistributionScope()The distribution scope for the data grant.StringgrantDistributionScopeAsString()The distribution scope for the data grant.inthashCode()Stringid()The ID of the data grant.Stringname()The name of the accepted data grant.StringreceiverPrincipal()The Amazon Web Services account ID of the data grant receiver.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()StringsenderPrincipal()The Amazon Web Services account ID of the data grant sender.static Class<? extends AcceptDataGrantResponse.Builder>serializableBuilderClass()AcceptDataGrantResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The timestamp of when the data grant was last updated.-
Methods inherited from class software.amazon.awssdk.services.dataexchange.model.DataExchangeResponse
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
-
name
public final String name()
The name of the accepted data grant.
- Returns:
- The name of the accepted data grant.
-
senderPrincipal
public final String senderPrincipal()
The Amazon Web Services account ID of the data grant sender.
- Returns:
- The Amazon Web Services account ID of the data grant sender.
-
receiverPrincipal
public final String receiverPrincipal()
The Amazon Web Services account ID of the data grant receiver.
- Returns:
- The Amazon Web Services account ID of the data grant receiver.
-
description
public final String description()
The description of the accepted data grant.
- Returns:
- The description of the accepted data grant.
-
acceptanceState
public final DataGrantAcceptanceState acceptanceState()
The acceptance state of the data grant.
If the service returns an enum value that is not available in the current SDK version,
acceptanceStatewill returnDataGrantAcceptanceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromacceptanceStateAsString().- Returns:
- The acceptance state of the data grant.
- See Also:
DataGrantAcceptanceState
-
acceptanceStateAsString
public final String acceptanceStateAsString()
The acceptance state of the data grant.
If the service returns an enum value that is not available in the current SDK version,
acceptanceStatewill returnDataGrantAcceptanceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromacceptanceStateAsString().- Returns:
- The acceptance state of the data grant.
- See Also:
DataGrantAcceptanceState
-
acceptedAt
public final Instant acceptedAt()
The timestamp of when the data grant was accepted.
- Returns:
- The timestamp of when the data grant was accepted.
-
endsAt
public final Instant endsAt()
The timestamp of when access to the associated data set ends.
- Returns:
- The timestamp of when access to the associated data set ends.
-
grantDistributionScope
public final GrantDistributionScope grantDistributionScope()
The distribution scope for the data grant.
If the service returns an enum value that is not available in the current SDK version,
grantDistributionScopewill returnGrantDistributionScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgrantDistributionScopeAsString().- Returns:
- The distribution scope for the data grant.
- See Also:
GrantDistributionScope
-
grantDistributionScopeAsString
public final String grantDistributionScopeAsString()
The distribution scope for the data grant.
If the service returns an enum value that is not available in the current SDK version,
grantDistributionScopewill returnGrantDistributionScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgrantDistributionScopeAsString().- Returns:
- The distribution scope for the data grant.
- See Also:
GrantDistributionScope
-
dataSetId
public final String dataSetId()
The ID of the data set associated to the data grant.
- Returns:
- The ID of the data set associated to the data grant.
-
id
public final String id()
The ID of the data grant.
- Returns:
- The ID of the data grant.
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the accepted data grant.
- Returns:
- The Amazon Resource Name (ARN) of the accepted data grant.
-
createdAt
public final Instant createdAt()
The timestamp of when the data grant was created.
- Returns:
- The timestamp of when the data grant was created.
-
updatedAt
public final Instant updatedAt()
The timestamp of when the data grant was last updated.
- Returns:
- The timestamp of when the data grant was last updated.
-
toBuilder
public AcceptDataGrantResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AcceptDataGrantResponse.Builder,AcceptDataGrantResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static AcceptDataGrantResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends AcceptDataGrantResponse.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
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-