AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Offering.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/model/OfferingType.h>
10#include <aws/devicefarm/model/DevicePlatform.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/devicefarm/model/RecurringCharge.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DeviceFarm
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DEVICEFARM_API Offering();
39 AWS_DEVICEFARM_API Offering(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVICEFARM_API Offering& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline Offering& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline Offering& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline Offering& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline Offering& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline Offering& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline Offering& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const OfferingType& GetType() const{ return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(const OfferingType& value) { m_typeHasBeenSet = true; m_type = value; }
79 inline void SetType(OfferingType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
80 inline Offering& WithType(const OfferingType& value) { SetType(value); return *this;}
81 inline Offering& WithType(OfferingType&& value) { SetType(std::move(value)); return *this;}
83
85
89 inline const DevicePlatform& GetPlatform() const{ return m_platform; }
90 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
91 inline void SetPlatform(const DevicePlatform& value) { m_platformHasBeenSet = true; m_platform = value; }
92 inline void SetPlatform(DevicePlatform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
93 inline Offering& WithPlatform(const DevicePlatform& value) { SetPlatform(value); return *this;}
94 inline Offering& WithPlatform(DevicePlatform&& value) { SetPlatform(std::move(value)); return *this;}
96
98
101 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
102 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
103 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
104 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
106 inline Offering& WithRecurringCharges(Aws::Vector<RecurringCharge>&& value) { SetRecurringCharges(std::move(value)); return *this;}
107 inline Offering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
108 inline Offering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
110 private:
111
112 Aws::String m_id;
113 bool m_idHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 OfferingType m_type;
119 bool m_typeHasBeenSet = false;
120
121 DevicePlatform m_platform;
122 bool m_platformHasBeenSet = false;
123
124 Aws::Vector<RecurringCharge> m_recurringCharges;
125 bool m_recurringChargesHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace DeviceFarm
130} // namespace Aws
Offering & WithId(const char *value)
Definition Offering.h:55
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
Definition Offering.h:101
Offering & WithId(Aws::String &&value)
Definition Offering.h:54
AWS_DEVICEFARM_API Offering & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const Aws::String &value)
Definition Offering.h:50
Offering & WithType(OfferingType &&value)
Definition Offering.h:81
Offering & WithType(const OfferingType &value)
Definition Offering.h:80
bool RecurringChargesHasBeenSet() const
Definition Offering.h:102
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
Offering & WithPlatform(const DevicePlatform &value)
Definition Offering.h:93
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
Definition Offering.h:104
void SetPlatform(const DevicePlatform &value)
Definition Offering.h:91
void SetDescription(const char *value)
Definition Offering.h:66
const DevicePlatform & GetPlatform() const
Definition Offering.h:89
Offering & AddRecurringCharges(const RecurringCharge &value)
Definition Offering.h:107
AWS_DEVICEFARM_API Offering(Aws::Utils::Json::JsonView jsonValue)
Offering & AddRecurringCharges(RecurringCharge &&value)
Definition Offering.h:108
Offering & WithDescription(Aws::String &&value)
Definition Offering.h:68
void SetDescription(const Aws::String &value)
Definition Offering.h:64
void SetId(const char *value)
Definition Offering.h:52
void SetType(const OfferingType &value)
Definition Offering.h:78
Offering & WithPlatform(DevicePlatform &&value)
Definition Offering.h:94
void SetType(OfferingType &&value)
Definition Offering.h:79
AWS_DEVICEFARM_API Offering()
void SetPlatform(DevicePlatform &&value)
Definition Offering.h:92
const OfferingType & GetType() const
Definition Offering.h:76
Offering & WithId(const Aws::String &value)
Definition Offering.h:53
Offering & WithDescription(const Aws::String &value)
Definition Offering.h:67
const Aws::String & GetDescription() const
Definition Offering.h:62
Offering & WithDescription(const char *value)
Definition Offering.h:69
void SetId(Aws::String &&value)
Definition Offering.h:51
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
Definition Offering.h:103
Offering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
Definition Offering.h:106
void SetDescription(Aws::String &&value)
Definition Offering.h:65
Offering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
Definition Offering.h:105
const Aws::String & GetId() const
Definition Offering.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue