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

See Also:

AWS * API Reference

*/ class DescribeMountTargetsRequest : public EFSRequest { public: AWS_EFS_API DescribeMountTargetsRequest(); // 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 "DescribeMountTargets"; } AWS_EFS_API Aws::String SerializePayload() const override; AWS_EFS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

(Optional) Maximum number of mount targets to return in the response. * Currently, this number is automatically set to 10, and other values are ignored. * The response is paginated at 100 per page if you have more than 100 mount * targets.

*/ inline int GetMaxItems() const{ return m_maxItems; } /** *

(Optional) Maximum number of mount targets to return in the response. * Currently, this number is automatically set to 10, and other values are ignored. * The response is paginated at 100 per page if you have more than 100 mount * targets.

*/ inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } /** *

(Optional) Maximum number of mount targets to return in the response. * Currently, this number is automatically set to 10, and other values are ignored. * The response is paginated at 100 per page if you have more than 100 mount * targets.

*/ inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } /** *

(Optional) Maximum number of mount targets to return in the response. * Currently, this number is automatically set to 10, and other values are ignored. * The response is paginated at 100 per page if you have more than 100 mount * targets.

*/ inline DescribeMountTargetsRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;} /** *

(Optional) Opaque pagination token returned from a previous * DescribeMountTargets operation (String). If present, it specifies * to continue the list from where the previous returning call left off.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

(Optional) Opaque pagination token returned from a previous * DescribeMountTargets operation (String). If present, it specifies * to continue the list from where the previous returning call left off.

*/ inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } /** *

(Optional) Opaque pagination token returned from a previous * DescribeMountTargets operation (String). If present, it specifies * to continue the list from where the previous returning call left off.

*/ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** *

(Optional) Opaque pagination token returned from a previous * DescribeMountTargets operation (String). If present, it specifies * to continue the list from where the previous returning call left off.

*/ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** *

(Optional) Opaque pagination token returned from a previous * DescribeMountTargets operation (String). If present, it specifies * to continue the list from where the previous returning call left off.

*/ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** *

(Optional) Opaque pagination token returned from a previous * DescribeMountTargets operation (String). If present, it specifies * to continue the list from where the previous returning call left off.

*/ inline DescribeMountTargetsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

(Optional) Opaque pagination token returned from a previous * DescribeMountTargets operation (String). If present, it specifies * to continue the list from where the previous returning call left off.

*/ inline DescribeMountTargetsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

(Optional) Opaque pagination token returned from a previous * DescribeMountTargets operation (String). If present, it specifies * to continue the list from where the previous returning call left off.

*/ inline DescribeMountTargetsRequest& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

(Optional) ID of the file system whose mount targets you want to list * (String). It must be included in your request if an AccessPointId * or MountTargetId is not included. Accepts either a file system ID * or ARN as input.

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

(Optional) ID of the file system whose mount targets you want to list * (String). It must be included in your request if an AccessPointId * or MountTargetId is not included. Accepts either a file system ID * or ARN as input.

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

(Optional) ID of the file system whose mount targets you want to list * (String). It must be included in your request if an AccessPointId * or MountTargetId is not included. Accepts either a file system ID * or ARN as input.

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

(Optional) ID of the file system whose mount targets you want to list * (String). It must be included in your request if an AccessPointId * or MountTargetId is not included. Accepts either a file system ID * or ARN as input.

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

(Optional) ID of the file system whose mount targets you want to list * (String). It must be included in your request if an AccessPointId * or MountTargetId is not included. Accepts either a file system ID * or ARN as input.

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

(Optional) ID of the file system whose mount targets you want to list * (String). It must be included in your request if an AccessPointId * or MountTargetId is not included. Accepts either a file system ID * or ARN as input.

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

(Optional) ID of the file system whose mount targets you want to list * (String). It must be included in your request if an AccessPointId * or MountTargetId is not included. Accepts either a file system ID * or ARN as input.

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

(Optional) ID of the file system whose mount targets you want to list * (String). It must be included in your request if an AccessPointId * or MountTargetId is not included. Accepts either a file system ID * or ARN as input.

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

(Optional) ID of the mount target that you want to have described (String). * It must be included in your request if FileSystemId is not * included. Accepts either a mount target ID or ARN as input.

