AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Setting.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/SettingName.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/SettingType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS
24{
25namespace Model
26{
27
33 class Setting
34 {
35 public:
36 AWS_ECS_API Setting();
37 AWS_ECS_API Setting(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const SettingName& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const SettingName& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(SettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline Setting& WithName(const SettingName& value) { SetName(value); return *this;}
51 inline Setting& WithName(SettingName&& value) { SetName(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetValue() const{ return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
62 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
63 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
64 inline Setting& WithValue(const Aws::String& value) { SetValue(value); return *this;}
65 inline Setting& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
66 inline Setting& WithValue(const char* value) { SetValue(value); return *this;}
68
70
74 inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
75 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
76 inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
77 inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
78 inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
79 inline Setting& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
80 inline Setting& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
81 inline Setting& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
83
85
92 inline const SettingType& GetType() const{ return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(const SettingType& value) { m_typeHasBeenSet = true; m_type = value; }
95 inline void SetType(SettingType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
96 inline Setting& WithType(const SettingType& value) { SetType(value); return *this;}
97 inline Setting& WithType(SettingType&& value) { SetType(std::move(value)); return *this;}
99 private:
100
101 SettingName m_name;
102 bool m_nameHasBeenSet = false;
103
104 Aws::String m_value;
105 bool m_valueHasBeenSet = false;
106
107 Aws::String m_principalArn;
108 bool m_principalArnHasBeenSet = false;
109
110 SettingType m_type;
111 bool m_typeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ECS
116} // namespace Aws
void SetPrincipalArn(Aws::String &&value)
Definition Setting.h:77
Setting & WithType(SettingType &&value)
Definition Setting.h:97
void SetName(const SettingName &value)
Definition Setting.h:48
const Aws::String & GetPrincipalArn() const
Definition Setting.h:74
void SetType(SettingType &&value)
Definition Setting.h:95
Setting & WithValue(const Aws::String &value)
Definition Setting.h:64
bool NameHasBeenSet() const
Definition Setting.h:47
void SetValue(Aws::String &&value)
Definition Setting.h:62
void SetPrincipalArn(const char *value)
Definition Setting.h:78
Setting & WithValue(Aws::String &&value)
Definition Setting.h:65
void SetName(SettingName &&value)
Definition Setting.h:49
bool TypeHasBeenSet() const
Definition Setting.h:93
AWS_ECS_API Setting & operator=(Aws::Utils::Json::JsonView jsonValue)
Setting & WithPrincipalArn(Aws::String &&value)
Definition Setting.h:80
const Aws::String & GetValue() const
Definition Setting.h:59
Setting & WithName(SettingName &&value)
Definition Setting.h:51
AWS_ECS_API Setting(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
Definition Setting.h:61
bool ValueHasBeenSet() const
Definition Setting.h:60
Setting & WithPrincipalArn(const Aws::String &value)
Definition Setting.h:79
const SettingName & GetName() const
Definition Setting.h:46
const SettingType & GetType() const
Definition Setting.h:92
Setting & WithType(const SettingType &value)
Definition Setting.h:96
void SetType(const SettingType &value)
Definition Setting.h:94
bool PrincipalArnHasBeenSet() const
Definition Setting.h:75
Setting & WithName(const SettingName &value)
Definition Setting.h:50
Setting & WithPrincipalArn(const char *value)
Definition Setting.h:81
Setting & WithValue(const char *value)
Definition Setting.h:66
void SetPrincipalArn(const Aws::String &value)
Definition Setting.h:76
void SetValue(const char *value)
Definition Setting.h:63
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue