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

(Optional) When retrieving all access points for a file system, you can * optionally specify the MaxItems parameter to limit the number of * objects returned in a response. The default value is 100.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

(Optional) When retrieving all access points for a file system, you can * optionally specify the MaxItems parameter to limit the number of * objects returned in a response. The default value is 100.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

(Optional) When retrieving all access points for a file system, you can * optionally specify the MaxItems parameter to limit the number of * objects returned in a response. The default value is 100.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

(Optional) When retrieving all access points for a file system, you can * optionally specify the MaxItems parameter to limit the number of * objects returned in a response. The default value is 100.

*/ inline DescribeAccessPointsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

NextToken is present if the response is paginated. You can use * NextMarker in the subsequent request to fetch the next page of * access point descriptions.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

NextToken is present if the response is paginated. You can use * NextMarker in the subsequent request to fetch the next page of * access point descriptions.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

NextToken is present if the response is paginated. You can use * NextMarker in the subsequent request to fetch the next page of * access point descriptions.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

NextToken is present if the response is paginated. You can use * NextMarker in the subsequent request to fetch the next page of * access point descriptions.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

NextToken is present if the response is paginated. You can use * NextMarker in the subsequent request to fetch the next page of * access point descriptions.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

NextToken is present if the response is paginated. You can use * NextMarker in the subsequent request to fetch the next page of * access point descriptions.

*/ inline DescribeAccessPointsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

NextToken is present if the response is paginated. You can use * NextMarker in the subsequent request to fetch the next page of * access point descriptions.

*/ inline DescribeAccessPointsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

NextToken is present if the response is paginated. You can use * NextMarker in the subsequent request to fetch the next page of * access point descriptions.

*/ inline DescribeAccessPointsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

(Optional) Specifies an EFS access point to describe in the response; * mutually exclusive with FileSystemId.

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

(Optional) Specifies an EFS access point to describe in the response; * mutually exclusive with FileSystemId.

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

(Optional) Specifies an EFS access point to describe in the response; * mutually exclusive with FileSystemId.

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

(Optional) Specifies an EFS access point to describe in the response; * mutually exclusive with FileSystemId.

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

(Optional) Specifies an EFS access point to describe in the response; * mutually exclusive with FileSystemId.

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

(Optional) Specifies an EFS access point to describe in the response; * mutually exclusive with FileSystemId.

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

(Optional) Specifies an EFS access point to describe in the response; * mutually exclusive with FileSystemId.

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

(Optional) Specifies an EFS access point to describe in the response; * mutually exclusive with FileSystemId.

*/ inline DescribeAccessPointsRequest& WithAccessPointId(const char* value) { SetAccessPointId(value); return *this;} /** *

(Optional) If you provide a FileSystemId, EFS returns all access * points for that file system; mutually exclusive with * AccessPointId.

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

(Optional) If you provide a FileSystemId, EFS returns all access * points for that file system; mutually exclusive with * AccessPointId.

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

(Optional) If you provide a FileSystemId, EFS returns all access * points for that file system; mutually exclusive with * AccessPointId.

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

(Optional) If you provide a FileSystemId, EFS returns all access * points for that file system; mutually exclusive with * AccessPointId.

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

(Optional) If you provide a FileSystemId, EFS returns all access * points for that file system; mutually exclusive with * AccessPointId.

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

(Optional) If you provide a FileSystemId, EFS returns all access * points for that file system; mutually exclusive with * AccessPointId.

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

(Optional) If you provide a FileSystemId, EFS returns all access * points for that file system; mutually exclusive with * AccessPointId.

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

(Optional) If you provide a FileSystemId, EFS returns all access * points for that file system; mutually exclusive with * AccessPointId.

*/ inline DescribeAccessPointsRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_accessPointId; bool m_accessPointIdHasBeenSet = false; Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; }; } // namespace Model } // namespace EFS } // namespace Aws