*/ inline const Aws::String& GetMountTargetId() const{ return m_mountTargetId; } /** *

(Optional) ID of the mount target that you want to have described (String). * It must be included in your request if FileSystemId is not * included. Accepts either a mount target ID or ARN as input.

*/ inline bool MountTargetIdHasBeenSet() const { return m_mountTargetIdHasBeenSet; } /** *

(Optional) ID of the mount target that you want to have described (String). * It must be included in your request if FileSystemId is not * included. Accepts either a mount target ID or ARN as input.

*/ inline void SetMountTargetId(const Aws::String& value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId = value; } /** *

(Optional) ID of the mount target that you want to have described (String). * It must be included in your request if FileSystemId is not * included. Accepts either a mount target ID or ARN as input.

*/ inline void SetMountTargetId(Aws::String&& value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId = std::move(value); } /** *

(Optional) ID of the mount target that you want to have described (String). * It must be included in your request if FileSystemId is not * included. Accepts either a mount target ID or ARN as input.

*/ inline void SetMountTargetId(const char* value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId.assign(value); } /** *

(Optional) ID of the mount target that you want to have described (String). * It must be included in your request if FileSystemId is not * included. Accepts either a mount target ID or ARN as input.

*/ inline DescribeMountTargetsRequest& WithMountTargetId(const Aws::String& value) { SetMountTargetId(value); return *this;} /** *

(Optional) ID of the mount target that you want to have described (String). * It must be included in your request if FileSystemId is not * included. Accepts either a mount target ID or ARN as input.

*/ inline DescribeMountTargetsRequest& WithMountTargetId(Aws::String&& value) { SetMountTargetId(std::move(value)); return *this;} /** *

(Optional) ID of the mount target that you want to have described (String). * It must be included in your request if FileSystemId is not * included. Accepts either a mount target ID or ARN as input.

*/ inline DescribeMountTargetsRequest& WithMountTargetId(const char* value) { SetMountTargetId(value); return *this;} /** *

(Optional) The ID of the access point whose mount targets that you want to * list. It must be included in your request if a FileSystemId or * MountTargetId is not included in your request. Accepts either an * access point ID or ARN as input.

*/ inline const Aws::String& GetAccessPointId() const{ return m_accessPointId; } /** *

(Optional) The ID of the access point whose mount targets that you want to * list. It must be included in your request if a FileSystemId or * MountTargetId is not included in your request. Accepts either an * access point ID or ARN as input.

*/ inline bool AccessPointIdHasBeenSet() const { return m_accessPointIdHasBeenSet; } /** *

(Optional) The ID of the access point whose mount targets that you want to * list. It must be included in your request if a FileSystemId or * MountTargetId is not included in your request. Accepts either an * access point ID or ARN as input.

*/ inline void SetAccessPointId(const Aws::String& value) { m_accessPointIdHasBeenSet = true; m_accessPointId = value; } /** *

(Optional) The ID of the access point whose mount targets that you want to * list. It must be included in your request if a FileSystemId or * MountTargetId is not included in your request. Accepts either an * access point ID or ARN as input.

*/ inline void SetAccessPointId(Aws::String&& value) { m_accessPointIdHasBeenSet = true; m_accessPointId = std::move(value); } /** *

(Optional) The ID of the access point whose mount targets that you want to * list. It must be included in your request if a FileSystemId or * MountTargetId is not included in your request. Accepts either an * access point ID or ARN as input.

*/ inline void SetAccessPointId(const char* value) { m_accessPointIdHasBeenSet = true; m_accessPointId.assign(value); } /** *

(Optional) The ID of the access point whose mount targets that you want to * list. It must be included in your request if a FileSystemId or * MountTargetId is not included in your request. Accepts either an * access point ID or ARN as input.

*/ inline DescribeMountTargetsRequest& WithAccessPointId(const Aws::String& value) { SetAccessPointId(value); return *this;} /** *

(Optional) The ID of the access point whose mount targets that you want to * list. It must be included in your request if a FileSystemId or * MountTargetId is not included in your request. Accepts either an * access point ID or ARN as input.

*/ inline DescribeMountTargetsRequest& WithAccessPointId(Aws::String&& value) { SetAccessPointId(std::move(value)); return *this;} /** *

(Optional) The ID of the access point whose mount targets that you want to * list. It must be included in your request if a FileSystemId or * MountTargetId is not included in your request. Accepts either an * access point ID or ARN as input.

*/ inline DescribeMountTargetsRequest& WithAccessPointId(const char* value) { SetAccessPointId(value); return *this;} private: int m_maxItems; bool m_maxItemsHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; Aws::String m_mountTargetId; bool m_mountTargetIdHasBeenSet = false; Aws::String m_accessPointId; bool m_accessPointIdHasBeenSet = false; }; } // namespace Model } // namespace EFS } // namespace Aws