/** * 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 DeviceFarm { namespace Model { class ListOfferingPromotionsResult { public: AWS_DEVICEFARM_API ListOfferingPromotionsResult(); AWS_DEVICEFARM_API ListOfferingPromotionsResult(const Aws::AmazonWebServiceResult& result); AWS_DEVICEFARM_API ListOfferingPromotionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the offering promotions.

*/ inline const Aws::Vector& GetOfferingPromotions() const{ return m_offeringPromotions; } /** *

Information about the offering promotions.

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

Information about the offering promotions.

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

Information about the offering promotions.

*/ inline ListOfferingPromotionsResult& WithOfferingPromotions(const Aws::Vector& value) { SetOfferingPromotions(value); return *this;} /** *

Information about the offering promotions.

*/ inline ListOfferingPromotionsResult& WithOfferingPromotions(Aws::Vector&& value) { SetOfferingPromotions(std::move(value)); return *this;} /** *

Information about the offering promotions.

*/ inline ListOfferingPromotionsResult& AddOfferingPromotions(const OfferingPromotion& value) { m_offeringPromotions.push_back(value); return *this; } /** *

Information about the offering promotions.

*/ inline ListOfferingPromotionsResult& AddOfferingPromotions(OfferingPromotion&& value) { m_offeringPromotions.push_back(std::move(value)); return *this; } /** *

An identifier to be used in the next call to this operation, to return the * next set of items in the list.

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

An identifier to be used in the next call to this operation, to return the * next set of items in the list.

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

An identifier to be used in the next call to this operation, to return the * next set of items in the list.

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

An identifier to be used in the next call to this operation, to return the * next set of items in the list.

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

An identifier to be used in the next call to this operation, to return the * next set of items in the list.

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

An identifier to be used in the next call to this operation, to return the * next set of items in the list.

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

An identifier to be used in the next call to this operation, to return the * next set of items in the list.

*/ inline ListOfferingPromotionsResult& 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 ListOfferingPromotionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListOfferingPromotionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListOfferingPromotionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_offeringPromotions; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws