Class AuthorizeSnapshotAccessRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.redshift.model.RedshiftRequest
-
- software.amazon.awssdk.services.redshift.model.AuthorizeSnapshotAccessRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<AuthorizeSnapshotAccessRequest.Builder,AuthorizeSnapshotAccessRequest>
@Generated("software.amazon.awssdk:codegen") public final class AuthorizeSnapshotAccessRequest extends RedshiftRequest implements ToCopyableBuilder<AuthorizeSnapshotAccessRequest.Builder,AuthorizeSnapshotAccessRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAuthorizeSnapshotAccessRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountWithRestoreAccess()The identifier of the Amazon Web Services account authorized to restore the specified snapshot.static AuthorizeSnapshotAccessRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends AuthorizeSnapshotAccessRequest.Builder>serializableBuilderClass()StringsnapshotArn()The Amazon Resource Name (ARN) of the snapshot to authorize access to.StringsnapshotClusterIdentifier()The identifier of the cluster the snapshot was created from.StringsnapshotIdentifier()The identifier of the snapshot the account is authorized to restore.AuthorizeSnapshotAccessRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
snapshotIdentifier
public final String snapshotIdentifier()
The identifier of the snapshot the account is authorized to restore.
- Returns:
- The identifier of the snapshot the account is authorized to restore.
-
snapshotArn
public final String snapshotArn()
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
- Returns:
- The Amazon Resource Name (ARN) of the snapshot to authorize access to.
-
snapshotClusterIdentifier
public final String snapshotClusterIdentifier()
The identifier of the cluster the snapshot was created from.
-
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
-
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
- Returns:
- The identifier of the cluster the snapshot was created from.
-
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
-
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
-
-
-
accountWithRestoreAccess
public final String accountWithRestoreAccess()
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
- Returns:
- The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
-
toBuilder
public AuthorizeSnapshotAccessRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AuthorizeSnapshotAccessRequest.Builder,AuthorizeSnapshotAccessRequest>- Specified by:
toBuilderin classRedshiftRequest
-
builder
public static AuthorizeSnapshotAccessRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends AuthorizeSnapshotAccessRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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 classSdkRequest
-
-