AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Setting.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/SettingName.h>
10#include <aws/ecs/model/SettingType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
29class Setting {
30 public:
31 AWS_ECS_API Setting() = default;
32 AWS_ECS_API Setting(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline SettingName GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 inline void SetName(SettingName value) {
43 m_nameHasBeenSet = true;
44 m_name = value;
45 }
46 inline Setting& WithName(SettingName value) {
47 SetName(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetValue() const { return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 template <typename ValueT = Aws::String>
60 void SetValue(ValueT&& value) {
61 m_valueHasBeenSet = true;
62 m_value = std::forward<ValueT>(value);
63 }
64 template <typename ValueT = Aws::String>
65 Setting& WithValue(ValueT&& value) {
66 SetValue(std::forward<ValueT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
77 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
78 template <typename PrincipalArnT = Aws::String>
79 void SetPrincipalArn(PrincipalArnT&& value) {
80 m_principalArnHasBeenSet = true;
81 m_principalArn = std::forward<PrincipalArnT>(value);
82 }
83 template <typename PrincipalArnT = Aws::String>
84 Setting& WithPrincipalArn(PrincipalArnT&& value) {
85 SetPrincipalArn(std::forward<PrincipalArnT>(value));
86 return *this;
87 }
89
91
98 inline SettingType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(SettingType value) {
101 m_typeHasBeenSet = true;
102 m_type = value;
103 }
104 inline Setting& WithType(SettingType value) {
105 SetType(value);
106 return *this;
107 }
109 private:
111
112 Aws::String m_value;
113
114 Aws::String m_principalArn;
115
117 bool m_nameHasBeenSet = false;
118 bool m_valueHasBeenSet = false;
119 bool m_principalArnHasBeenSet = false;
120 bool m_typeHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace ECS
125} // namespace Aws
const Aws::String & GetPrincipalArn() const
Definition Setting.h:76
SettingType GetType() const
Definition Setting.h:98
AWS_ECS_API Setting()=default
Setting & WithName(SettingName value)
Definition Setting.h:46
Setting & WithPrincipalArn(PrincipalArnT &&value)
Definition Setting.h:84
void SetValue(ValueT &&value)
Definition Setting.h:60
bool NameHasBeenSet() const
Definition Setting.h:41
void SetPrincipalArn(PrincipalArnT &&value)
Definition Setting.h:79
Setting & WithType(SettingType value)
Definition Setting.h:104
bool TypeHasBeenSet() const
Definition Setting.h:99
AWS_ECS_API Setting & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(SettingType value)
Definition Setting.h:100
void SetName(SettingName value)
Definition Setting.h:42
Setting & WithValue(ValueT &&value)
Definition Setting.h:65
const Aws::String & GetValue() const
Definition Setting.h:57
SettingName GetName() const
Definition Setting.h:40
AWS_ECS_API Setting(Aws::Utils::Json::JsonView jsonValue)
bool ValueHasBeenSet() const
Definition Setting.h:58
bool PrincipalArnHasBeenSet() const
Definition Setting.h:77
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