All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.macie2.model.S3JobDefinition Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Macie 2 module holds the client classes that are used for communicating with Amazon Macie 2 Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Specifies which S3 buckets contain the objects that a classification job analyzes, and the scope of that analysis. * The bucket specification can be static (bucketDefinitions) or dynamic (bucketCriteria). If it's static, the job * analyzes objects in the same predefined set of buckets each time the job runs. If it's dynamic, the job analyzes * objects in any buckets that match the specified criteria each time the job starts to run. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class S3JobDefinition implements Serializable, Cloneable, StructuredPojo { /** *

* The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. * Each time the job runs, the job uses these criteria to determine which buckets contain objects to analyze. A * job's definition can contain a bucketCriteria object or a bucketDefinitions array, not both. *

*/ private S3BucketCriteriaForJob bucketCriteria; /** *

* An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. Each * object specifies the account ID for an account and one or more buckets to analyze for that account. A job's * definition can contain a bucketDefinitions array or a bucketCriteria object, not both. *

*/ private java.util.List bucketDefinitions; /** *

* The property- and tag-based conditions that determine which S3 objects to include or exclude from the analysis. * Each time the job runs, the job uses these criteria to determine which objects to analyze. *

*/ private Scoping scoping; /** *

* The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. * Each time the job runs, the job uses these criteria to determine which buckets contain objects to analyze. A * job's definition can contain a bucketCriteria object or a bucketDefinitions array, not both. *

* * @param bucketCriteria * The property- and tag-based conditions that determine which S3 buckets to include or exclude from the * analysis. Each time the job runs, the job uses these criteria to determine which buckets contain objects * to analyze. A job's definition can contain a bucketCriteria object or a bucketDefinitions array, not both. */ public void setBucketCriteria(S3BucketCriteriaForJob bucketCriteria) { this.bucketCriteria = bucketCriteria; } /** *

* The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. * Each time the job runs, the job uses these criteria to determine which buckets contain objects to analyze. A * job's definition can contain a bucketCriteria object or a bucketDefinitions array, not both. *

* * @return The property- and tag-based conditions that determine which S3 buckets to include or exclude from the * analysis. Each time the job runs, the job uses these criteria to determine which buckets contain objects * to analyze. A job's definition can contain a bucketCriteria object or a bucketDefinitions array, not * both. */ public S3BucketCriteriaForJob getBucketCriteria() { return this.bucketCriteria; } /** *

* The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. * Each time the job runs, the job uses these criteria to determine which buckets contain objects to analyze. A * job's definition can contain a bucketCriteria object or a bucketDefinitions array, not both. *

* * @param bucketCriteria * The property- and tag-based conditions that determine which S3 buckets to include or exclude from the * analysis. Each time the job runs, the job uses these criteria to determine which buckets contain objects * to analyze. A job's definition can contain a bucketCriteria object or a bucketDefinitions array, not both. * @return Returns a reference to this object so that method calls can be chained together. */ public S3JobDefinition withBucketCriteria(S3BucketCriteriaForJob bucketCriteria) { setBucketCriteria(bucketCriteria); return this; } /** *

* An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. Each * object specifies the account ID for an account and one or more buckets to analyze for that account. A job's * definition can contain a bucketDefinitions array or a bucketCriteria object, not both. *

* * @return An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. * Each object specifies the account ID for an account and one or more buckets to analyze for that account. * A job's definition can contain a bucketDefinitions array or a bucketCriteria object, not both. */ public java.util.List getBucketDefinitions() { return bucketDefinitions; } /** *

* An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. Each * object specifies the account ID for an account and one or more buckets to analyze for that account. A job's * definition can contain a bucketDefinitions array or a bucketCriteria object, not both. *

* * @param bucketDefinitions * An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. * Each object specifies the account ID for an account and one or more buckets to analyze for that account. A * job's definition can contain a bucketDefinitions array or a bucketCriteria object, not both. */ public void setBucketDefinitions(java.util.Collection bucketDefinitions) { if (bucketDefinitions == null) { this.bucketDefinitions = null; return; } this.bucketDefinitions = new java.util.ArrayList(bucketDefinitions); } /** *

* An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. Each * object specifies the account ID for an account and one or more buckets to analyze for that account. A job's * definition can contain a bucketDefinitions array or a bucketCriteria object, not both. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setBucketDefinitions(java.util.Collection)} or {@link #withBucketDefinitions(java.util.Collection)} if * you want to override the existing values. *

* * @param bucketDefinitions * An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. * Each object specifies the account ID for an account and one or more buckets to analyze for that account. A * job's definition can contain a bucketDefinitions array or a bucketCriteria object, not both. * @return Returns a reference to this object so that method calls can be chained together. */ public S3JobDefinition withBucketDefinitions(S3BucketDefinitionForJob... bucketDefinitions) { if (this.bucketDefinitions == null) { setBucketDefinitions(new java.util.ArrayList(bucketDefinitions.length)); } for (S3BucketDefinitionForJob ele : bucketDefinitions) { this.bucketDefinitions.add(ele); } return this; } /** *

* An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. Each * object specifies the account ID for an account and one or more buckets to analyze for that account. A job's * definition can contain a bucketDefinitions array or a bucketCriteria object, not both. *

* * @param bucketDefinitions * An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. * Each object specifies the account ID for an account and one or more buckets to analyze for that account. A * job's definition can contain a bucketDefinitions array or a bucketCriteria object, not both. * @return Returns a reference to this object so that method calls can be chained together. */ public S3JobDefinition withBucketDefinitions(java.util.Collection bucketDefinitions) { setBucketDefinitions(bucketDefinitions); return this; } /** *

* The property- and tag-based conditions that determine which S3 objects to include or exclude from the analysis. * Each time the job runs, the job uses these criteria to determine which objects to analyze. *

* * @param scoping * The property- and tag-based conditions that determine which S3 objects to include or exclude from the * analysis. Each time the job runs, the job uses these criteria to determine which objects to analyze. */ public void setScoping(Scoping scoping) { this.scoping = scoping; } /** *

* The property- and tag-based conditions that determine which S3 objects to include or exclude from the analysis. * Each time the job runs, the job uses these criteria to determine which objects to analyze. *

* * @return The property- and tag-based conditions that determine which S3 objects to include or exclude from the * analysis. Each time the job runs, the job uses these criteria to determine which objects to analyze. */ public Scoping getScoping() { return this.scoping; } /** *

* The property- and tag-based conditions that determine which S3 objects to include or exclude from the analysis. * Each time the job runs, the job uses these criteria to determine which objects to analyze. *

* * @param scoping * The property- and tag-based conditions that determine which S3 objects to include or exclude from the * analysis. Each time the job runs, the job uses these criteria to determine which objects to analyze. * @return Returns a reference to this object so that method calls can be chained together. */ public S3JobDefinition withScoping(Scoping scoping) { setScoping(scoping); 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 (getBucketCriteria() != null) sb.append("BucketCriteria: ").append(getBucketCriteria()).append(","); if (getBucketDefinitions() != null) sb.append("BucketDefinitions: ").append(getBucketDefinitions()).append(","); if (getScoping() != null) sb.append("Scoping: ").append(getScoping()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof S3JobDefinition == false) return false; S3JobDefinition other = (S3JobDefinition) obj; if (other.getBucketCriteria() == null ^ this.getBucketCriteria() == null) return false; if (other.getBucketCriteria() != null && other.getBucketCriteria().equals(this.getBucketCriteria()) == false) return false; if (other.getBucketDefinitions() == null ^ this.getBucketDefinitions() == null) return false; if (other.getBucketDefinitions() != null && other.getBucketDefinitions().equals(this.getBucketDefinitions()) == false) return false; if (other.getScoping() == null ^ this.getScoping() == null) return false; if (other.getScoping() != null && other.getScoping().equals(this.getScoping()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBucketCriteria() == null) ? 0 : getBucketCriteria().hashCode()); hashCode = prime * hashCode + ((getBucketDefinitions() == null) ? 0 : getBucketDefinitions().hashCode()); hashCode = prime * hashCode + ((getScoping() == null) ? 0 : getScoping().hashCode()); return hashCode; } @Override public S3JobDefinition clone() { try { return (S3JobDefinition) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.macie2.model.transform.S3JobDefinitionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy