/** * 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 Shield { namespace Model { /** */ class ListResourcesInProtectionGroupRequest : public ShieldRequest { public: AWS_SHIELD_API ListResourcesInProtectionGroupRequest(); // 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 "ListResourcesInProtectionGroup"; } AWS_SHIELD_API Aws::String SerializePayload() const override; AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the protection group. You use this to identify the protection * group in lists and to manage the protection group, for example to update, * delete, or describe it.

*/ inline const Aws::String& GetProtectionGroupId() const{ return m_protectionGroupId; } /** *

The name of the protection group. You use this to identify the protection * group in lists and to manage the protection group, for example to update, * delete, or describe it.

*/ inline bool ProtectionGroupIdHasBeenSet() const { return m_protectionGroupIdHasBeenSet; } /** *

The name of the protection group. You use this to identify the protection * group in lists and to manage the protection group, for example to update, * delete, or describe it.

*/ inline void SetProtectionGroupId(const Aws::String& value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId = value; } /** *

The name of the protection group. You use this to identify the protection * group in lists and to manage the protection group, for example to update, * delete, or describe it.

*/ inline void SetProtectionGroupId(Aws::String&& value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId = std::move(value); } /** *

The name of the protection group. You use this to identify the protection * group in lists and to manage the protection group, for example to update, * delete, or describe it.

*/ inline void SetProtectionGroupId(const char* value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId.assign(value); } /** *

The name of the protection group. You use this to identify the protection * group in lists and to manage the protection group, for example to update, * delete, or describe it.

*/ inline ListResourcesInProtectionGroupRequest& WithProtectionGroupId(const Aws::String& value) { SetProtectionGroupId(value); return *this;} /** *

The name of the protection group. You use this to identify the protection * group in lists and to manage the protection group, for example to update, * delete, or describe it.

*/ inline ListResourcesInProtectionGroupRequest& WithProtectionGroupId(Aws::String&& value) { SetProtectionGroupId(std::move(value)); return *this;} /** *

The name of the protection group. You use this to identify the protection * group in lists and to manage the protection group, for example to update, * delete, or describe it.

*/ inline ListResourcesInProtectionGroupRequest& WithProtectionGroupId(const char* value) { SetProtectionGroupId(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 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 ListResourcesInProtectionGroupRequest& 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 ListResourcesInProtectionGroupRequest& 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 ListResourcesInProtectionGroupRequest& 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 ListResourcesInProtectionGroupRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_protectionGroupId; bool m_protectionGroupIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Shield } // namespace Aws