/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Shield { namespace Model { class ListResourcesInProtectionGroupResult { public: AWS_SHIELD_API ListResourcesInProtectionGroupResult(); AWS_SHIELD_API ListResourcesInProtectionGroupResult(const Aws::AmazonWebServiceResult& result); AWS_SHIELD_API ListResourcesInProtectionGroupResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Names (ARNs) of the resources that are included in the * protection group.

*/ inline const Aws::Vector& GetResourceArns() const{ return m_resourceArns; } /** *

The Amazon Resource Names (ARNs) of the resources that are included in the * protection group.

*/ inline void SetResourceArns(const Aws::Vector& value) { m_resourceArns = value; } /** *

The Amazon Resource Names (ARNs) of the resources that are included in the * protection group.

*/ inline void SetResourceArns(Aws::Vector&& value) { m_resourceArns = std::move(value); } /** *

The Amazon Resource Names (ARNs) of the resources that are included in the * protection group.

*/ inline ListResourcesInProtectionGroupResult& WithResourceArns(const Aws::Vector& value) { SetResourceArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the resources that are included in the * protection group.

*/ inline ListResourcesInProtectionGroupResult& WithResourceArns(Aws::Vector&& value) { SetResourceArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of the resources that are included in the * protection group.

*/ inline ListResourcesInProtectionGroupResult& AddResourceArns(const Aws::String& value) { m_resourceArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of the resources that are included in the * protection group.

*/ inline ListResourcesInProtectionGroupResult& AddResourceArns(Aws::String&& value) { m_resourceArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of the resources that are included in the * protection group.

*/ inline ListResourcesInProtectionGroupResult& AddResourceArns(const char* value) { m_resourceArns.push_back(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.

*/ 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.

*/ inline void SetNextToken(const Aws::String& value) { 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.

*/ inline void SetNextToken(Aws::String&& value) { 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.

*/ inline void SetNextToken(const char* value) { 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.

*/ inline ListResourcesInProtectionGroupResult& 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.

*/ inline ListResourcesInProtectionGroupResult& 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.

*/ inline ListResourcesInProtectionGroupResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListResourcesInProtectionGroupResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListResourcesInProtectionGroupResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListResourcesInProtectionGroupResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_resourceArns; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Shield } // namespace Aws