AWS SDK for C++  1.9.158
AWS SDK for C++
OfferingPromotion.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace DeviceFarm
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetId() const{ return m_id; }
45 
49  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 
54  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 
59  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 
64  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
69  inline OfferingPromotion& WithId(const Aws::String& value) { SetId(value); return *this;}
70 
74  inline OfferingPromotion& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
75 
79  inline OfferingPromotion& WithId(const char* value) { SetId(value); return *this;}
80 
81 
85  inline const Aws::String& GetDescription() const{ return m_description; }
86 
90  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 
95  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 
100  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 
105  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 
110  inline OfferingPromotion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 
115  inline OfferingPromotion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 
120  inline OfferingPromotion& WithDescription(const char* value) { SetDescription(value); return *this;}
121 
122  private:
123 
124  Aws::String m_id;
125  bool m_idHasBeenSet;
126 
127  Aws::String m_description;
128  bool m_descriptionHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace DeviceFarm
133 } // namespace Aws
Aws::DeviceFarm::Model::OfferingPromotion::operator=
OfferingPromotion & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::OfferingPromotion::IdHasBeenSet
bool IdHasBeenSet() const
Definition: OfferingPromotion.h:49
Aws::DeviceFarm::Model::OfferingPromotion::SetDescription
void SetDescription(Aws::String &&value)
Definition: OfferingPromotion.h:100
Aws::DeviceFarm::Model::OfferingPromotion::SetDescription
void SetDescription(const char *value)
Definition: OfferingPromotion.h:105
Aws::DeviceFarm::Model::OfferingPromotion::WithDescription
OfferingPromotion & WithDescription(Aws::String &&value)
Definition: OfferingPromotion.h:115
Aws::DeviceFarm::Model::OfferingPromotion
Definition: OfferingPromotion.h:33
Aws::DeviceFarm::Model::OfferingPromotion::WithId
OfferingPromotion & WithId(const Aws::String &value)
Definition: OfferingPromotion.h:69
Aws::DeviceFarm::Model::OfferingPromotion::SetId
void SetId(Aws::String &&value)
Definition: OfferingPromotion.h:59
Aws::DeviceFarm::Model::OfferingPromotion::OfferingPromotion
OfferingPromotion(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::OfferingPromotion::SetId
void SetId(const Aws::String &value)
Definition: OfferingPromotion.h:54
Aws::DeviceFarm::Model::OfferingPromotion::OfferingPromotion
OfferingPromotion()
Aws::DeviceFarm::Model::OfferingPromotion::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::OfferingPromotion::GetDescription
const Aws::String & GetDescription() const
Definition: OfferingPromotion.h:85
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::OfferingPromotion::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: OfferingPromotion.h:90
Aws::DeviceFarm::Model::OfferingPromotion::WithId
OfferingPromotion & WithId(Aws::String &&value)
Definition: OfferingPromotion.h:74
Aws::DeviceFarm::Model::OfferingPromotion::WithDescription
OfferingPromotion & WithDescription(const char *value)
Definition: OfferingPromotion.h:120
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::DeviceFarm::Model::OfferingPromotion::GetId
const Aws::String & GetId() const
Definition: OfferingPromotion.h:44
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::OfferingPromotion::WithId
OfferingPromotion & WithId(const char *value)
Definition: OfferingPromotion.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::OfferingPromotion::SetDescription
void SetDescription(const Aws::String &value)
Definition: OfferingPromotion.h:95
Aws::DeviceFarm::Model::OfferingPromotion::SetId
void SetId(const char *value)
Definition: OfferingPromotion.h:64
Aws::DeviceFarm::Model::OfferingPromotion::WithDescription
OfferingPromotion & WithDescription(const Aws::String &value)
Definition: OfferingPromotion.h:110