@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Configuration.Builder |
static class |
Configuration.Type |
| Modifier and Type | Method and Description |
|---|---|
static Configuration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static Configuration |
fromIamRole(Consumer<IamRoleConfiguration.Builder> iamRole)
Create an instance of this class with
iamRole() initialized to the given value. |
static Configuration |
fromIamRole(IamRoleConfiguration iamRole)
Create an instance of this class with
iamRole() initialized to the given value. |
static Configuration |
fromKmsKey(Consumer<KmsKeyConfiguration.Builder> kmsKey)
Create an instance of this class with
kmsKey() initialized to the given value. |
static Configuration |
fromKmsKey(KmsKeyConfiguration kmsKey)
Create an instance of this class with
kmsKey() initialized to the given value. |
static Configuration |
fromS3Bucket(Consumer<S3BucketConfiguration.Builder> s3Bucket)
Create an instance of this class with
s3Bucket() initialized to the given value. |
static Configuration |
fromS3Bucket(S3BucketConfiguration s3Bucket)
Create an instance of this class with
s3Bucket() initialized to the given value. |
static Configuration |
fromSecretsManagerSecret(Consumer<SecretsManagerSecretConfiguration.Builder> secretsManagerSecret)
Create an instance of this class with
secretsManagerSecret() initialized to the given value. |
static Configuration |
fromSecretsManagerSecret(SecretsManagerSecretConfiguration secretsManagerSecret)
Create an instance of this class with
secretsManagerSecret() initialized to the given value. |
static Configuration |
fromSqsQueue(Consumer<SqsQueueConfiguration.Builder> sqsQueue)
Create an instance of this class with
sqsQueue() initialized to the given value. |
static Configuration |
fromSqsQueue(SqsQueueConfiguration sqsQueue)
Create an instance of this class with
sqsQueue() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
IamRoleConfiguration |
iamRole()
The access control configuration is for an IAM role.
|
KmsKeyConfiguration |
kmsKey()
The access control configuration is for a KMS key.
|
S3BucketConfiguration |
s3Bucket()
The access control configuration is for an Amazon S3 Bucket.
|
List<SdkField<?>> |
sdkFields() |
SecretsManagerSecretConfiguration |
secretsManagerSecret()
The access control configuration is for a Secrets Manager secret.
|
static Class<? extends Configuration.Builder> |
serializableBuilderClass() |
SqsQueueConfiguration |
sqsQueue()
The access control configuration is for an Amazon SQS queue.
|
Configuration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Configuration.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final IamRoleConfiguration iamRole()
The access control configuration is for an IAM role.
public final KmsKeyConfiguration kmsKey()
The access control configuration is for a KMS key.
public final SecretsManagerSecretConfiguration secretsManagerSecret()
The access control configuration is for a Secrets Manager secret.
public final S3BucketConfiguration s3Bucket()
The access control configuration is for an Amazon S3 Bucket.
public final SqsQueueConfiguration sqsQueue()
The access control configuration is for an Amazon SQS queue.
public Configuration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Configuration.Builder,Configuration>public static Configuration.Builder builder()
public static Class<? extends Configuration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static Configuration fromIamRole(IamRoleConfiguration iamRole)
iamRole() initialized to the given value.
The access control configuration is for an IAM role.
iamRole - The access control configuration is for an IAM role.public static Configuration fromIamRole(Consumer<IamRoleConfiguration.Builder> iamRole)
iamRole() initialized to the given value.
The access control configuration is for an IAM role.
iamRole - The access control configuration is for an IAM role.public static Configuration fromKmsKey(KmsKeyConfiguration kmsKey)
kmsKey() initialized to the given value.
The access control configuration is for a KMS key.
kmsKey - The access control configuration is for a KMS key.public static Configuration fromKmsKey(Consumer<KmsKeyConfiguration.Builder> kmsKey)
kmsKey() initialized to the given value.
The access control configuration is for a KMS key.
kmsKey - The access control configuration is for a KMS key.public static Configuration fromSecretsManagerSecret(SecretsManagerSecretConfiguration secretsManagerSecret)
secretsManagerSecret() initialized to the given value.
The access control configuration is for a Secrets Manager secret.
secretsManagerSecret - The access control configuration is for a Secrets Manager secret.public static Configuration fromSecretsManagerSecret(Consumer<SecretsManagerSecretConfiguration.Builder> secretsManagerSecret)
secretsManagerSecret() initialized to the given value.
The access control configuration is for a Secrets Manager secret.
secretsManagerSecret - The access control configuration is for a Secrets Manager secret.public static Configuration fromS3Bucket(S3BucketConfiguration s3Bucket)
s3Bucket() initialized to the given value.
The access control configuration is for an Amazon S3 Bucket.
s3Bucket - The access control configuration is for an Amazon S3 Bucket.public static Configuration fromS3Bucket(Consumer<S3BucketConfiguration.Builder> s3Bucket)
s3Bucket() initialized to the given value.
The access control configuration is for an Amazon S3 Bucket.
s3Bucket - The access control configuration is for an Amazon S3 Bucket.public static Configuration fromSqsQueue(SqsQueueConfiguration sqsQueue)
sqsQueue() initialized to the given value.
The access control configuration is for an Amazon SQS queue.
sqsQueue - The access control configuration is for an Amazon SQS queue.public static Configuration fromSqsQueue(Consumer<SqsQueueConfiguration.Builder> sqsQueue)
sqsQueue() initialized to the given value.
The access control configuration is for an Amazon SQS queue.
sqsQueue - The access control configuration is for an Amazon SQS queue.public Configuration.Type type()
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 Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2022. All rights reserved.