Class CreateDataGrantResponse
- 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.CreateDataGrantResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateDataGrantResponse.Builder,CreateDataGrantResponse>
@Generated("software.amazon.awssdk:codegen") public final class CreateDataGrantResponse extends DataExchangeResponse implements ToCopyableBuilder<CreateDataGrantResponse.Builder,CreateDataGrantResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateDataGrantResponse.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 data grant.static CreateDataGrantResponse.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 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()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.Stringid()The ID of the data grant.Stringname()The name of the 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 CreateDataGrantResponse.Builder>serializableBuilderClass()StringsourceDataSetId()The ID of the data set used to create the data grant.Map<String,String>tags()The tags associated to the data grant.CreateDataGrantResponse.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 data grant.
- Returns:
- The name of the 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 data grant.
- Returns:
- The description of the 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.
-
sourceDataSetId
public final String sourceDataSetId()
The ID of the data set used to create the data grant.
- Returns:
- The ID of the data set used to create 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 data grant.
- Returns:
- The Amazon Resource Name (ARN) of the 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.
-
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()
The tags associated to the data grant. A tag is a key-value pair.
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:
- The tags associated to the data grant. A tag is a key-value pair.
-
toBuilder
public CreateDataGrantResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateDataGrantResponse.Builder,CreateDataGrantResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static CreateDataGrantResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateDataGrantResponse.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
-
-