/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Shield { namespace Model { /** */ class ListProtectionsRequest : public ShieldRequest { public: AWS_SHIELD_API ListProtectionsRequest(); // 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 "ListProtections"; } AWS_SHIELD_API Aws::String SerializePayload() const override; AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

When you request a list of objects from Shield Advanced, if the response does * not include all of the remaining available objects, Shield Advanced includes a * NextToken value in the response. You can retrieve the next batch of * objects by requesting the list again and providing the token that was returned * by the prior call in your request.

You can indicate the maximum number * of objects that you want Shield Advanced to return for a single call with the * MaxResults setting. Shield Advanced will not return more than * MaxResults objects, but may return fewer, even if more objects are * still available.

Whenever more objects remain that Shield Advanced has * not yet returned to you, the response will include a NextToken * value.

On your first call to a list operation, leave this setting * empty.

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

When you request a list of objects from Shield Advanced, if the response does * not include all of the remaining available objects, Shield Advanced includes a * NextToken value in the response. You can retrieve the next batch of * objects by requesting the list again and providing the token that was returned * by the prior call in your request.

You can indicate the maximum number * of objects that you want Shield Advanced to return for a single call with the * MaxResults setting. Shield Advanced will not return more than * MaxResults objects, but may return fewer, even if more objects are * still available.

Whenever more objects remain that Shield Advanced has * not yet returned to you, the response will include a NextToken * value.

On your first call to a list operation, leave this setting * empty.

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

When you request a list of objects from Shield Advanced, if the response does * not include all of the remaining available objects, Shield Advanced includes a * NextToken value in the response. You can retrieve the next batch of * objects by requesting the list again and providing the token that was returned * by the prior call in your request.

You can indicate the maximum number * of objects that you want Shield Advanced to return for a single call with the * MaxResults setting. Shield Advanced will not return more than * MaxResults objects, but may return fewer, even if more objects are * still available.

Whenever more objects remain that Shield Advanced has * not yet returned to you, the response will include a NextToken * value.

On your first call to a list operation, leave this setting * empty.

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

When you request a list of objects from Shield Advanced, if the response does * not include all of the remaining available objects, Shield Advanced includes a * NextToken value in the response. You can retrieve the next batch of * objects by requesting the list again and providing the token that was returned * by the prior call in your request.

You can indicate the maximum number * of objects that you want Shield Advanced to return for a single call with the * MaxResults setting. Shield Advanced will not return more than * MaxResults objects, but may return fewer, even if more objects are * still available.

Whenever more objects remain that Shield Advanced has * not yet returned to you, the response will include a NextToken * value.

On your first call to a list operation, leave this setting * empty.

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

When you request a list of objects from Shield Advanced, if the response does * not include all of the remaining available objects, Shield Advanced includes a * NextToken value in the response. You can retrieve the next batch of * objects by requesting the list again and providing the token that was returned * by the prior call in your request.

You can indicate the maximum number * of objects that you want Shield Advanced to return for a single call with the * MaxResults setting. Shield Advanced will not return more than * MaxResults objects, but may return fewer, even if more objects are * still available.

Whenever more objects remain that Shield Advanced has * not yet returned to you, the response will include a NextToken * value.

On your first call to a list operation, leave this setting * empty.

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

When you request a list of objects from Shield Advanced, if the response does * not include all of the remaining available objects, Shield Advanced includes a * NextToken value in the response. You can retrieve the next batch of * objects by requesting the list again and providing the token that was returned * by the prior call in your request.

You can indicate the maximum number * of objects that you want Shield Advanced to return for a single call with the * MaxResults setting. Shield Advanced will not return more than * MaxResults objects, but may return fewer, even if more objects are * still available.

Whenever more objects remain that Shield Advanced has * not yet returned to you, the response will include a NextToken * value.

On your first call to a list operation, leave this setting * empty.

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

When you request a list of objects from Shield Advanced, if the response does * not include all of the remaining available objects, Shield Advanced includes a * NextToken value in the response. You can retrieve the next batch of * objects by requesting the list again and providing the token that was returned * by the prior call in your request.

You can indicate the maximum number * of objects that you want Shield Advanced to return for a single call with the * MaxResults setting. Shield Advanced will not return more than * MaxResults objects, but may return fewer, even if more objects are * still available.

Whenever more objects remain that Shield Advanced has * not yet returned to you, the response will include a NextToken * value.

On your first call to a list operation, leave this setting * empty.

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

When you request a list of objects from Shield Advanced, if the response does * not include all of the remaining available objects, Shield Advanced includes a * NextToken value in the response. You can retrieve the next batch of * objects by requesting the list again and providing the token that was returned * by the prior call in your request.

You can indicate the maximum number * of objects that you want Shield Advanced to return for a single call with the * MaxResults setting. Shield Advanced will not return more than * MaxResults objects, but may return fewer, even if more objects are * still available.

Whenever more objects remain that Shield Advanced has * not yet returned to you, the response will include a NextToken * value.

On your first call to a list operation, leave this setting * empty.

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

The greatest number of objects that you want Shield Advanced to return to the * list request. Shield Advanced might return fewer objects than you indicate in * this setting, even if more objects are available. If there are more objects * remaining, Shield Advanced will always also return a NextToken * value in the response.

The default setting is 20.

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

The greatest number of objects that you want Shield Advanced to return to the * list request. Shield Advanced might return fewer objects than you indicate in * this setting, even if more objects are available. If there are more objects * remaining, Shield Advanced will always also return a NextToken * value in the response.

The default setting is 20.

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

The greatest number of objects that you want Shield Advanced to return to the * list request. Shield Advanced might return fewer objects than you indicate in * this setting, even if more objects are available. If there are more objects * remaining, Shield Advanced will always also return a NextToken * value in the response.

The default setting is 20.

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

The greatest number of objects that you want Shield Advanced to return to the * list request. Shield Advanced might return fewer objects than you indicate in * this setting, even if more objects are available. If there are more objects * remaining, Shield Advanced will always also return a NextToken * value in the response.

The default setting is 20.

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

Narrows the set of protections that the call retrieves. You can retrieve a * single protection by providing its name or the ARN (Amazon Resource Name) of its * protected resource. You can also retrieve all protections for a specific * resource type. You can provide up to one criteria per filter type. Shield * Advanced returns protections that exactly match all of the filter criteria that * you provide.

*/ inline const InclusionProtectionFilters& GetInclusionFilters() const{ return m_inclusionFilters; } /** *

Narrows the set of protections that the call retrieves. You can retrieve a * single protection by providing its name or the ARN (Amazon Resource Name) of its * protected resource. You can also retrieve all protections for a specific * resource type. You can provide up to one criteria per filter type. Shield * Advanced returns protections that exactly match all of the filter criteria that * you provide.

*/ inline bool InclusionFiltersHasBeenSet() const { return m_inclusionFiltersHasBeenSet; } /** *

Narrows the set of protections that the call retrieves. You can retrieve a * single protection by providing its name or the ARN (Amazon Resource Name) of its * protected resource. You can also retrieve all protections for a specific * resource type. You can provide up to one criteria per filter type. Shield * Advanced returns protections that exactly match all of the filter criteria that * you provide.

*/ inline void SetInclusionFilters(const InclusionProtectionFilters& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters = value; } /** *

Narrows the set of protections that the call retrieves. You can retrieve a * single protection by providing its name or the ARN (Amazon Resource Name) of its * protected resource. You can also retrieve all protections for a specific * resource type. You can provide up to one criteria per filter type. Shield * Advanced returns protections that exactly match all of the filter criteria that * you provide.

*/ inline void SetInclusionFilters(InclusionProtectionFilters&& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters = std::move(value); } /** *

Narrows the set of protections that the call retrieves. You can retrieve a * single protection by providing its name or the ARN (Amazon Resource Name) of its * protected resource. You can also retrieve all protections for a specific * resource type. You can provide up to one criteria per filter type. Shield * Advanced returns protections that exactly match all of the filter criteria that * you provide.

*/ inline ListProtectionsRequest& WithInclusionFilters(const InclusionProtectionFilters& value) { SetInclusionFilters(value); return *this;} /** *

Narrows the set of protections that the call retrieves. You can retrieve a * single protection by providing its name or the ARN (Amazon Resource Name) of its * protected resource. You can also retrieve all protections for a specific * resource type. You can provide up to one criteria per filter type. Shield * Advanced returns protections that exactly match all of the filter criteria that * you provide.

*/ inline ListProtectionsRequest& WithInclusionFilters(InclusionProtectionFilters&& value) { SetInclusionFilters(std::move(value)); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; InclusionProtectionFilters m_inclusionFilters; bool m_inclusionFiltersHasBeenSet = false; }; } // namespace Model } // namespace Shield } // namespace Aws