@Generated(value="software.amazon.awssdk:codegen") public final class CreateClassificationJobRequest extends Macie2Request implements ToCopyableBuilder<CreateClassificationJobRequest.Builder,CreateClassificationJobRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateClassificationJobRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
allowListIds()
An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
|
static CreateClassificationJobRequest.Builder |
builder() |
String |
clientToken()
A unique, case-sensitive token that you provide to ensure the idempotency of the request.
|
List<String> |
customDataIdentifierIds()
An array of unique identifiers, one for each custom data identifier for the job to use when it analyzes data.
|
String |
description()
A custom description of the job.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAllowListIds()
For responses, this returns true if the service returned a value for the AllowListIds property.
|
boolean |
hasCustomDataIdentifierIds()
For responses, this returns true if the service returned a value for the CustomDataIdentifierIds property.
|
int |
hashCode() |
boolean |
hasManagedDataIdentifierIds()
For responses, this returns true if the service returned a value for the ManagedDataIdentifierIds property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Boolean |
initialRun()
For a recurring job, specifies whether to analyze all existing, eligible objects immediately after the job is
created (true).
|
JobType |
jobType()
The schedule for running the job.
|
String |
jobTypeAsString()
The schedule for running the job.
|
List<String> |
managedDataIdentifierIds()
An array of unique identifiers, one for each managed data identifier for the job to include (use) or exclude (not
use) when it analyzes data.
|
ManagedDataIdentifierSelector |
managedDataIdentifierSelector()
The selection type to apply when determining which managed data identifiers the job uses to analyze data.
|
String |
managedDataIdentifierSelectorAsString()
The selection type to apply when determining which managed data identifiers the job uses to analyze data.
|
String |
name()
A custom name for the job.
|
S3JobDefinition |
s3JobDefinition()
The S3 buckets that contain the objects to analyze, and the scope of that analysis.
|
Integer |
samplingPercentage()
The sampling depth, as a percentage, for the job to apply when processing objects.
|
JobScheduleFrequency |
scheduleFrequency()
The recurrence pattern for running the job.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateClassificationJobRequest.Builder> |
serializableBuilderClass() |
Map<String,String> |
tags()
A map of key-value pairs that specifies the tags to associate with the job.
|
CreateClassificationJobRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasAllowListIds()
isEmpty() 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.public final List<String> allowListIds()
An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
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 hasAllowListIds() method.
public final String clientToken()
A unique, case-sensitive token that you provide to ensure the idempotency of the request.
public final boolean hasCustomDataIdentifierIds()
isEmpty() 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.public final List<String> customDataIdentifierIds()
An array of unique identifiers, one for each custom data identifier for the job to use when it analyzes data. To use only managed data identifiers, don't specify a value for this property and specify a value other than NONE for the managedDataIdentifierSelector property.
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 hasCustomDataIdentifierIds() method.
public final String description()
A custom description of the job. The description can contain as many as 200 characters.
public final Boolean initialRun()
For a recurring job, specifies whether to analyze all existing, eligible objects immediately after the job is created (true). To analyze only those objects that are created or changed after you create the job and before the job's first scheduled run, set this value to false.
If you configure the job to run only once, don't specify a value for this property.
If you configure the job to run only once, don't specify a value for this property.
public final JobType jobType()
The schedule for running the job. Valid values are:
ONE_TIME - Run the job only once. If you specify this value, don't specify a value for the scheduleFrequency property.
SCHEDULED - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the scheduleFrequency property to define the recurrence pattern for the job.
If the service returns an enum value that is not available in the current SDK version, jobType will
return JobType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
jobTypeAsString().
ONE_TIME - Run the job only once. If you specify this value, don't specify a value for the scheduleFrequency property.
SCHEDULED - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the scheduleFrequency property to define the recurrence pattern for the job.
JobTypepublic final String jobTypeAsString()
The schedule for running the job. Valid values are:
ONE_TIME - Run the job only once. If you specify this value, don't specify a value for the scheduleFrequency property.
SCHEDULED - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the scheduleFrequency property to define the recurrence pattern for the job.
If the service returns an enum value that is not available in the current SDK version, jobType will
return JobType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
jobTypeAsString().
ONE_TIME - Run the job only once. If you specify this value, don't specify a value for the scheduleFrequency property.
SCHEDULED - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the scheduleFrequency property to define the recurrence pattern for the job.
JobTypepublic final boolean hasManagedDataIdentifierIds()
isEmpty() 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.public final List<String> managedDataIdentifierIds()
An array of unique identifiers, one for each managed data identifier for the job to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type that you specify for the job (managedDataIdentifierSelector).
To retrieve a list of valid values for this property, use the ListManagedDataIdentifiers operation.
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 hasManagedDataIdentifierIds() method.
To retrieve a list of valid values for this property, use the ListManagedDataIdentifiers operation.
public final ManagedDataIdentifierSelector managedDataIdentifierSelector()
The selection type to apply when determining which managed data identifiers the job uses to analyze data. Valid values are:
ALL (default) - Use all managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
EXCLUDE - Use all managed data identifiers except the ones specified by the managedDataIdentifierIds property.
INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.
NONE - Don't use any managed data identifiers. If you specify this value, specify at least one custom data identifier for the job (customDataIdentifierIds) and don't specify any values for the managedDataIdentifierIds property.
RECOMMENDED - Use only the set of managed data identifiers that Amazon Web Services recommends for jobs. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
If you don't specify a value for this property, the job uses all managed data identifiers.
If the job is a recurring job and you don't specify a value for this property or you specify ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If you specify RECOMMENDED for a recurring job, each job run automatically uses all the managed data identifiers that are in the recommended set when the job starts to run.
For information about individual managed data identifiers or to determine which ones are in the recommended set, see Using managed data identifiers and Recommended managed data identifiers in the Amazon Macie User Guide.
If the service returns an enum value that is not available in the current SDK version,
managedDataIdentifierSelector will return ManagedDataIdentifierSelector.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from managedDataIdentifierSelectorAsString().
ALL (default) - Use all managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
EXCLUDE - Use all managed data identifiers except the ones specified by the managedDataIdentifierIds property.
INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.
NONE - Don't use any managed data identifiers. If you specify this value, specify at least one custom data identifier for the job (customDataIdentifierIds) and don't specify any values for the managedDataIdentifierIds property.
RECOMMENDED - Use only the set of managed data identifiers that Amazon Web Services recommends for jobs. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
If you don't specify a value for this property, the job uses all managed data identifiers.
If the job is a recurring job and you don't specify a value for this property or you specify ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If you specify RECOMMENDED for a recurring job, each job run automatically uses all the managed data identifiers that are in the recommended set when the job starts to run.
For information about individual managed data identifiers or to determine which ones are in the recommended set, see Using managed data identifiers and Recommended managed data identifiers in the Amazon Macie User Guide.
ManagedDataIdentifierSelectorpublic final String managedDataIdentifierSelectorAsString()
The selection type to apply when determining which managed data identifiers the job uses to analyze data. Valid values are:
ALL (default) - Use all managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
EXCLUDE - Use all managed data identifiers except the ones specified by the managedDataIdentifierIds property.
INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.
NONE - Don't use any managed data identifiers. If you specify this value, specify at least one custom data identifier for the job (customDataIdentifierIds) and don't specify any values for the managedDataIdentifierIds property.
RECOMMENDED - Use only the set of managed data identifiers that Amazon Web Services recommends for jobs. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
If you don't specify a value for this property, the job uses all managed data identifiers.
If the job is a recurring job and you don't specify a value for this property or you specify ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If you specify RECOMMENDED for a recurring job, each job run automatically uses all the managed data identifiers that are in the recommended set when the job starts to run.
For information about individual managed data identifiers or to determine which ones are in the recommended set, see Using managed data identifiers and Recommended managed data identifiers in the Amazon Macie User Guide.
If the service returns an enum value that is not available in the current SDK version,
managedDataIdentifierSelector will return ManagedDataIdentifierSelector.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from managedDataIdentifierSelectorAsString().
ALL (default) - Use all managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
EXCLUDE - Use all managed data identifiers except the ones specified by the managedDataIdentifierIds property.
INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.
NONE - Don't use any managed data identifiers. If you specify this value, specify at least one custom data identifier for the job (customDataIdentifierIds) and don't specify any values for the managedDataIdentifierIds property.
RECOMMENDED - Use only the set of managed data identifiers that Amazon Web Services recommends for jobs. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
If you don't specify a value for this property, the job uses all managed data identifiers.
If the job is a recurring job and you don't specify a value for this property or you specify ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If you specify RECOMMENDED for a recurring job, each job run automatically uses all the managed data identifiers that are in the recommended set when the job starts to run.
For information about individual managed data identifiers or to determine which ones are in the recommended set, see Using managed data identifiers and Recommended managed data identifiers in the Amazon Macie User Guide.
ManagedDataIdentifierSelectorpublic final String name()
A custom name for the job. The name can contain as many as 500 characters.
public final S3JobDefinition s3JobDefinition()
The S3 buckets that contain the objects to analyze, and the scope of that analysis.
public final Integer samplingPercentage()
The sampling depth, as a percentage, for the job to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.
public final JobScheduleFrequency scheduleFrequency()
The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the jobType property to ONE_TIME.
public final boolean hasTags()
isEmpty() 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.public final Map<String,String> tags()
A map of key-value pairs that specifies the tags to associate with the job.
A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
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.
A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
public CreateClassificationJobRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateClassificationJobRequest.Builder,CreateClassificationJobRequest>toBuilder in class Macie2Requestpublic static CreateClassificationJobRequest.Builder builder()
public static Class<? extends CreateClassificationJobRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.