/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Shield { namespace Model { class ListProtectionsResult { public: AWS_SHIELD_API ListProtectionsResult(); AWS_SHIELD_API ListProtectionsResult(const Aws::AmazonWebServiceResult& result); AWS_SHIELD_API ListProtectionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The array of enabled Protection objects.

*/ inline const Aws::Vector& GetProtections() const{ return m_protections; } /** *

The array of enabled Protection objects.

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

The array of enabled Protection objects.

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

The array of enabled Protection objects.

*/ inline ListProtectionsResult& WithProtections(const Aws::Vector& value) { SetProtections(value); return *this;} /** *

The array of enabled Protection objects.

*/ inline ListProtectionsResult& WithProtections(Aws::Vector&& value) { SetProtections(std::move(value)); return *this;} /** *

The array of enabled Protection objects.

*/ inline ListProtectionsResult& AddProtections(const Protection& value) { m_protections.push_back(value); return *this; } /** *

The array of enabled Protection objects.

*/ inline ListProtectionsResult& AddProtections(Protection&& value) { m_protections.push_back(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 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 ListProtectionsResult& 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 ListProtectionsResult& 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 ListProtectionsResult& 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 ListProtectionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListProtectionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListProtectionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_protections; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Shield } // namespace Aws