java.lang.Object
software.amazon.awssdk.services.accessanalyzer.model.Configuration
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<Configuration.Builder,Configuration>

@Generated("software.amazon.awssdk:codegen") public final class Configuration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Configuration.Builder,Configuration>

Access control configuration structures for your resource. You specify the configuration as a type-value pair. You can specify only one type of access control configuration.

See Also:
  • Method Details

    • ebsSnapshot

      public final EbsSnapshotConfiguration ebsSnapshot()

      The access control configuration is for an Amazon EBS volume snapshot.

      Returns:
      The access control configuration is for an Amazon EBS volume snapshot.
    • ecrRepository

      public final EcrRepositoryConfiguration ecrRepository()

      The access control configuration is for an Amazon ECR repository.

      Returns:
      The access control configuration is for an Amazon ECR repository.
    • iamRole

      public final IamRoleConfiguration iamRole()

      The access control configuration is for an IAM role.

      Returns:
      The access control configuration is for an IAM role.
    • efsFileSystem

      public final EfsFileSystemConfiguration efsFileSystem()

      The access control configuration is for an Amazon EFS file system.

      Returns:
      The access control configuration is for an Amazon EFS file system.
    • kmsKey

      public final KmsKeyConfiguration kmsKey()

      The access control configuration is for a KMS key.

      Returns:
      The access control configuration is for a KMS key.
    • rdsDbClusterSnapshot

      public final RdsDbClusterSnapshotConfiguration rdsDbClusterSnapshot()

      The access control configuration is for an Amazon RDS DB cluster snapshot.

      Returns:
      The access control configuration is for an Amazon RDS DB cluster snapshot.
    • rdsDbSnapshot

      public final RdsDbSnapshotConfiguration rdsDbSnapshot()

      The access control configuration is for an Amazon RDS DB snapshot.

      Returns:
      The access control configuration is for an Amazon RDS DB snapshot.
    • secretsManagerSecret

      public final SecretsManagerSecretConfiguration secretsManagerSecret()

      The access control configuration is for a Secrets Manager secret.

      Returns:
      The access control configuration is for a Secrets Manager secret.
    • s3Bucket

      public final S3BucketConfiguration s3Bucket()

      The access control configuration is for an Amazon S3 bucket.

      Returns:
      The access control configuration is for an Amazon S3 bucket.
    • snsTopic

      public final SnsTopicConfiguration snsTopic()

      The access control configuration is for an Amazon SNS topic

      Returns:
      The access control configuration is for an Amazon SNS topic
    • sqsQueue

      public final SqsQueueConfiguration sqsQueue()

      The access control configuration is for an Amazon SQS queue.

      Returns:
      The access control configuration is for an Amazon SQS queue.
    • s3ExpressDirectoryBucket

      public final S3ExpressDirectoryBucketConfiguration s3ExpressDirectoryBucket()

      The access control configuration is for an Amazon S3 directory bucket.

      Returns:
      The access control configuration is for an Amazon S3 directory bucket.
    • dynamodbStream

      public final DynamodbStreamConfiguration dynamodbStream()

      The access control configuration is for a DynamoDB stream.

      Returns:
      The access control configuration is for a DynamoDB stream.
    • dynamodbTable

      public final DynamodbTableConfiguration dynamodbTable()

      The access control configuration is for a DynamoDB table or index.

      Returns:
      The access control configuration is for a DynamoDB table or index.
    • toBuilder

      public Configuration.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<Configuration.Builder,Configuration>
      Returns:
      a builder for type T
    • builder

      public static Configuration.Builder builder()
    • serializableBuilderClass

      public static Class<? extends Configuration.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • fromEbsSnapshot

      public static Configuration fromEbsSnapshot(EbsSnapshotConfiguration ebsSnapshot)
      Create an instance of this class with ebsSnapshot() initialized to the given value.

      The access control configuration is for an Amazon EBS volume snapshot.

      Parameters:
      ebsSnapshot - The access control configuration is for an Amazon EBS volume snapshot.
    • fromEbsSnapshot

      public static Configuration fromEbsSnapshot(Consumer<EbsSnapshotConfiguration.Builder> ebsSnapshot)
      Create an instance of this class with ebsSnapshot() initialized to the given value.

      The access control configuration is for an Amazon EBS volume snapshot.

      Parameters:
      ebsSnapshot - The access control configuration is for an Amazon EBS volume snapshot.
    • fromEcrRepository

      public static Configuration fromEcrRepository(EcrRepositoryConfiguration ecrRepository)
      Create an instance of this class with ecrRepository() initialized to the given value.

      The access control configuration is for an Amazon ECR repository.

      Parameters:
      ecrRepository - The access control configuration is for an Amazon ECR repository.
    • fromEcrRepository

      public static Configuration fromEcrRepository(Consumer<EcrRepositoryConfiguration.Builder> ecrRepository)
      Create an instance of this class with ecrRepository() initialized to the given value.

      The access control configuration is for an Amazon ECR repository.

      Parameters:
      ecrRepository - The access control configuration is for an Amazon ECR repository.
    • fromIamRole

      public static Configuration fromIamRole(IamRoleConfiguration iamRole)
      Create an instance of this class with iamRole() initialized to the given value.

      The access control configuration is for an IAM role.

      Parameters:
      iamRole - The access control configuration is for an IAM role.
    • fromIamRole

      public static Configuration fromIamRole(Consumer<IamRoleConfiguration.Builder> iamRole)
      Create an instance of this class with iamRole() initialized to the given value.

      The access control configuration is for an IAM role.

      Parameters:
      iamRole - The access control configuration is for an IAM role.
    • fromEfsFileSystem

      public static Configuration fromEfsFileSystem(EfsFileSystemConfiguration efsFileSystem)
      Create an instance of this class with efsFileSystem() initialized to the given value.

      The access control configuration is for an Amazon EFS file system.

      Parameters:
      efsFileSystem - The access control configuration is for an Amazon EFS file system.
    • fromEfsFileSystem

      public static Configuration fromEfsFileSystem(Consumer<EfsFileSystemConfiguration.Builder> efsFileSystem)
      Create an instance of this class with efsFileSystem() initialized to the given value.

      The access control configuration is for an Amazon EFS file system.

      Parameters:
      efsFileSystem - The access control configuration is for an Amazon EFS file system.
    • fromKmsKey

      public static Configuration fromKmsKey(KmsKeyConfiguration kmsKey)
      Create an instance of this class with kmsKey() initialized to the given value.

      The access control configuration is for a KMS key.

      Parameters:
      kmsKey - The access control configuration is for a KMS key.
    • fromKmsKey

      public static Configuration fromKmsKey(Consumer<KmsKeyConfiguration.Builder> kmsKey)
      Create an instance of this class with kmsKey() initialized to the given value.

      The access control configuration is for a KMS key.

      Parameters:
      kmsKey - The access control configuration is for a KMS key.
    • fromRdsDbClusterSnapshot

      public static Configuration fromRdsDbClusterSnapshot(RdsDbClusterSnapshotConfiguration rdsDbClusterSnapshot)
      Create an instance of this class with rdsDbClusterSnapshot() initialized to the given value.

      The access control configuration is for an Amazon RDS DB cluster snapshot.

      Parameters:
      rdsDbClusterSnapshot - The access control configuration is for an Amazon RDS DB cluster snapshot.
    • fromRdsDbClusterSnapshot

      public static Configuration fromRdsDbClusterSnapshot(Consumer<RdsDbClusterSnapshotConfiguration.Builder> rdsDbClusterSnapshot)
      Create an instance of this class with rdsDbClusterSnapshot() initialized to the given value.

      The access control configuration is for an Amazon RDS DB cluster snapshot.

      Parameters:
      rdsDbClusterSnapshot - The access control configuration is for an Amazon RDS DB cluster snapshot.
    • fromRdsDbSnapshot

      public static Configuration fromRdsDbSnapshot(RdsDbSnapshotConfiguration rdsDbSnapshot)
      Create an instance of this class with rdsDbSnapshot() initialized to the given value.

      The access control configuration is for an Amazon RDS DB snapshot.

      Parameters:
      rdsDbSnapshot - The access control configuration is for an Amazon RDS DB snapshot.
    • fromRdsDbSnapshot

      public static Configuration fromRdsDbSnapshot(Consumer<RdsDbSnapshotConfiguration.Builder> rdsDbSnapshot)
      Create an instance of this class with rdsDbSnapshot() initialized to the given value.

      The access control configuration is for an Amazon RDS DB snapshot.

      Parameters:
      rdsDbSnapshot - The access control configuration is for an Amazon RDS DB snapshot.
    • fromSecretsManagerSecret

      public static Configuration fromSecretsManagerSecret(SecretsManagerSecretConfiguration secretsManagerSecret)
      Create an instance of this class with secretsManagerSecret() initialized to the given value.

      The access control configuration is for a Secrets Manager secret.

      Parameters:
      secretsManagerSecret - The access control configuration is for a Secrets Manager secret.
    • fromSecretsManagerSecret

      public static Configuration fromSecretsManagerSecret(Consumer<SecretsManagerSecretConfiguration.Builder> secretsManagerSecret)
      Create an instance of this class with secretsManagerSecret() initialized to the given value.

      The access control configuration is for a Secrets Manager secret.

      Parameters:
      secretsManagerSecret - The access control configuration is for a Secrets Manager secret.
    • fromS3Bucket

      public static Configuration fromS3Bucket(S3BucketConfiguration s3Bucket)
      Create an instance of this class with s3Bucket() initialized to the given value.

      The access control configuration is for an Amazon S3 bucket.

      Parameters:
      s3Bucket - The access control configuration is for an Amazon S3 bucket.
    • fromS3Bucket

      public static Configuration fromS3Bucket(Consumer<S3BucketConfiguration.Builder> s3Bucket)
      Create an instance of this class with s3Bucket() initialized to the given value.

      The access control configuration is for an Amazon S3 bucket.

      Parameters:
      s3Bucket - The access control configuration is for an Amazon S3 bucket.
    • fromSnsTopic

      public static Configuration fromSnsTopic(SnsTopicConfiguration snsTopic)
      Create an instance of this class with snsTopic() initialized to the given value.

      The access control configuration is for an Amazon SNS topic

      Parameters:
      snsTopic - The access control configuration is for an Amazon SNS topic
    • fromSnsTopic

      public static Configuration fromSnsTopic(Consumer<SnsTopicConfiguration.Builder> snsTopic)
      Create an instance of this class with snsTopic() initialized to the given value.

      The access control configuration is for an Amazon SNS topic

      Parameters:
      snsTopic - The access control configuration is for an Amazon SNS topic
    • fromSqsQueue

      public static Configuration fromSqsQueue(SqsQueueConfiguration sqsQueue)
      Create an instance of this class with sqsQueue() initialized to the given value.

      The access control configuration is for an Amazon SQS queue.

      Parameters:
      sqsQueue - The access control configuration is for an Amazon SQS queue.
    • fromSqsQueue

      public static Configuration fromSqsQueue(Consumer<SqsQueueConfiguration.Builder> sqsQueue)
      Create an instance of this class with sqsQueue() initialized to the given value.

      The access control configuration is for an Amazon SQS queue.

      Parameters:
      sqsQueue - The access control configuration is for an Amazon SQS queue.
    • fromS3ExpressDirectoryBucket

      public static Configuration fromS3ExpressDirectoryBucket(S3ExpressDirectoryBucketConfiguration s3ExpressDirectoryBucket)
      Create an instance of this class with s3ExpressDirectoryBucket() initialized to the given value.

      The access control configuration is for an Amazon S3 directory bucket.

      Parameters:
      s3ExpressDirectoryBucket - The access control configuration is for an Amazon S3 directory bucket.
    • fromS3ExpressDirectoryBucket

      public static Configuration fromS3ExpressDirectoryBucket(Consumer<S3ExpressDirectoryBucketConfiguration.Builder> s3ExpressDirectoryBucket)
      Create an instance of this class with s3ExpressDirectoryBucket() initialized to the given value.

      The access control configuration is for an Amazon S3 directory bucket.

      Parameters:
      s3ExpressDirectoryBucket - The access control configuration is for an Amazon S3 directory bucket.
    • fromDynamodbStream

      public static Configuration fromDynamodbStream(DynamodbStreamConfiguration dynamodbStream)
      Create an instance of this class with dynamodbStream() initialized to the given value.

      The access control configuration is for a DynamoDB stream.

      Parameters:
      dynamodbStream - The access control configuration is for a DynamoDB stream.
    • fromDynamodbStream

      public static Configuration fromDynamodbStream(Consumer<DynamodbStreamConfiguration.Builder> dynamodbStream)
      Create an instance of this class with dynamodbStream() initialized to the given value.

      The access control configuration is for a DynamoDB stream.

      Parameters:
      dynamodbStream - The access control configuration is for a DynamoDB stream.
    • fromDynamodbTable

      public static Configuration fromDynamodbTable(DynamodbTableConfiguration dynamodbTable)
      Create an instance of this class with dynamodbTable() initialized to the given value.

      The access control configuration is for a DynamoDB table or index.

      Parameters:
      dynamodbTable - The access control configuration is for a DynamoDB table or index.
    • fromDynamodbTable

      public static Configuration fromDynamodbTable(Consumer<DynamodbTableConfiguration.Builder> dynamodbTable)
      Create an instance of this class with dynamodbTable() initialized to the given value.

      The access control configuration is for a DynamoDB table or index.

      Parameters:
      dynamodbTable - The access control configuration is for a DynamoDB table or index.
    • type

      public Configuration.Type type()
      Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will be Configuration.Type.UNKNOWN_TO_SDK_VERSION if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will be Configuration.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.