234 lines
8.8 KiB
C
234 lines
8.8 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/elasticfilesystem/EFS_EXPORTS.h>
|
|||
|
|
#include <aws/elasticfilesystem/EFSRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace EFS
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p/><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountTargetRequest">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_EFS_API CreateMountTargetRequest : public EFSRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
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::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the file system for which to create the mount target.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the file system for which to create the mount target.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the file system for which to create the mount target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the file system for which to create the mount target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the file system for which to create the mount target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the file system for which to create the mount target.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the file system for which to create the mount target.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the file system for which to create the mount target.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet to add the mount target in.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet to add the mount target in.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet to add the mount target in.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet to add the mount target in.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet to add the mount target in.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet to add the mount target in.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet to add the mount target in.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the subnet to add the mount target in.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Valid IPv4 address within the address range of the specified subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Valid IPv4 address within the address range of the specified subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Valid IPv4 address within the address range of the specified subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Valid IPv4 address within the address range of the specified subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Valid IPv4 address within the address range of the specified subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Valid IPv4 address within the address range of the specified subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Valid IPv4 address within the address range of the specified subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Valid IPv4 address within the address range of the specified subnet.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>.
|
|||
|
|
* These must be for the same VPC as subnet specified.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>.
|
|||
|
|
* These must be for the same VPC as subnet specified.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>.
|
|||
|
|
* These must be for the same VPC as subnet specified.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>.
|
|||
|
|
* These must be for the same VPC as subnet specified.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>.
|
|||
|
|
* These must be for the same VPC as subnet specified.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>.
|
|||
|
|
* These must be for the same VPC as subnet specified.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>.
|
|||
|
|
* These must be for the same VPC as subnet specified.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>.
|
|||
|
|
* These must be for the same VPC as subnet specified.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>.
|
|||
|
|
* These must be for the same VPC as subnet specified.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateMountTargetRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_fileSystemId;
|
|||
|
|
bool m_fileSystemIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_subnetId;
|
|||
|
|
bool m_subnetIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_ipAddress;
|
|||
|
|
bool m_ipAddressHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<Aws::String> m_securityGroups;
|
|||
|
|
bool m_securityGroupsHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace EFS
|
|||
|
|
} // namespace Aws
|