/* * 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.AmazonWebServiceRequest; /** *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateMountTargetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The ID of the file system for which to create the mount target. *
*/ private String fileSystemId; /** ** The ID of the subnet to add the mount target in. For file systems that use One Zone storage classes, use the * subnet that is associated with the file system's Availability Zone. *
*/ private String subnetId; /** ** Valid IPv4 address within the address range of the specified subnet. *
*/ private String ipAddress; /** *
* Up to five VPC security group IDs, of the form sg-xxxxxxxx
. These must be for the same VPC as subnet
* specified.
*
* The ID of the file system for which to create the mount target. *
* * @param fileSystemId * The ID of the file system for which to create the mount target. */ public void setFileSystemId(String fileSystemId) { this.fileSystemId = fileSystemId; } /** ** The ID of the file system for which to create the mount target. *
* * @return The ID of the file system for which to create the mount target. */ public String getFileSystemId() { return this.fileSystemId; } /** ** The ID of the file system for which to create the mount target. *
* * @param fileSystemId * The ID of the file system for which to create the mount target. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMountTargetRequest withFileSystemId(String fileSystemId) { setFileSystemId(fileSystemId); return this; } /** ** The ID of the subnet to add the mount target in. For file systems that use One Zone storage classes, use the * subnet that is associated with the file system's Availability Zone. *
* * @param subnetId * The ID of the subnet to add the mount target in. For file systems that use One Zone storage classes, use * the subnet that is associated with the file system's Availability Zone. */ public void setSubnetId(String subnetId) { this.subnetId = subnetId; } /** ** The ID of the subnet to add the mount target in. For file systems that use One Zone storage classes, use the * subnet that is associated with the file system's Availability Zone. *
* * @return The ID of the subnet to add the mount target in. For file systems that use One Zone storage classes, use * the subnet that is associated with the file system's Availability Zone. */ public String getSubnetId() { return this.subnetId; } /** ** The ID of the subnet to add the mount target in. For file systems that use One Zone storage classes, use the * subnet that is associated with the file system's Availability Zone. *
* * @param subnetId * The ID of the subnet to add the mount target in. For file systems that use One Zone storage classes, use * the subnet that is associated with the file system's Availability Zone. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMountTargetRequest withSubnetId(String subnetId) { setSubnetId(subnetId); return this; } /** ** Valid IPv4 address within the address range of the specified subnet. *
* * @param ipAddress * Valid IPv4 address within the address range of the specified subnet. */ public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } /** ** Valid IPv4 address within the address range of the specified subnet. *
* * @return Valid IPv4 address within the address range of the specified subnet. */ public String getIpAddress() { return this.ipAddress; } /** ** Valid IPv4 address within the address range of the specified subnet. *
* * @param ipAddress * Valid IPv4 address within the address range of the specified subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMountTargetRequest withIpAddress(String ipAddress) { setIpAddress(ipAddress); return this; } /** *
* Up to five VPC security group IDs, of the form sg-xxxxxxxx
. These must be for the same VPC as subnet
* specified.
*
sg-xxxxxxxx
. These must be for the same VPC
* as subnet specified.
*/
public java.util.List
* Up to five VPC security group IDs, of the form sg-xxxxxxxx
. These must be for the same VPC as subnet
* specified.
*
sg-xxxxxxxx
. These must be for the same VPC as
* subnet specified.
*/
public void setSecurityGroups(java.util.Collection
* Up to five VPC security group IDs, of the form sg-xxxxxxxx
. These must be for the same VPC as subnet
* specified.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want * to override the existing values. *
* * @param securityGroups * Up to five VPC security group IDs, of the formsg-xxxxxxxx
. These must be for the same VPC as
* subnet specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMountTargetRequest withSecurityGroups(String... securityGroups) {
if (this.securityGroups == null) {
setSecurityGroups(new com.amazonaws.internal.SdkInternalList
* Up to five VPC security group IDs, of the form sg-xxxxxxxx
. These must be for the same VPC as subnet
* specified.
*
sg-xxxxxxxx
. These must be for the same VPC as
* subnet specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMountTargetRequest withSecurityGroups(java.util.Collection