AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
37 AWS_ECS_API Setting(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline SettingName GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(SettingName value) { m_nameHasBeenSet = true; m_name = value; }
49 inline Setting& WithName(SettingName value) { SetName(value); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
61 template<typename ValueT = Aws::String>
62 Setting& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
64
66
70 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
71 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
72 template<typename PrincipalArnT = Aws::String>
73 void SetPrincipalArn(PrincipalArnT&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::forward<PrincipalArnT>(value); }
74 template<typename PrincipalArnT = Aws::String>
75 Setting& WithPrincipalArn(PrincipalArnT&& value) { SetPrincipalArn(std::forward<PrincipalArnT>(value)); return *this;}
77
79
86 inline SettingType GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(SettingType value) { m_typeHasBeenSet = true; m_type = value; }
89 inline Setting& WithType(SettingType value) { SetType(value); return *this;}
91 private:
92
94 bool m_nameHasBeenSet = false;
95
96 Aws::String m_value;
97 bool m_valueHasBeenSet = false;
98
99 Aws::String m_principalArn;
100 bool m_principalArnHasBeenSet = false;
101
103 bool m_typeHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace ECS
108} // namespace Aws
const Aws::String & GetPrincipalArn() const
Definition Setting.h:70
SettingType GetType() const
Definition Setting.h:86
AWS_ECS_API Setting()=default
Setting & WithName(SettingName value)
Definition Setting.h:49
Setting & WithPrincipalArn(PrincipalArnT &&value)
Definition Setting.h:75
void SetValue(ValueT &&value)
Definition Setting.h:60
bool NameHasBeenSet() const
Definition Setting.h:47
void SetPrincipalArn(PrincipalArnT &&value)
Definition Setting.h:73
Setting & WithType(SettingType value)
Definition Setting.h:89
bool TypeHasBeenSet() const
Definition Setting.h:87
AWS_ECS_API Setting & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(SettingType value)
Definition Setting.h:88
void SetName(SettingName value)
Definition Setting.h:48
Setting & WithValue(ValueT &&value)
Definition Setting.h:62
const Aws::String & GetValue() const
Definition Setting.h:57
SettingName GetName() const
Definition Setting.h:46
AWS_ECS_API Setting(Aws::Utils::Json::JsonView jsonValue)
bool ValueHasBeenSet() const
Definition Setting.h:58
bool PrincipalArnHasBeenSet() const
Definition Setting.h:71
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