/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace EFS { namespace Model { /** */ class CreateAccessPointRequest : public EFSRequest { public: AWS_EFS_API CreateAccessPointRequest(); // 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 "CreateAccessPoint"; } AWS_EFS_API Aws::String SerializePayload() const override; /** *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure * idempotent creation.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure * idempotent creation.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure * idempotent creation.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure * idempotent creation.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure * idempotent creation.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure * idempotent creation.

*/ inline CreateAccessPointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure * idempotent creation.

*/ inline CreateAccessPointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A string of up to 64 ASCII characters that Amazon EFS uses to ensure * idempotent creation.

*/ inline CreateAccessPointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Creates tags associated with the access point. Each tag is a key-value pair, * each key must be unique. For more information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Creates tags associated with the access point. Each tag is a key-value pair, * each key must be unique. For more information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Creates tags associated with the access point. Each tag is a key-value pair, * each key must be unique. For more information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Creates tags associated with the access point. Each tag is a key-value pair, * each key must be unique. For more information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Creates tags associated with the access point. Each tag is a key-value pair, * each key must be unique. For more information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline CreateAccessPointRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Creates tags associated with the access point. Each tag is a key-value pair, * each key must be unique. For more information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline CreateAccessPointRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Creates tags associated with the access point. Each tag is a key-value pair, * each key must be unique. For more information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline CreateAccessPointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Creates tags associated with the access point. Each tag is a key-value pair, * each key must be unique. For more information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline CreateAccessPointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The ID of the EFS file system that the access point provides access to.

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

The ID of the EFS file system that the access point provides access to.

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

The ID of the EFS file system that the access point provides access to.

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

The ID of the EFS file system that the access point provides access to.

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

The ID of the EFS file system that the access point provides access to.

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

The ID of the EFS file system that the access point provides access to.

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

The ID of the EFS file system that the access point provides access to.

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

The ID of the EFS file system that the access point provides access to.

*/ inline CreateAccessPointRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} /** *

The operating system user and group applied to all file system requests made * using the access point.

*/ inline const PosixUser& GetPosixUser() const{ return m_posixUser; } /** *

The operating system user and group applied to all file system requests made * using the access point.

*/ inline bool PosixUserHasBeenSet() const { return m_posixUserHasBeenSet; } /** *

The operating system user and group applied to all file system requests made * using the access point.

*/ inline void SetPosixUser(const PosixUser& value) { m_posixUserHasBeenSet = true; m_posixUser = value; } /** *

The operating system user and group applied to all file system requests made * using the access point.

*/ inline void SetPosixUser(PosixUser&& value) { m_posixUserHasBeenSet = true; m_posixUser = std::move(value); } /** *

The operating system user and group applied to all file system requests made * using the access point.

*/ inline CreateAccessPointRequest& WithPosixUser(const PosixUser& value) { SetPosixUser(value); return *this;} /** *

The operating system user and group applied to all file system requests made * using the access point.

*/ inline CreateAccessPointRequest& WithPosixUser(PosixUser&& value) { SetPosixUser(std::move(value)); return *this;} /** *

Specifies the directory on the Amazon EFS file system that the access point * exposes as the root directory of your file system to NFS clients using the * access point. The clients using the access point can only access the root * directory and below. If the RootDirectory > Path * specified does not exist, EFS creates it and applies the * CreationInfo settings when a client connects to an access point. * When specifying a RootDirectory, you must provide the * Path, and the CreationInfo.

Amazon EFS creates * a root directory only if you have provided the CreationInfo: OwnUid, OwnGID, and * permissions for the directory. If you do not provide this information, Amazon * EFS does not create the root directory. If the root directory does not exist, * attempts to mount using the access point will fail.

*/ inline const RootDirectory& GetRootDirectory() const{ return m_rootDirectory; } /** *

Specifies the directory on the Amazon EFS file system that the access point * exposes as the root directory of your file system to NFS clients using the * access point. The clients using the access point can only access the root * directory and below. If the RootDirectory > Path * specified does not exist, EFS creates it and applies the * CreationInfo settings when a client connects to an access point. * When specifying a RootDirectory, you must provide the * Path, and the CreationInfo.

Amazon EFS creates * a root directory only if you have provided the CreationInfo: OwnUid, OwnGID, and * permissions for the directory. If you do not provide this information, Amazon * EFS does not create the root directory. If the root directory does not exist, * attempts to mount using the access point will fail.

*/ inline bool RootDirectoryHasBeenSet() const { return m_rootDirectoryHasBeenSet; } /** *

Specifies the directory on the Amazon EFS file system that the access point * exposes as the root directory of your file system to NFS clients using the * access point. The clients using the access point can only access the root * directory and below. If the RootDirectory > Path * specified does not exist, EFS creates it and applies the * CreationInfo settings when a client connects to an access point. * When specifying a RootDirectory, you must provide the * Path, and the CreationInfo.

Amazon EFS creates * a root directory only if you have provided the CreationInfo: OwnUid, OwnGID, and * permissions for the directory. If you do not provide this information, Amazon * EFS does not create the root directory. If the root directory does not exist, * attempts to mount using the access point will fail.

*/ inline void SetRootDirectory(const RootDirectory& value) { m_rootDirectoryHasBeenSet = true; m_rootDirectory = value; } /** *

Specifies the directory on the Amazon EFS file system that the access point * exposes as the root directory of your file system to NFS clients using the * access point. The clients using the access point can only access the root * directory and below. If the RootDirectory > Path * specified does not exist, EFS creates it and applies the * CreationInfo settings when a client connects to an access point. * When specifying a RootDirectory, you must provide the * Path, and the CreationInfo.

Amazon EFS creates * a root directory only if you have provided the CreationInfo: OwnUid, OwnGID, and * permissions for the directory. If you do not provide this information, Amazon * EFS does not create the root directory. If the root directory does not exist, * attempts to mount using the access point will fail.

*/ inline void SetRootDirectory(RootDirectory&& value) { m_rootDirectoryHasBeenSet = true; m_rootDirectory = std::move(value); } /** *

Specifies the directory on the Amazon EFS file system that the access point * exposes as the root directory of your file system to NFS clients using the * access point. The clients using the access point can only access the root * directory and below. If the RootDirectory > Path * specified does not exist, EFS creates it and applies the * CreationInfo settings when a client connects to an access point. * When specifying a RootDirectory, you must provide the * Path, and the CreationInfo.

Amazon EFS creates * a root directory only if you have provided the CreationInfo: OwnUid, OwnGID, and * permissions for the directory. If you do not provide this information, Amazon * EFS does not create the root directory. If the root directory does not exist, * attempts to mount using the access point will fail.

*/ inline CreateAccessPointRequest& WithRootDirectory(const RootDirectory& value) { SetRootDirectory(value); return *this;} /** *

Specifies the directory on the Amazon EFS file system that the access point * exposes as the root directory of your file system to NFS clients using the * access point. The clients using the access point can only access the root * directory and below. If the RootDirectory > Path * specified does not exist, EFS creates it and applies the * CreationInfo settings when a client connects to an access point. * When specifying a RootDirectory, you must provide the * Path, and the CreationInfo.

Amazon EFS creates * a root directory only if you have provided the CreationInfo: OwnUid, OwnGID, and * permissions for the directory. If you do not provide this information, Amazon * EFS does not create the root directory. If the root directory does not exist, * attempts to mount using the access point will fail.

*/ inline CreateAccessPointRequest& WithRootDirectory(RootDirectory&& value) { SetRootDirectory(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; PosixUser m_posixUser; bool m_posixUserHasBeenSet = false; RootDirectory m_rootDirectory; bool m_rootDirectoryHasBeenSet = false; }; } // namespace Model } // namespace EFS } // namespace Aws