AWS SDK for C++  1.8.126
AWS SDK for C++
Offering.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace DeviceFarm
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
52  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 
57  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 
67  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 
72  inline Offering& WithId(const Aws::String& value) { SetId(value); return *this;}
73 
77  inline Offering& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 
82  inline Offering& WithId(const char* value) { SetId(value); return *this;}
83 
84 
88  inline const Aws::String& GetDescription() const{ return m_description; }
89 
93  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 
98  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
99 
103  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 
108  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
109 
113  inline Offering& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
114 
118  inline Offering& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
119 
123  inline Offering& WithDescription(const char* value) { SetDescription(value); return *this;}
124 
125 
129  inline const OfferingType& GetType() const{ return m_type; }
130 
134  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
135 
139  inline void SetType(const OfferingType& value) { m_typeHasBeenSet = true; m_type = value; }
140 
144  inline void SetType(OfferingType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
145 
149  inline Offering& WithType(const OfferingType& value) { SetType(value); return *this;}
150 
154  inline Offering& WithType(OfferingType&& value) { SetType(std::move(value)); return *this;}
155 
156 
161  inline const DevicePlatform& GetPlatform() const{ return m_platform; }
162 
167  inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
168 
173  inline void SetPlatform(const DevicePlatform& value) { m_platformHasBeenSet = true; m_platform = value; }
174 
179  inline void SetPlatform(DevicePlatform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
180 
185  inline Offering& WithPlatform(const DevicePlatform& value) { SetPlatform(value); return *this;}
186 
191  inline Offering& WithPlatform(DevicePlatform&& value) { SetPlatform(std::move(value)); return *this;}
192 
193 
197  inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
198 
202  inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
203 
207  inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
208 
212  inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
213 
217  inline Offering& WithRecurringCharges(const Aws::Vector<RecurringCharge>& value) { SetRecurringCharges(value); return *this;}
218 
222  inline Offering& WithRecurringCharges(Aws::Vector<RecurringCharge>&& value) { SetRecurringCharges(std::move(value)); return *this;}
223 
227  inline Offering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
228 
232  inline Offering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
233 
234  private:
235 
236  Aws::String m_id;
237  bool m_idHasBeenSet;
238 
239  Aws::String m_description;
240  bool m_descriptionHasBeenSet;
241 
242  OfferingType m_type;
243  bool m_typeHasBeenSet;
244 
245  DevicePlatform m_platform;
246  bool m_platformHasBeenSet;
247 
248  Aws::Vector<RecurringCharge> m_recurringCharges;
249  bool m_recurringChargesHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace DeviceFarm
254 } // namespace Aws
Aws::DeviceFarm::Model::Offering::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Offering.h:93
Aws::DeviceFarm::Model::Offering::AddRecurringCharges
Offering & AddRecurringCharges(const RecurringCharge &value)
Definition: Offering.h:227
Aws::DeviceFarm::Model::Offering::WithPlatform
Offering & WithPlatform(const DevicePlatform &value)
Definition: Offering.h:185
Aws::DeviceFarm::Model::Offering::SetId
void SetId(Aws::String &&value)
Definition: Offering.h:62
RecurringCharge.h
Aws::DeviceFarm::Model::Offering::AddRecurringCharges
Offering & AddRecurringCharges(RecurringCharge &&value)
Definition: Offering.h:232
Aws::DeviceFarm::Model::Offering::SetRecurringCharges
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
Definition: Offering.h:212
Aws::DeviceFarm::Model::Offering::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Offering.h:52
Aws::DeviceFarm::Model::Offering::SetDescription
void SetDescription(Aws::String &&value)
Definition: Offering.h:103
Aws::DeviceFarm::Model::Offering::WithRecurringCharges
Offering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
Definition: Offering.h:222
Aws::DeviceFarm::Model::Offering::SetPlatform
void SetPlatform(const DevicePlatform &value)
Definition: Offering.h:173
Aws::DeviceFarm::Model::Offering::WithId
Offering & WithId(const Aws::String &value)
Definition: Offering.h:72
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DeviceFarm::Model::Offering::GetPlatform
const DevicePlatform & GetPlatform() const
Definition: Offering.h:161
Aws::DeviceFarm::Model::Offering
Definition: Offering.h:36
Aws::DeviceFarm::Model::Offering::PlatformHasBeenSet
bool PlatformHasBeenSet() const
Definition: Offering.h:167
Aws::DeviceFarm::Model::Offering::WithPlatform
Offering & WithPlatform(DevicePlatform &&value)
Definition: Offering.h:191
AWSVector.h
Aws::DeviceFarm::Model::Offering::RecurringChargesHasBeenSet
bool RecurringChargesHasBeenSet() const
Definition: Offering.h:202
Aws::DeviceFarm::Model::Offering::WithDescription
Offering & WithDescription(const char *value)
Definition: Offering.h:123
Aws::DeviceFarm::Model::Offering::WithType
Offering & WithType(const OfferingType &value)
Definition: Offering.h:149
Aws::DeviceFarm::Model::OfferingType
OfferingType
Definition: OfferingType.h:17
Aws::DeviceFarm::Model::Offering::SetRecurringCharges
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
Definition: Offering.h:207
Aws::DeviceFarm::Model::Offering::GetType
const OfferingType & GetType() const
Definition: Offering.h:129
Aws::DeviceFarm::Model::Offering::WithDescription
Offering & WithDescription(const Aws::String &value)
Definition: Offering.h:113
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::Offering::SetId
void SetId(const Aws::String &value)
Definition: Offering.h:57
Aws::DeviceFarm::Model::Offering::operator=
Offering & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::Offering::GetRecurringCharges
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
Definition: Offering.h:197
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::DeviceFarm::Model::Offering::WithRecurringCharges
Offering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
Definition: Offering.h:217
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DeviceFarm::Model::Offering::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Offering.h:134
Aws::DeviceFarm::Model::DevicePlatform
DevicePlatform
Definition: DevicePlatform.h:17
Aws::DeviceFarm::Model::Offering::SetType
void SetType(OfferingType &&value)
Definition: Offering.h:144
Aws::DeviceFarm::Model::Offering::Offering
Offering()
DevicePlatform.h
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::Offering::SetPlatform
void SetPlatform(DevicePlatform &&value)
Definition: Offering.h:179
Aws::DeviceFarm::Model::Offering::SetDescription
void SetDescription(const Aws::String &value)
Definition: Offering.h:98
Aws::DeviceFarm::Model::Offering::GetDescription
const Aws::String & GetDescription() const
Definition: Offering.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::Offering::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::Offering::WithType
Offering & WithType(OfferingType &&value)
Definition: Offering.h:154
Aws::DeviceFarm::Model::Offering::SetId
void SetId(const char *value)
Definition: Offering.h:67
Aws::DeviceFarm::Model::Offering::WithId
Offering & WithId(Aws::String &&value)
Definition: Offering.h:77
Aws::DeviceFarm::Model::Offering::GetId
const Aws::String & GetId() const
Definition: Offering.h:47
Aws::DeviceFarm::Model::Offering::SetDescription
void SetDescription(const char *value)
Definition: Offering.h:108
Aws::DeviceFarm::Model::Offering::SetType
void SetType(const OfferingType &value)
Definition: Offering.h:139
Aws::DeviceFarm::Model::Offering::WithId
Offering & WithId(const char *value)
Definition: Offering.h:82
OfferingType.h
Aws::DeviceFarm::Model::RecurringCharge
Definition: RecurringCharge.h:34
Aws::DeviceFarm::Model::Offering::WithDescription
Offering & WithDescription(Aws::String &&value)
Definition: Offering.h:118
Aws::DeviceFarm::Model::Offering::Offering
Offering(Aws::Utils::Json::JsonView jsonValue)