AWS SDK for C++  0.14.3
AWS SDK for C++
GetOfferingStatusResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace DeviceFarm
34 {
35 namespace Model
36 {
41  {
42  public:
46 
50  inline const Aws::Map<Aws::String, OfferingStatus>& GetCurrent() const{ return m_current; }
51 
55  inline void SetCurrent(const Aws::Map<Aws::String, OfferingStatus>& value) { m_current = value; }
56 
60  inline void SetCurrent(Aws::Map<Aws::String, OfferingStatus>&& value) { m_current = value; }
61 
65  inline GetOfferingStatusResult& WithCurrent(const Aws::Map<Aws::String, OfferingStatus>& value) { SetCurrent(value); return *this;}
66 
70  inline GetOfferingStatusResult& WithCurrent(Aws::Map<Aws::String, OfferingStatus>&& value) { SetCurrent(value); return *this;}
71 
75  inline GetOfferingStatusResult& AddCurrent(const Aws::String& key, const OfferingStatus& value) { m_current[key] = value; return *this; }
76 
80  inline GetOfferingStatusResult& AddCurrent(Aws::String&& key, const OfferingStatus& value) { m_current[key] = value; return *this; }
81 
85  inline GetOfferingStatusResult& AddCurrent(const Aws::String& key, OfferingStatus&& value) { m_current[key] = value; return *this; }
86 
90  inline GetOfferingStatusResult& AddCurrent(Aws::String&& key, OfferingStatus&& value) { m_current[key] = value; return *this; }
91 
95  inline GetOfferingStatusResult& AddCurrent(const char* key, OfferingStatus&& value) { m_current[key] = value; return *this; }
96 
100  inline GetOfferingStatusResult& AddCurrent(const char* key, const OfferingStatus& value) { m_current[key] = value; return *this; }
101 
105  inline const Aws::Map<Aws::String, OfferingStatus>& GetNextPeriod() const{ return m_nextPeriod; }
106 
110  inline void SetNextPeriod(const Aws::Map<Aws::String, OfferingStatus>& value) { m_nextPeriod = value; }
111 
115  inline void SetNextPeriod(Aws::Map<Aws::String, OfferingStatus>&& value) { m_nextPeriod = value; }
116 
120  inline GetOfferingStatusResult& WithNextPeriod(const Aws::Map<Aws::String, OfferingStatus>& value) { SetNextPeriod(value); return *this;}
121 
125  inline GetOfferingStatusResult& WithNextPeriod(Aws::Map<Aws::String, OfferingStatus>&& value) { SetNextPeriod(value); return *this;}
126 
130  inline GetOfferingStatusResult& AddNextPeriod(const Aws::String& key, const OfferingStatus& value) { m_nextPeriod[key] = value; return *this; }
131 
135  inline GetOfferingStatusResult& AddNextPeriod(Aws::String&& key, const OfferingStatus& value) { m_nextPeriod[key] = value; return *this; }
136 
140  inline GetOfferingStatusResult& AddNextPeriod(const Aws::String& key, OfferingStatus&& value) { m_nextPeriod[key] = value; return *this; }
141 
145  inline GetOfferingStatusResult& AddNextPeriod(Aws::String&& key, OfferingStatus&& value) { m_nextPeriod[key] = value; return *this; }
146 
150  inline GetOfferingStatusResult& AddNextPeriod(const char* key, OfferingStatus&& value) { m_nextPeriod[key] = value; return *this; }
151 
155  inline GetOfferingStatusResult& AddNextPeriod(const char* key, const OfferingStatus& value) { m_nextPeriod[key] = value; return *this; }
156 
161  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
162 
167  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
168 
173  inline void SetNextToken(Aws::String&& value) { m_nextToken = value; }
174 
179  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
180 
185  inline GetOfferingStatusResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
186 
191  inline GetOfferingStatusResult& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
192 
197  inline GetOfferingStatusResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
198 
199  private:
202  Aws::String m_nextToken;
203  };
204 
205 } // namespace Model
206 } // namespace DeviceFarm
207 } // namespace Aws
#define AWS_DEVICEFARM_API
void SetCurrent(Aws::Map< Aws::String, OfferingStatus > &&value)
GetOfferingStatusResult & AddCurrent(const Aws::String &key, OfferingStatus &&value)
const Aws::Map< Aws::String, OfferingStatus > & GetNextPeriod() const
GetOfferingStatusResult & AddNextPeriod(Aws::String &&key, const OfferingStatus &value)
GetOfferingStatusResult & AddNextPeriod(Aws::String &&key, OfferingStatus &&value)
GetOfferingStatusResult & WithNextPeriod(const Aws::Map< Aws::String, OfferingStatus > &value)
GetOfferingStatusResult & AddNextPeriod(const char *key, const OfferingStatus &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
const Aws::Map< Aws::String, OfferingStatus > & GetCurrent() const
GetOfferingStatusResult & AddCurrent(Aws::String &&key, const OfferingStatus &value)
GetOfferingStatusResult & WithNextToken(Aws::String &&value)
GetOfferingStatusResult & WithNextPeriod(Aws::Map< Aws::String, OfferingStatus > &&value)
GetOfferingStatusResult & AddCurrent(const char *key, const OfferingStatus &value)
GetOfferingStatusResult & WithNextToken(const Aws::String &value)
GetOfferingStatusResult & WithNextToken(const char *value)
GetOfferingStatusResult & WithCurrent(const Aws::Map< Aws::String, OfferingStatus > &value)
GetOfferingStatusResult & AddNextPeriod(const Aws::String &key, OfferingStatus &&value)
GetOfferingStatusResult & AddNextPeriod(const Aws::String &key, const OfferingStatus &value)
GetOfferingStatusResult & AddCurrent(Aws::String &&key, OfferingStatus &&value)
void SetNextPeriod(const Aws::Map< Aws::String, OfferingStatus > &value)
void SetCurrent(const Aws::Map< Aws::String, OfferingStatus > &value)
GetOfferingStatusResult & WithCurrent(Aws::Map< Aws::String, OfferingStatus > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetOfferingStatusResult & AddCurrent(const char *key, OfferingStatus &&value)
GetOfferingStatusResult & AddNextPeriod(const char *key, OfferingStatus &&value)
GetOfferingStatusResult & AddCurrent(const Aws::String &key, const OfferingStatus &value)
void SetNextPeriod(Aws::Map< Aws::String, OfferingStatus > &&value)
JSON (JavaScript Object Notation).