/* * 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; /** *
* Provides information about settings that define whether one or more objects in an S3 bucket are replicated to S3 * buckets for other Amazon Web Services accounts and, if so, which accounts. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReplicationDetails implements Serializable, Cloneable, StructuredPojo { /** ** Specifies whether the bucket is configured to replicate one or more objects to any destination. *
*/ private Boolean replicated; /** ** Specifies whether the bucket is configured to replicate one or more objects to a bucket for an Amazon Web * Services account that isn't part of your Amazon Macie organization. An Amazon Macie organization is a set * of Macie accounts that are centrally managed as a group of related accounts through Organizations or by Macie * invitation. *
*/ private Boolean replicatedExternally; /** ** An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket that the * bucket is configured to replicate one or more objects to. *
*/ private java.util.List* Specifies whether the bucket is configured to replicate one or more objects to any destination. *
* * @param replicated * Specifies whether the bucket is configured to replicate one or more objects to any destination. */ public void setReplicated(Boolean replicated) { this.replicated = replicated; } /** ** Specifies whether the bucket is configured to replicate one or more objects to any destination. *
* * @return Specifies whether the bucket is configured to replicate one or more objects to any destination. */ public Boolean getReplicated() { return this.replicated; } /** ** Specifies whether the bucket is configured to replicate one or more objects to any destination. *
* * @param replicated * Specifies whether the bucket is configured to replicate one or more objects to any destination. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationDetails withReplicated(Boolean replicated) { setReplicated(replicated); return this; } /** ** Specifies whether the bucket is configured to replicate one or more objects to any destination. *
* * @return Specifies whether the bucket is configured to replicate one or more objects to any destination. */ public Boolean isReplicated() { return this.replicated; } /** ** Specifies whether the bucket is configured to replicate one or more objects to a bucket for an Amazon Web * Services account that isn't part of your Amazon Macie organization. An Amazon Macie organization is a set * of Macie accounts that are centrally managed as a group of related accounts through Organizations or by Macie * invitation. *
* * @param replicatedExternally * Specifies whether the bucket is configured to replicate one or more objects to a bucket for an Amazon Web * Services account that isn't part of your Amazon Macie organization. An Amazon Macie organization is * a set of Macie accounts that are centrally managed as a group of related accounts through Organizations or * by Macie invitation. */ public void setReplicatedExternally(Boolean replicatedExternally) { this.replicatedExternally = replicatedExternally; } /** ** Specifies whether the bucket is configured to replicate one or more objects to a bucket for an Amazon Web * Services account that isn't part of your Amazon Macie organization. An Amazon Macie organization is a set * of Macie accounts that are centrally managed as a group of related accounts through Organizations or by Macie * invitation. *
* * @return Specifies whether the bucket is configured to replicate one or more objects to a bucket for an Amazon Web * Services account that isn't part of your Amazon Macie organization. An Amazon Macie organization * is a set of Macie accounts that are centrally managed as a group of related accounts through * Organizations or by Macie invitation. */ public Boolean getReplicatedExternally() { return this.replicatedExternally; } /** ** Specifies whether the bucket is configured to replicate one or more objects to a bucket for an Amazon Web * Services account that isn't part of your Amazon Macie organization. An Amazon Macie organization is a set * of Macie accounts that are centrally managed as a group of related accounts through Organizations or by Macie * invitation. *
* * @param replicatedExternally * Specifies whether the bucket is configured to replicate one or more objects to a bucket for an Amazon Web * Services account that isn't part of your Amazon Macie organization. An Amazon Macie organization is * a set of Macie accounts that are centrally managed as a group of related accounts through Organizations or * by Macie invitation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationDetails withReplicatedExternally(Boolean replicatedExternally) { setReplicatedExternally(replicatedExternally); return this; } /** ** Specifies whether the bucket is configured to replicate one or more objects to a bucket for an Amazon Web * Services account that isn't part of your Amazon Macie organization. An Amazon Macie organization is a set * of Macie accounts that are centrally managed as a group of related accounts through Organizations or by Macie * invitation. *
* * @return Specifies whether the bucket is configured to replicate one or more objects to a bucket for an Amazon Web * Services account that isn't part of your Amazon Macie organization. An Amazon Macie organization * is a set of Macie accounts that are centrally managed as a group of related accounts through * Organizations or by Macie invitation. */ public Boolean isReplicatedExternally() { return this.replicatedExternally; } /** ** An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket that the * bucket is configured to replicate one or more objects to. *
* * @return An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket * that the bucket is configured to replicate one or more objects to. */ public java.util.List* An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket that the * bucket is configured to replicate one or more objects to. *
* * @param replicationAccounts * An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket * that the bucket is configured to replicate one or more objects to. */ public void setReplicationAccounts(java.util.Collection* An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket that the * bucket is configured to replicate one or more objects to. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReplicationAccounts(java.util.Collection)} or {@link #withReplicationAccounts(java.util.Collection)} * if you want to override the existing values. *
* * @param replicationAccounts * An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket * that the bucket is configured to replicate one or more objects to. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationDetails withReplicationAccounts(String... replicationAccounts) { if (this.replicationAccounts == null) { setReplicationAccounts(new java.util.ArrayList* An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket that the * bucket is configured to replicate one or more objects to. *
* * @param replicationAccounts * An array of Amazon Web Services account IDs, one for each Amazon Web Services account that owns a bucket * that the bucket is configured to replicate one or more objects to. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationDetails withReplicationAccounts(java.util.Collection