com.amazonaws.services.macie2.model.CreateClassificationJobRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-macie2 Show documentation
/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.macie2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateClassificationJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
*
*/
private java.util.List allowListIds;
/**
*
* A unique, case-sensitive token that you provide to ensure the idempotency of the request.
*
*/
private String clientToken;
/**
*
* 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.
*
*/
private java.util.List customDataIdentifierIds;
/**
*
* A custom description of the job. The description can contain as many as 200 characters.
*
*/
private String description;
/**
*
* 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.
*
*/
private Boolean initialRun;
/**
*
* 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.
*
*
*
*/
private String jobType;
/**
*
* 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.
*
*/
private java.util.List managedDataIdentifierIds;
/**
*
* 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.
*
*/
private String managedDataIdentifierSelector;
/**
*
* A custom name for the job. The name can contain as many as 500 characters.
*
*/
private String name;
/**
*
* The S3 buckets that contain the objects to analyze, and the scope of that analysis.
*
*/
private S3JobDefinition s3JobDefinition;
/**
*
* 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.
*
*/
private Integer samplingPercentage;
/**
*
* 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.
*
*/
private JobScheduleFrequency scheduleFrequency;
/**
*
* 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.
*
*/
private java.util.Map tags;
/**
*
* An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
*
*
* @return An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
*/
public java.util.List getAllowListIds() {
return allowListIds;
}
/**
*
* An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
*
*
* @param allowListIds
* An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
*/
public void setAllowListIds(java.util.Collection allowListIds) {
if (allowListIds == null) {
this.allowListIds = null;
return;
}
this.allowListIds = new java.util.ArrayList(allowListIds);
}
/**
*
* An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAllowListIds(java.util.Collection)} or {@link #withAllowListIds(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param allowListIds
* An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withAllowListIds(String... allowListIds) {
if (this.allowListIds == null) {
setAllowListIds(new java.util.ArrayList(allowListIds.length));
}
for (String ele : allowListIds) {
this.allowListIds.add(ele);
}
return this;
}
/**
*
* An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
*
*
* @param allowListIds
* An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withAllowListIds(java.util.Collection allowListIds) {
setAllowListIds(allowListIds);
return this;
}
/**
*
* A unique, case-sensitive token that you provide to ensure the idempotency of the request.
*
*
* @param clientToken
* A unique, case-sensitive token that you provide to ensure the idempotency of the request.
*/
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
/**
*
* A unique, case-sensitive token that you provide to ensure the idempotency of the request.
*
*
* @return A unique, case-sensitive token that you provide to ensure the idempotency of the request.
*/
public String getClientToken() {
return this.clientToken;
}
/**
*
* A unique, case-sensitive token that you provide to ensure the idempotency of the request.
*
*
* @param clientToken
* A unique, case-sensitive token that you provide to ensure the idempotency of the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withClientToken(String clientToken) {
setClientToken(clientToken);
return this;
}
/**
*
* 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.
*
*
* @return 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.
*/
public java.util.List getCustomDataIdentifierIds() {
return 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.
*
*
* @param 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.
*/
public void setCustomDataIdentifierIds(java.util.Collection customDataIdentifierIds) {
if (customDataIdentifierIds == null) {
this.customDataIdentifierIds = null;
return;
}
this.customDataIdentifierIds = new java.util.ArrayList(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.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCustomDataIdentifierIds(java.util.Collection)} or
* {@link #withCustomDataIdentifierIds(java.util.Collection)} if you want to override the existing values.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withCustomDataIdentifierIds(String... customDataIdentifierIds) {
if (this.customDataIdentifierIds == null) {
setCustomDataIdentifierIds(new java.util.ArrayList(customDataIdentifierIds.length));
}
for (String ele : customDataIdentifierIds) {
this.customDataIdentifierIds.add(ele);
}
return this;
}
/**
*
* 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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withCustomDataIdentifierIds(java.util.Collection customDataIdentifierIds) {
setCustomDataIdentifierIds(customDataIdentifierIds);
return this;
}
/**
*
* A custom description of the job. The description can contain as many as 200 characters.
*
*
* @param description
* A custom description of the job. The description can contain as many as 200 characters.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A custom description of the job. The description can contain as many as 200 characters.
*
*
* @return A custom description of the job. The description can contain as many as 200 characters.
*/
public String getDescription() {
return this.description;
}
/**
*
* A custom description of the job. The description can contain as many as 200 characters.
*
*
* @param description
* A custom description of the job. The description can contain as many as 200 characters.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* 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.
*
*
* @param 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.
*/
public void setInitialRun(Boolean initialRun) {
this.initialRun = 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.
*
*
* @return 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.
*/
public Boolean getInitialRun() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withInitialRun(Boolean initialRun) {
setInitialRun(initialRun);
return this;
}
/**
*
* 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.
*
*
* @return 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.
*/
public Boolean isInitialRun() {
return this.initialRun;
}
/**
*
* 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.
*
*
*
*
* @param 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.
*
*
* @see JobType
*/
public void setJobType(String jobType) {
this.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.
*
*
*
*
* @return 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.
*
*
* @see JobType
*/
public String getJobType() {
return this.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.
*
*
*
*
* @param 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobType
*/
public CreateClassificationJobRequest withJobType(String jobType) {
setJobType(jobType);
return this;
}
/**
*
* 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.
*
*
*
*
* @param 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobType
*/
public CreateClassificationJobRequest withJobType(JobType jobType) {
this.jobType = jobType.toString();
return this;
}
/**
*
* 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.
*
*
* @return 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.
*/
public java.util.List getManagedDataIdentifierIds() {
return 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.
*
*
* @param 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.
*/
public void setManagedDataIdentifierIds(java.util.Collection managedDataIdentifierIds) {
if (managedDataIdentifierIds == null) {
this.managedDataIdentifierIds = null;
return;
}
this.managedDataIdentifierIds = new java.util.ArrayList(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.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setManagedDataIdentifierIds(java.util.Collection)} or
* {@link #withManagedDataIdentifierIds(java.util.Collection)} if you want to override the existing values.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withManagedDataIdentifierIds(String... managedDataIdentifierIds) {
if (this.managedDataIdentifierIds == null) {
setManagedDataIdentifierIds(new java.util.ArrayList(managedDataIdentifierIds.length));
}
for (String ele : managedDataIdentifierIds) {
this.managedDataIdentifierIds.add(ele);
}
return this;
}
/**
*
* 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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withManagedDataIdentifierIds(java.util.Collection managedDataIdentifierIds) {
setManagedDataIdentifierIds(managedDataIdentifierIds);
return this;
}
/**
*
* 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.
*
*
* @param 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.
* @see ManagedDataIdentifierSelector
*/
public void setManagedDataIdentifierSelector(String managedDataIdentifierSelector) {
this.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.
*
*
* @return 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.
* @see ManagedDataIdentifierSelector
*/
public String getManagedDataIdentifierSelector() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ManagedDataIdentifierSelector
*/
public CreateClassificationJobRequest withManagedDataIdentifierSelector(String managedDataIdentifierSelector) {
setManagedDataIdentifierSelector(managedDataIdentifierSelector);
return this;
}
/**
*
* 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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ManagedDataIdentifierSelector
*/
public CreateClassificationJobRequest withManagedDataIdentifierSelector(ManagedDataIdentifierSelector managedDataIdentifierSelector) {
this.managedDataIdentifierSelector = managedDataIdentifierSelector.toString();
return this;
}
/**
*
* A custom name for the job. The name can contain as many as 500 characters.
*
*
* @param name
* A custom name for the job. The name can contain as many as 500 characters.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* A custom name for the job. The name can contain as many as 500 characters.
*
*
* @return A custom name for the job. The name can contain as many as 500 characters.
*/
public String getName() {
return this.name;
}
/**
*
* A custom name for the job. The name can contain as many as 500 characters.
*
*
* @param name
* A custom name for the job. The name can contain as many as 500 characters.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The S3 buckets that contain the objects to analyze, and the scope of that analysis.
*
*
* @param s3JobDefinition
* The S3 buckets that contain the objects to analyze, and the scope of that analysis.
*/
public void setS3JobDefinition(S3JobDefinition s3JobDefinition) {
this.s3JobDefinition = s3JobDefinition;
}
/**
*
* The S3 buckets that contain the objects to analyze, and the scope of that analysis.
*
*
* @return The S3 buckets that contain the objects to analyze, and the scope of that analysis.
*/
public S3JobDefinition getS3JobDefinition() {
return this.s3JobDefinition;
}
/**
*
* The S3 buckets that contain the objects to analyze, and the scope of that analysis.
*
*
* @param s3JobDefinition
* The S3 buckets that contain the objects to analyze, and the scope of that analysis.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withS3JobDefinition(S3JobDefinition s3JobDefinition) {
setS3JobDefinition(s3JobDefinition);
return this;
}
/**
*
* 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.
*
*
* @param 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 void setSamplingPercentage(Integer samplingPercentage) {
this.samplingPercentage = 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.
*
*
* @return 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 Integer getSamplingPercentage() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withSamplingPercentage(Integer samplingPercentage) {
setSamplingPercentage(samplingPercentage);
return this;
}
/**
*
* 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.
*
*
* @param 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 void setScheduleFrequency(JobScheduleFrequency scheduleFrequency) {
this.scheduleFrequency = 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.
*
*
* @return 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 JobScheduleFrequency getScheduleFrequency() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withScheduleFrequency(JobScheduleFrequency scheduleFrequency) {
setScheduleFrequency(scheduleFrequency);
return this;
}
/**
*
* 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.
*
*
* @return 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.
*/
public java.util.Map getTags() {
return 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.
*
*
* @param 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.
*/
public void setTags(java.util.Map tags) {
this.tags = 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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see CreateClassificationJobRequest#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClassificationJobRequest clearTagsEntries() {
this.tags = null;
return this;
}
/**
* 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.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAllowListIds() != null)
sb.append("AllowListIds: ").append(getAllowListIds()).append(",");
if (getClientToken() != null)
sb.append("ClientToken: ").append(getClientToken()).append(",");
if (getCustomDataIdentifierIds() != null)
sb.append("CustomDataIdentifierIds: ").append(getCustomDataIdentifierIds()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getInitialRun() != null)
sb.append("InitialRun: ").append(getInitialRun()).append(",");
if (getJobType() != null)
sb.append("JobType: ").append(getJobType()).append(",");
if (getManagedDataIdentifierIds() != null)
sb.append("ManagedDataIdentifierIds: ").append(getManagedDataIdentifierIds()).append(",");
if (getManagedDataIdentifierSelector() != null)
sb.append("ManagedDataIdentifierSelector: ").append(getManagedDataIdentifierSelector()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getS3JobDefinition() != null)
sb.append("S3JobDefinition: ").append(getS3JobDefinition()).append(",");
if (getSamplingPercentage() != null)
sb.append("SamplingPercentage: ").append(getSamplingPercentage()).append(",");
if (getScheduleFrequency() != null)
sb.append("ScheduleFrequency: ").append(getScheduleFrequency()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateClassificationJobRequest == false)
return false;
CreateClassificationJobRequest other = (CreateClassificationJobRequest) obj;
if (other.getAllowListIds() == null ^ this.getAllowListIds() == null)
return false;
if (other.getAllowListIds() != null && other.getAllowListIds().equals(this.getAllowListIds()) == false)
return false;
if (other.getClientToken() == null ^ this.getClientToken() == null)
return false;
if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false)
return false;
if (other.getCustomDataIdentifierIds() == null ^ this.getCustomDataIdentifierIds() == null)
return false;
if (other.getCustomDataIdentifierIds() != null && other.getCustomDataIdentifierIds().equals(this.getCustomDataIdentifierIds()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getInitialRun() == null ^ this.getInitialRun() == null)
return false;
if (other.getInitialRun() != null && other.getInitialRun().equals(this.getInitialRun()) == false)
return false;
if (other.getJobType() == null ^ this.getJobType() == null)
return false;
if (other.getJobType() != null && other.getJobType().equals(this.getJobType()) == false)
return false;
if (other.getManagedDataIdentifierIds() == null ^ this.getManagedDataIdentifierIds() == null)
return false;
if (other.getManagedDataIdentifierIds() != null && other.getManagedDataIdentifierIds().equals(this.getManagedDataIdentifierIds()) == false)
return false;
if (other.getManagedDataIdentifierSelector() == null ^ this.getManagedDataIdentifierSelector() == null)
return false;
if (other.getManagedDataIdentifierSelector() != null
&& other.getManagedDataIdentifierSelector().equals(this.getManagedDataIdentifierSelector()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getS3JobDefinition() == null ^ this.getS3JobDefinition() == null)
return false;
if (other.getS3JobDefinition() != null && other.getS3JobDefinition().equals(this.getS3JobDefinition()) == false)
return false;
if (other.getSamplingPercentage() == null ^ this.getSamplingPercentage() == null)
return false;
if (other.getSamplingPercentage() != null && other.getSamplingPercentage().equals(this.getSamplingPercentage()) == false)
return false;
if (other.getScheduleFrequency() == null ^ this.getScheduleFrequency() == null)
return false;
if (other.getScheduleFrequency() != null && other.getScheduleFrequency().equals(this.getScheduleFrequency()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAllowListIds() == null) ? 0 : getAllowListIds().hashCode());
hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode());
hashCode = prime * hashCode + ((getCustomDataIdentifierIds() == null) ? 0 : getCustomDataIdentifierIds().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getInitialRun() == null) ? 0 : getInitialRun().hashCode());
hashCode = prime * hashCode + ((getJobType() == null) ? 0 : getJobType().hashCode());
hashCode = prime * hashCode + ((getManagedDataIdentifierIds() == null) ? 0 : getManagedDataIdentifierIds().hashCode());
hashCode = prime * hashCode + ((getManagedDataIdentifierSelector() == null) ? 0 : getManagedDataIdentifierSelector().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getS3JobDefinition() == null) ? 0 : getS3JobDefinition().hashCode());
hashCode = prime * hashCode + ((getSamplingPercentage() == null) ? 0 : getSamplingPercentage().hashCode());
hashCode = prime * hashCode + ((getScheduleFrequency() == null) ? 0 : getScheduleFrequency().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
}
@Override
public CreateClassificationJobRequest clone() {
return (CreateClassificationJobRequest) super.clone();
}
}