/** * 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 FMS { namespace Model { /** */ class ListPoliciesRequest : public FMSRequest { public: AWS_FMS_API ListPoliciesRequest(); // 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 "ListPolicies"; } AWS_FMS_API Aws::String SerializePayload() const override; AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

If you specify a value for MaxResults and you have more * PolicySummary objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value * in the response that allows you to list another group of * PolicySummary objects. For the second and subsequent * ListPolicies requests, specify the value of NextToken * from the previous response to get information about another batch of * PolicySummary objects.

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

If you specify a value for MaxResults and you have more * PolicySummary objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value * in the response that allows you to list another group of * PolicySummary objects. For the second and subsequent * ListPolicies requests, specify the value of NextToken * from the previous response to get information about another batch of * PolicySummary objects.

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

If you specify a value for MaxResults and you have more * PolicySummary objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value * in the response that allows you to list another group of * PolicySummary objects. For the second and subsequent * ListPolicies requests, specify the value of NextToken * from the previous response to get information about another batch of * PolicySummary objects.

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

If you specify a value for MaxResults and you have more * PolicySummary objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value * in the response that allows you to list another group of * PolicySummary objects. For the second and subsequent * ListPolicies requests, specify the value of NextToken * from the previous response to get information about another batch of * PolicySummary objects.

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

If you specify a value for MaxResults and you have more * PolicySummary objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value * in the response that allows you to list another group of * PolicySummary objects. For the second and subsequent * ListPolicies requests, specify the value of NextToken * from the previous response to get information about another batch of * PolicySummary objects.

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

If you specify a value for MaxResults and you have more * PolicySummary objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value * in the response that allows you to list another group of * PolicySummary objects. For the second and subsequent * ListPolicies requests, specify the value of NextToken * from the previous response to get information about another batch of * PolicySummary objects.

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

If you specify a value for MaxResults and you have more * PolicySummary objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value * in the response that allows you to list another group of * PolicySummary objects. For the second and subsequent * ListPolicies requests, specify the value of NextToken * from the previous response to get information about another batch of * PolicySummary objects.

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

If you specify a value for MaxResults and you have more * PolicySummary objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value * in the response that allows you to list another group of * PolicySummary objects. For the second and subsequent * ListPolicies requests, specify the value of NextToken * from the previous response to get information about another batch of * PolicySummary objects.

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

Specifies the number of PolicySummary objects that you want * Firewall Manager to return for this request. If you have more * PolicySummary objects than the number that you specify for * MaxResults, the response includes a NextToken value * that you can use to get another batch of PolicySummary objects.

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

Specifies the number of PolicySummary objects that you want * Firewall Manager to return for this request. If you have more * PolicySummary objects than the number that you specify for * MaxResults, the response includes a NextToken value * that you can use to get another batch of PolicySummary objects.

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

Specifies the number of PolicySummary objects that you want * Firewall Manager to return for this request. If you have more * PolicySummary objects than the number that you specify for * MaxResults, the response includes a NextToken value * that you can use to get another batch of PolicySummary objects.

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

Specifies the number of PolicySummary objects that you want * Firewall Manager to return for this request. If you have more * PolicySummary objects than the number that you specify for * MaxResults, the response includes a NextToken value * that you can use to get another batch of PolicySummary objects.

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