Class DescribeClassificationJobResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.macie2.model.Macie2Response
-
- software.amazon.awssdk.services.macie2.model.DescribeClassificationJobResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeClassificationJobResponse.Builder,DescribeClassificationJobResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeClassificationJobResponse extends Macie2Response implements ToCopyableBuilder<DescribeClassificationJobResponse.Builder,DescribeClassificationJobResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeClassificationJobResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>allowListIds()An array of unique identifiers, one for each allow list that the job uses when it analyzes data.static DescribeClassificationJobResponse.Builderbuilder()StringclientToken()The token that was provided to ensure the idempotency of the request to create the job.InstantcreatedAt()The date and time, in UTC and extended ISO 8601 format, when the job was created.List<String>customDataIdentifierIds()An array of unique identifiers, one for each custom data identifier that the job uses when it analyzes data.Stringdescription()The custom description of the job.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAllowListIds()For responses, this returns true if the service returned a value for the AllowListIds property.booleanhasCustomDataIdentifierIds()For responses, this returns true if the service returned a value for the CustomDataIdentifierIds property.inthashCode()booleanhasManagedDataIdentifierIds()For responses, this returns true if the service returned a value for the ManagedDataIdentifierIds property.booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.BooleaninitialRun()For a recurring job, specifies whether you configured the job to analyze all existing, eligible objects immediately after the job was created (true).StringjobArn()The Amazon Resource Name (ARN) of the job.StringjobId()The unique identifier for the job.JobStatusjobStatus()The current status of the job.StringjobStatusAsString()The current status of the job.JobTypejobType()The schedule for running the job.StringjobTypeAsString()The schedule for running the job.LastRunErrorStatuslastRunErrorStatus()Specifies whether any account- or bucket-level access errors occurred when the job ran.InstantlastRunTime()The date and time, in UTC and extended ISO 8601 format, when the job started.List<String>managedDataIdentifierIds()An array of unique identifiers, one for each managed data identifier that the job is explicitly configured to include (use) or exclude (not use) when it analyzes data.ManagedDataIdentifierSelectormanagedDataIdentifierSelector()The selection type that determines which managed data identifiers the job uses when it analyzes data.StringmanagedDataIdentifierSelectorAsString()The selection type that determines which managed data identifiers the job uses when it analyzes data.Stringname()The custom name of the job.S3JobDefinitions3JobDefinition()The S3 buckets that contain the objects to analyze, and the scope of that analysis.IntegersamplingPercentage()The sampling depth, as a percentage, that determines the percentage of eligible objects that the job analyzes.JobScheduleFrequencyscheduleFrequency()The recurrence pattern for running the job.List<SdkField<?>>sdkFields()static Class<? extends DescribeClassificationJobResponse.Builder>serializableBuilderClass()Statisticsstatistics()The number of times that the job has run and processing statistics for the job's current run.Map<String,String>tags()A map of key-value pairs that specifies which tags (keys and values) are associated with the classification job.DescribeClassificationJobResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.UserPausedDetailsuserPausedDetails()If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed.-
Methods inherited from class software.amazon.awssdk.services.macie2.model.Macie2Response
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
hasAllowListIds
public final boolean hasAllowListIds()
For responses, this returns true if the service returned a value for the AllowListIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
allowListIds
public final List<String> allowListIds()
An array of unique identifiers, one for each allow list that the job uses 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.- Returns:
- An array of unique identifiers, one for each allow list that the job uses when it analyzes data.
-
clientToken
public final String clientToken()
The token that was provided to ensure the idempotency of the request to create the job.
- Returns:
- The token that was provided to ensure the idempotency of the request to create the job.
-
createdAt
public final Instant createdAt()
The date and time, in UTC and extended ISO 8601 format, when the job was created.
- Returns:
- The date and time, in UTC and extended ISO 8601 format, when the job was created.
-
hasCustomDataIdentifierIds
public final boolean hasCustomDataIdentifierIds()
For responses, this returns true if the service returned a value for the CustomDataIdentifierIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
customDataIdentifierIds
public final List<String> customDataIdentifierIds()
An array of unique identifiers, one for each custom data identifier that the job uses when it analyzes data. This value is null if the job uses only managed data identifiers to analyze 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
hasCustomDataIdentifierIds()method.- Returns:
- An array of unique identifiers, one for each custom data identifier that the job uses when it analyzes data. This value is null if the job uses only managed data identifiers to analyze data.
-
description
public final String description()
The custom description of the job.
- Returns:
- The custom description of the job.
-
initialRun
public final Boolean initialRun()
For a recurring job, specifies whether you configured the job to analyze all existing, eligible objects immediately after the job was created (true). If you configured the job to analyze only those objects that were created or changed after the job was created and before the job's first scheduled run, this value is false. This value is also false for a one-time job.
- Returns:
- For a recurring job, specifies whether you configured the job to analyze all existing, eligible objects immediately after the job was created (true). If you configured the job to analyze only those objects that were created or changed after the job was created and before the job's first scheduled run, this value is false. This value is also false for a one-time job.
-
jobArn
public final String jobArn()
The Amazon Resource Name (ARN) of the job.
- Returns:
- The Amazon Resource Name (ARN) of the job.
-
jobId
public final String jobId()
The unique identifier for the job.
- Returns:
- The unique identifier for the job.
-
jobStatus
public final JobStatus jobStatus()
The current status of the job. Possible values are:
-
CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.
-
COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.
-
IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.
-
PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.
-
RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.
-
USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.
If the service returns an enum value that is not available in the current SDK version,
jobStatuswill returnJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromjobStatusAsString().- Returns:
- The current status of the job. Possible values are:
-
CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.
-
COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.
-
IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.
-
PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.
-
RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.
-
USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.
-
- See Also:
JobStatus
-
-
jobStatusAsString
public final String jobStatusAsString()
The current status of the job. Possible values are:
-
CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.
-
COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.
-
IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.
-
PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.
-
RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.
-
USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.
If the service returns an enum value that is not available in the current SDK version,
jobStatuswill returnJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromjobStatusAsString().- Returns:
- The current status of the job. Possible values are:
-
CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.
-
COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.
-
IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.
-
PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.
-
RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.
-
USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.
-
- See Also:
JobStatus
-
-
jobType
public final JobType jobType()
The schedule for running the job. Possible values are:
-
ONE_TIME - The job runs only once.
-
SCHEDULED - The job runs on a daily, weekly, or monthly basis. The scheduleFrequency property indicates the recurrence pattern for the job.
If the service returns an enum value that is not available in the current SDK version,
jobTypewill returnJobType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromjobTypeAsString().- Returns:
- The schedule for running the job. Possible values are:
-
ONE_TIME - The job runs only once.
-
SCHEDULED - The job runs on a daily, weekly, or monthly basis. The scheduleFrequency property indicates the recurrence pattern for the job.
-
- See Also:
JobType
-
-
jobTypeAsString
public final String jobTypeAsString()
The schedule for running the job. Possible values are:
-
ONE_TIME - The job runs only once.
-
SCHEDULED - The job runs on a daily, weekly, or monthly basis. The scheduleFrequency property indicates the recurrence pattern for the job.
If the service returns an enum value that is not available in the current SDK version,
jobTypewill returnJobType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromjobTypeAsString().- Returns:
- The schedule for running the job. Possible values are:
-
ONE_TIME - The job runs only once.
-
SCHEDULED - The job runs on a daily, weekly, or monthly basis. The scheduleFrequency property indicates the recurrence pattern for the job.
-
- See Also:
JobType
-
-
lastRunErrorStatus
public final LastRunErrorStatus lastRunErrorStatus()
Specifies whether any account- or bucket-level access errors occurred when the job ran. For a recurring job, this value indicates the error status of the job's most recent run.
- Returns:
- Specifies whether any account- or bucket-level access errors occurred when the job ran. For a recurring job, this value indicates the error status of the job's most recent run.
-
lastRunTime
public final Instant lastRunTime()
The date and time, in UTC and extended ISO 8601 format, when the job started. If the job is a recurring job, this value indicates when the most recent run started or, if the job hasn't run yet, when the job was created.
- Returns:
- The date and time, in UTC and extended ISO 8601 format, when the job started. If the job is a recurring job, this value indicates when the most recent run started or, if the job hasn't run yet, when the job was created.
-
hasManagedDataIdentifierIds
public final boolean hasManagedDataIdentifierIds()
For responses, this returns true if the service returned a value for the ManagedDataIdentifierIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
managedDataIdentifierIds
public final List<String> managedDataIdentifierIds()
An array of unique identifiers, one for each managed data identifier that the job is explicitly configured to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type specified for the job (managedDataIdentifierSelector).
This value is null if the job's managed data identifier selection type is ALL, NONE, or RECOMMENDED.
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.- Returns:
- An array of unique identifiers, one for each managed data identifier that the job is explicitly
configured to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on
the managed data identifier selection type specified for the job (managedDataIdentifierSelector).
This value is null if the job's managed data identifier selection type is ALL, NONE, or RECOMMENDED.
-
managedDataIdentifierSelector
public final ManagedDataIdentifierSelector managedDataIdentifierSelector()
The selection type that determines which managed data identifiers the job uses when it analyzes data. Possible values are:
-
ALL - Use all managed data identifiers.
-
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. Use only custom data identifiers (customDataIdentifierIds).
-
RECOMMENDED (default) - Use the recommended set of managed data identifiers.
If this value is null, the job uses the recommended set of managed data identifiers.
If the job is a recurring job and this value is ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If this value is null or RECOMMENDED for a recurring job, each job run uses all the managed data identifiers that are in the recommended set when the run starts.
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,
managedDataIdentifierSelectorwill returnManagedDataIdentifierSelector.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommanagedDataIdentifierSelectorAsString().- Returns:
- The selection type that determines which managed data identifiers the job uses when it analyzes data.
Possible values are:
-
ALL - Use all managed data identifiers.
-
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. Use only custom data identifiers (customDataIdentifierIds).
-
RECOMMENDED (default) - Use the recommended set of managed data identifiers.
If this value is null, the job uses the recommended set of managed data identifiers.
If the job is a recurring job and this value is ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If this value is null or RECOMMENDED for a recurring job, each job run uses all the managed data identifiers that are in the recommended set when the run starts.
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 Also:
ManagedDataIdentifierSelector
-
-
managedDataIdentifierSelectorAsString
public final String managedDataIdentifierSelectorAsString()
The selection type that determines which managed data identifiers the job uses when it analyzes data. Possible values are:
-
ALL - Use all managed data identifiers.
-
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. Use only custom data identifiers (customDataIdentifierIds).
-
RECOMMENDED (default) - Use the recommended set of managed data identifiers.
If this value is null, the job uses the recommended set of managed data identifiers.
If the job is a recurring job and this value is ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If this value is null or RECOMMENDED for a recurring job, each job run uses all the managed data identifiers that are in the recommended set when the run starts.
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,
managedDataIdentifierSelectorwill returnManagedDataIdentifierSelector.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommanagedDataIdentifierSelectorAsString().- Returns:
- The selection type that determines which managed data identifiers the job uses when it analyzes data.
Possible values are:
-
ALL - Use all managed data identifiers.
-
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. Use only custom data identifiers (customDataIdentifierIds).
-
RECOMMENDED (default) - Use the recommended set of managed data identifiers.
If this value is null, the job uses the recommended set of managed data identifiers.
If the job is a recurring job and this value is ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If this value is null or RECOMMENDED for a recurring job, each job run uses all the managed data identifiers that are in the recommended set when the run starts.
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 Also:
ManagedDataIdentifierSelector
-
-
name
public final String name()
The custom name of the job.
- Returns:
- The custom name of the job.
-
s3JobDefinition
public final S3JobDefinition s3JobDefinition()
The S3 buckets that contain the objects to analyze, and the scope of that analysis.
- Returns:
- The S3 buckets that contain the objects to analyze, and the scope of that analysis.
-
samplingPercentage
public final Integer samplingPercentage()
The sampling depth, as a percentage, that determines the percentage of eligible objects that the job analyzes.
- Returns:
- The sampling depth, as a percentage, that determines the percentage of eligible objects that the job analyzes.
-
scheduleFrequency
public final JobScheduleFrequency scheduleFrequency()
The recurrence pattern for running the job. This value is null if the job is configured to run only once.
- Returns:
- The recurrence pattern for running the job. This value is null if the job is configured to run only once.
-
statistics
public final Statistics statistics()
The number of times that the job has run and processing statistics for the job's current run.
- Returns:
- The number of times that the job has run and processing statistics for the job's current run.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
tags
public final Map<String,String> tags()
A map of key-value pairs that specifies which tags (keys and values) are associated with the classification job.
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.- Returns:
- A map of key-value pairs that specifies which tags (keys and values) are associated with the classification job.
-
userPausedDetails
public final UserPausedDetails userPausedDetails()
If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.
- Returns:
- If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.
-
toBuilder
public DescribeClassificationJobResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeClassificationJobResponse.Builder,DescribeClassificationJobResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeClassificationJobResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeClassificationJobResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-