/** * 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 Rekognition { namespace Model { /** */ class ListProjectPoliciesRequest : public RekognitionRequest { public: AWS_REKOGNITION_API ListProjectPoliciesRequest(); // 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 "ListProjectPolicies"; } AWS_REKOGNITION_API Aws::String SerializePayload() const override; AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the project for which you want to list the project policies.

*/ inline const Aws::String& GetProjectArn() const{ return m_projectArn; } /** *

The ARN of the project for which you want to list the project policies.

*/ inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; } /** *

The ARN of the project for which you want to list the project policies.

*/ inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; } /** *

The ARN of the project for which you want to list the project policies.

*/ inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); } /** *

The ARN of the project for which you want to list the project policies.

*/ inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); } /** *

The ARN of the project for which you want to list the project policies.

*/ inline ListProjectPoliciesRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;} /** *

The ARN of the project for which you want to list the project policies.

*/ inline ListProjectPoliciesRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;} /** *

The ARN of the project for which you want to list the project policies.

*/ inline ListProjectPoliciesRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;} /** *

If the previous response was incomplete (because there is more results to * retrieve), Amazon Rekognition Custom Labels returns a pagination token in the * response. You can use this pagination token to retrieve the next set of results. *

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

If the previous response was incomplete (because there is more results to * retrieve), Amazon Rekognition Custom Labels returns a pagination token in the * response. You can use this pagination token to retrieve the next set of results. *

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

If the previous response was incomplete (because there is more results to * retrieve), Amazon Rekognition Custom Labels returns a pagination token in the * response. You can use this pagination token to retrieve the next set of results. *

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

If the previous response was incomplete (because there is more results to * retrieve), Amazon Rekognition Custom Labels returns a pagination token in the * response. You can use this pagination token to retrieve the next set of results. *

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

If the previous response was incomplete (because there is more results to * retrieve), Amazon Rekognition Custom Labels returns a pagination token in the * response. You can use this pagination token to retrieve the next set of results. *

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

If the previous response was incomplete (because there is more results to * retrieve), Amazon Rekognition Custom Labels returns a pagination token in the * response. You can use this pagination token to retrieve the next set of results. *

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

If the previous response was incomplete (because there is more results to * retrieve), Amazon Rekognition Custom Labels returns a pagination token in the * response. You can use this pagination token to retrieve the next set of results. *

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

If the previous response was incomplete (because there is more results to * retrieve), Amazon Rekognition Custom Labels returns a pagination token in the * response. You can use this pagination token to retrieve the next set of results. *

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

The maximum number of results to return per paginated call. The largest value * you can specify is 5. If you specify a value greater than 5, a * ValidationException error occurs. The default value is 5.

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

The maximum number of results to return per paginated call. The largest value * you can specify is 5. If you specify a value greater than 5, a * ValidationException error occurs. The default value is 5.

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

The maximum number of results to return per paginated call. The largest value * you can specify is 5. If you specify a value greater than 5, a * ValidationException error occurs. The default value is 5.

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

The maximum number of results to return per paginated call. The largest value * you can specify is 5. If you specify a value greater than 5, a * ValidationException error occurs. The default value is 5.

*/ inline ListProjectPoliciesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_projectArn; bool m_projectArnHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws