1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/medialive/MediaLive_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/medialive/model/Offering.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22   class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace MediaLive
26 {
27 namespace Model
28 {
29   /**
30    * Placeholder documentation for ListOfferingsResponse<p><h3>See Also:</h3>   <a
31    * href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListOfferingsResponse">AWS
32    * API Reference</a></p>
33    */
34   class AWS_MEDIALIVE_API ListOfferingsResult
35   {
36   public:
37     ListOfferingsResult();
38     ListOfferingsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
39     ListOfferingsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
40 
41 
42     /**
43      * Token to retrieve the next page of results
44      */
GetNextToken()45     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
46 
47     /**
48      * Token to retrieve the next page of results
49      */
SetNextToken(const Aws::String & value)50     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
51 
52     /**
53      * Token to retrieve the next page of results
54      */
SetNextToken(Aws::String && value)55     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
56 
57     /**
58      * Token to retrieve the next page of results
59      */
SetNextToken(const char * value)60     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
61 
62     /**
63      * Token to retrieve the next page of results
64      */
WithNextToken(const Aws::String & value)65     inline ListOfferingsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 
67     /**
68      * Token to retrieve the next page of results
69      */
WithNextToken(Aws::String && value)70     inline ListOfferingsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
71 
72     /**
73      * Token to retrieve the next page of results
74      */
WithNextToken(const char * value)75     inline ListOfferingsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
76 
77 
78     /**
79      * List of offerings
80      */
GetOfferings()81     inline const Aws::Vector<Offering>& GetOfferings() const{ return m_offerings; }
82 
83     /**
84      * List of offerings
85      */
SetOfferings(const Aws::Vector<Offering> & value)86     inline void SetOfferings(const Aws::Vector<Offering>& value) { m_offerings = value; }
87 
88     /**
89      * List of offerings
90      */
SetOfferings(Aws::Vector<Offering> && value)91     inline void SetOfferings(Aws::Vector<Offering>&& value) { m_offerings = std::move(value); }
92 
93     /**
94      * List of offerings
95      */
WithOfferings(const Aws::Vector<Offering> & value)96     inline ListOfferingsResult& WithOfferings(const Aws::Vector<Offering>& value) { SetOfferings(value); return *this;}
97 
98     /**
99      * List of offerings
100      */
WithOfferings(Aws::Vector<Offering> && value)101     inline ListOfferingsResult& WithOfferings(Aws::Vector<Offering>&& value) { SetOfferings(std::move(value)); return *this;}
102 
103     /**
104      * List of offerings
105      */
AddOfferings(const Offering & value)106     inline ListOfferingsResult& AddOfferings(const Offering& value) { m_offerings.push_back(value); return *this; }
107 
108     /**
109      * List of offerings
110      */
AddOfferings(Offering && value)111     inline ListOfferingsResult& AddOfferings(Offering&& value) { m_offerings.push_back(std::move(value)); return *this; }
112 
113   private:
114 
115     Aws::String m_nextToken;
116 
117     Aws::Vector<Offering> m_offerings;
118   };
119 
120 } // namespace Model
121 } // namespace MediaLive
122 } // namespace Aws
123