/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EFS { namespace Model { /** *

See Also:

AWS * API Reference

*/ class CreateMountTargetRequest : public EFSRequest { public: AWS_EFS_API CreateMountTargetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateMountTarget"; } AWS_EFS_API Aws::String SerializePayload() const override; /** *

The ID of the file system for which to create the mount target.

*/ inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } /** *

The ID of the file system for which to create the mount target.

*/ inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } /** *

The ID of the file system for which to create the mount target.

*/ inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } /** *

The ID of the file system for which to create the mount target.

*/ inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } /** *

The ID of the file system for which to create the mount target.

*/ inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } /** *

The ID of the file system for which to create the mount target.

*/ inline CreateMountTargetRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} /** *

The ID of the file system for which to create the mount target.

*/ inline CreateMountTargetRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} /** *

The ID of the file system for which to create the mount target.

*/ inline CreateMountTargetRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); 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.

*/ inline const Aws::String& GetSubnetId() const{ return m_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.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

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.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

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.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

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.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

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.

*/ inline CreateMountTargetRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); 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.

*/ inline CreateMountTargetRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); 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.

*/ inline CreateMountTargetRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

Valid IPv4 address within the address range of the specified subnet.

*/ inline const Aws::String& GetIpAddress() const{ return m_ipAddress; } /** *

Valid IPv4 address within the address range of the specified subnet.

*/ inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; } /** *

Valid IPv4 address within the address range of the specified subnet.

*/ inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; } /** *

Valid IPv4 address within the address range of the specified subnet.

*/ inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); } /** *

Valid IPv4 address within the address range of the specified subnet.

*/ inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); } /** *

Valid IPv4 address within the address range of the specified subnet.

*/ inline CreateMountTargetRequest& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;} /** *

Valid IPv4 address within the address range of the specified subnet.

*/ inline CreateMountTargetRequest& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;} /** *

Valid IPv4 address within the address range of the specified subnet.

*/ inline CreateMountTargetRequest& WithIpAddress(const char* value) { SetIpAddress(value); return *this;} /** *

Up to five VPC security group IDs, of the form sg-xxxxxxxx. * These must be for the same VPC as subnet specified.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

Up to five VPC security group IDs, of the form sg-xxxxxxxx. * These must be for the same VPC as subnet specified.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

Up to five VPC security group IDs, of the form sg-xxxxxxxx. * These must be for the same VPC as subnet specified.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

Up to five VPC security group IDs, of the form sg-xxxxxxxx. * These must be for the same VPC as subnet specified.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

Up to five VPC security group IDs, of the form sg-xxxxxxxx. * These must be for the same VPC as subnet specified.

*/ inline CreateMountTargetRequest& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

Up to five VPC security group IDs, of the form sg-xxxxxxxx. * These must be for the same VPC as subnet specified.

*/ inline CreateMountTargetRequest& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

Up to five VPC security group IDs, of the form sg-xxxxxxxx. * These must be for the same VPC as subnet specified.

*/ inline CreateMountTargetRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

Up to five VPC security group IDs, of the form sg-xxxxxxxx. * These must be for the same VPC as subnet specified.

*/ inline CreateMountTargetRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *

Up to five VPC security group IDs, of the form sg-xxxxxxxx. * These must be for the same VPC as subnet specified.

*/ inline CreateMountTargetRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } private: Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_ipAddress; bool m_ipAddressHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; }; } // namespace Model } // namespace EFS } // namespace Aws