/* * 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.elasticfilesystem.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Describes the destination file system to create in the replication configuration. *

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

* To create a file system that uses Regional storage, specify the Amazon Web Services Region in which to create the * destination file system. *

*/ private String region; /** *

* To create a file system that uses EFS One Zone storage, specify the name of the Availability Zone in which to * create the destination file system. *

*/ private String availabilityZoneName; /** *

* Specifies the Key Management Service (KMS) key that you want to use to encrypt the destination file system. If * you do not specify a KMS key, Amazon EFS uses your default KMS key for Amazon EFS, * /aws/elasticfilesystem. This ID can be in one of the following formats: *

* */ private String kmsKeyId; /** *

* To create a file system that uses Regional storage, specify the Amazon Web Services Region in which to create the * destination file system. *

* * @param region * To create a file system that uses Regional storage, specify the Amazon Web Services Region in which to * create the destination file system. */ public void setRegion(String region) { this.region = region; } /** *

* To create a file system that uses Regional storage, specify the Amazon Web Services Region in which to create the * destination file system. *

* * @return To create a file system that uses Regional storage, specify the Amazon Web Services Region in which to * create the destination file system. */ public String getRegion() { return this.region; } /** *

* To create a file system that uses Regional storage, specify the Amazon Web Services Region in which to create the * destination file system. *

* * @param region * To create a file system that uses Regional storage, specify the Amazon Web Services Region in which to * create the destination file system. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationToCreate withRegion(String region) { setRegion(region); return this; } /** *

* To create a file system that uses EFS One Zone storage, specify the name of the Availability Zone in which to * create the destination file system. *

* * @param availabilityZoneName * To create a file system that uses EFS One Zone storage, specify the name of the Availability Zone in which * to create the destination file system. */ public void setAvailabilityZoneName(String availabilityZoneName) { this.availabilityZoneName = availabilityZoneName; } /** *

* To create a file system that uses EFS One Zone storage, specify the name of the Availability Zone in which to * create the destination file system. *

* * @return To create a file system that uses EFS One Zone storage, specify the name of the Availability Zone in * which to create the destination file system. */ public String getAvailabilityZoneName() { return this.availabilityZoneName; } /** *

* To create a file system that uses EFS One Zone storage, specify the name of the Availability Zone in which to * create the destination file system. *

* * @param availabilityZoneName * To create a file system that uses EFS One Zone storage, specify the name of the Availability Zone in which * to create the destination file system. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationToCreate withAvailabilityZoneName(String availabilityZoneName) { setAvailabilityZoneName(availabilityZoneName); return this; } /** *

* Specifies the Key Management Service (KMS) key that you want to use to encrypt the destination file system. If * you do not specify a KMS key, Amazon EFS uses your default KMS key for Amazon EFS, * /aws/elasticfilesystem. This ID can be in one of the following formats: *

* * * @param kmsKeyId * Specifies the Key Management Service (KMS) key that you want to use to encrypt the destination file * system. If you do not specify a KMS key, Amazon EFS uses your default KMS key for Amazon EFS, * /aws/elasticfilesystem. This ID can be in one of the following formats:

*