AWS SDK for C++  1.9.153
AWS SDK for C++
Setting.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECS
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const SettingName& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const SettingName& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(SettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline Setting& WithName(const SettingName& value) { SetName(value); return *this;}
65 
69  inline Setting& WithName(SettingName&& value) { SetName(std::move(value)); return *this;}
70 
71 
76  inline const Aws::String& GetValue() const{ return m_value; }
77 
82  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
83 
88  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
89 
94  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
95 
100  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
101 
106  inline Setting& WithValue(const Aws::String& value) { SetValue(value); return *this;}
107 
112  inline Setting& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
113 
118  inline Setting& WithValue(const char* value) { SetValue(value); return *this;}
119 
120 
125  inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
126 
131  inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
132 
137  inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
138 
143  inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
144 
149  inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
150 
155  inline Setting& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
156 
161  inline Setting& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
162 
167  inline Setting& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
168 
169  private:
170 
171  SettingName m_name;
172  bool m_nameHasBeenSet;
173 
174  Aws::String m_value;
175  bool m_valueHasBeenSet;
176 
177  Aws::String m_principalArn;
178  bool m_principalArnHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace ECS
183 } // namespace Aws
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::SettingName
SettingName
Definition: SettingName.h:17
Aws::ECS::Model::Setting::SetValue
void SetValue(Aws::String &&value)
Definition: Setting.h:94
Aws::ECS::Model::Setting::SetPrincipalArn
void SetPrincipalArn(Aws::String &&value)
Definition: Setting.h:143
Aws::ECS::Model::Setting::Setting
Setting(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Setting::WithValue
Setting & WithValue(const Aws::String &value)
Definition: Setting.h:106
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Setting::Setting
Setting()
Aws::ECS::Model::Setting::WithName
Setting & WithName(SettingName &&value)
Definition: Setting.h:69
Aws::ECS::Model::Setting::WithName
Setting & WithName(const SettingName &value)
Definition: Setting.h:64
Aws::ECS::Model::Setting::SetPrincipalArn
void SetPrincipalArn(const Aws::String &value)
Definition: Setting.h:137
Aws::ECS::Model::Setting::WithValue
Setting & WithValue(Aws::String &&value)
Definition: Setting.h:112
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::Setting::GetPrincipalArn
const Aws::String & GetPrincipalArn() const
Definition: Setting.h:125
Aws::ECS::Model::Setting::SetPrincipalArn
void SetPrincipalArn(const char *value)
Definition: Setting.h:149
SettingName.h
Aws::ECS::Model::Setting::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Setting.h:49
Aws::ECS::Model::Setting::WithPrincipalArn
Setting & WithPrincipalArn(const char *value)
Definition: Setting.h:167
Aws::ECS::Model::Setting::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Setting
Definition: Setting.h:33
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Setting::WithPrincipalArn
Setting & WithPrincipalArn(Aws::String &&value)
Definition: Setting.h:161
Aws::ECS::Model::Setting::SetName
void SetName(SettingName &&value)
Definition: Setting.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::Setting::SetName
void SetName(const SettingName &value)
Definition: Setting.h:54
Aws::ECS::Model::Setting::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Setting.h:82
Aws::ECS::Model::Setting::SetValue
void SetValue(const char *value)
Definition: Setting.h:100
Aws::ECS::Model::Setting::operator=
Setting & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Setting::PrincipalArnHasBeenSet
bool PrincipalArnHasBeenSet() const
Definition: Setting.h:131
Aws::ECS::Model::Setting::GetValue
const Aws::String & GetValue() const
Definition: Setting.h:76
Aws::ECS::Model::Setting::GetName
const SettingName & GetName() const
Definition: Setting.h:44
ECS_EXPORTS.h
Aws::ECS::Model::Setting::WithValue
Setting & WithValue(const char *value)
Definition: Setting.h:118
Aws::ECS::Model::Setting::SetValue
void SetValue(const Aws::String &value)
Definition: Setting.h:88
Aws::ECS::Model::Setting::WithPrincipalArn
Setting & WithPrincipalArn(const Aws::String &value)
Definition: Setting.h:155