Class RevealConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.RevealConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RevealConfiguration.Builder,RevealConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class RevealConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RevealConfiguration.Builder,RevealConfiguration>
Specifies the status of the Amazon Macie configuration for retrieving occurrences of sensitive data reported by findings, and the Key Management Service (KMS) key to use to encrypt sensitive data that's retrieved. When you enable the configuration for the first time, your request must specify an KMS key. Otherwise, an error occurs.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRevealConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RevealConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkmsKeyId()The Amazon Resource Name (ARN), ID, or alias of the KMS key to use to encrypt sensitive data that's retrieved.List<SdkField<?>>sdkFields()static Class<? extends RevealConfiguration.Builder>serializableBuilderClass()RevealStatusstatus()The status of the configuration for the Amazon Macie account.StringstatusAsString()The status of the configuration for the Amazon Macie account.RevealConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
kmsKeyId
public final String kmsKeyId()
The Amazon Resource Name (ARN), ID, or alias of the KMS key to use to encrypt sensitive data that's retrieved. The key must be an existing, customer managed, symmetric encryption key that's enabled in the same Amazon Web Services Region as the Amazon Macie account.
If this value specifies an alias, it must include the following prefix: alias/. If this value specifies a key that's owned by another Amazon Web Services account, it must specify the ARN of the key or the ARN of the key's alias.
- Returns:
- The Amazon Resource Name (ARN), ID, or alias of the KMS key to use to encrypt sensitive data that's
retrieved. The key must be an existing, customer managed, symmetric encryption key that's enabled in the
same Amazon Web Services Region as the Amazon Macie account.
If this value specifies an alias, it must include the following prefix: alias/. If this value specifies a key that's owned by another Amazon Web Services account, it must specify the ARN of the key or the ARN of the key's alias.
-
status
public final RevealStatus status()
The status of the configuration for the Amazon Macie account. In a request, valid values are: ENABLED, enable the configuration for the account; and, DISABLED, disable the configuration for the account. In a response, possible values are: ENABLED, the configuration is currently enabled for the account; and, DISABLED, the configuration is currently disabled for the account.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnRevealStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the configuration for the Amazon Macie account. In a request, valid values are: ENABLED, enable the configuration for the account; and, DISABLED, disable the configuration for the account. In a response, possible values are: ENABLED, the configuration is currently enabled for the account; and, DISABLED, the configuration is currently disabled for the account.
- See Also:
RevealStatus
-
statusAsString
public final String statusAsString()
The status of the configuration for the Amazon Macie account. In a request, valid values are: ENABLED, enable the configuration for the account; and, DISABLED, disable the configuration for the account. In a response, possible values are: ENABLED, the configuration is currently enabled for the account; and, DISABLED, the configuration is currently disabled for the account.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnRevealStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the configuration for the Amazon Macie account. In a request, valid values are: ENABLED, enable the configuration for the account; and, DISABLED, disable the configuration for the account. In a response, possible values are: ENABLED, the configuration is currently enabled for the account; and, DISABLED, the configuration is currently disabled for the account.
- See Also:
RevealStatus
-
toBuilder
public RevealConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RevealConfiguration.Builder,RevealConfiguration>
-
builder
public static RevealConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends RevealConfiguration.Builder> serializableBuilderClass()
-
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.
-
-