AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppConfig {
20namespace Model {
21
40class Action {
41 public:
42 AWS_APPCONFIG_API Action() = default;
43 AWS_APPCONFIG_API Action(Aws::Utils::Json::JsonView jsonValue);
44 AWS_APPCONFIG_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
59 Action& WithName(NameT&& value) {
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template <typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) {
73 m_descriptionHasBeenSet = true;
74 m_description = std::forward<DescriptionT>(value);
75 }
76 template <typename DescriptionT = Aws::String>
77 Action& WithDescription(DescriptionT&& value) {
78 SetDescription(std::forward<DescriptionT>(value));
79 return *this;
80 }
82
84
90 inline const Aws::String& GetUri() const { return m_uri; }
91 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
92 template <typename UriT = Aws::String>
93 void SetUri(UriT&& value) {
94 m_uriHasBeenSet = true;
95 m_uri = std::forward<UriT>(value);
96 }
97 template <typename UriT = Aws::String>
98 Action& WithUri(UriT&& value) {
99 SetUri(std::forward<UriT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
110 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
111 template <typename RoleArnT = Aws::String>
112 void SetRoleArn(RoleArnT&& value) {
113 m_roleArnHasBeenSet = true;
114 m_roleArn = std::forward<RoleArnT>(value);
115 }
116 template <typename RoleArnT = Aws::String>
117 Action& WithRoleArn(RoleArnT&& value) {
118 SetRoleArn(std::forward<RoleArnT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_name;
124
125 Aws::String m_description;
126
127 Aws::String m_uri;
128
129 Aws::String m_roleArn;
130 bool m_nameHasBeenSet = false;
131 bool m_descriptionHasBeenSet = false;
132 bool m_uriHasBeenSet = false;
133 bool m_roleArnHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace AppConfig
138} // namespace Aws
bool NameHasBeenSet() const
Definition Action.h:52
const Aws::String & GetRoleArn() const
Definition Action.h:109
const Aws::String & GetUri() const
Definition Action.h:90
AWS_APPCONFIG_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
bool UriHasBeenSet() const
Definition Action.h:91
Action & WithUri(UriT &&value)
Definition Action.h:98
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRoleArn(RoleArnT &&value)
Definition Action.h:112
AWS_APPCONFIG_API Action(Aws::Utils::Json::JsonView jsonValue)
bool RoleArnHasBeenSet() const
Definition Action.h:110
void SetName(NameT &&value)
Definition Action.h:54
bool DescriptionHasBeenSet() const
Definition Action.h:70
const Aws::String & GetName() const
Definition Action.h:51
const Aws::String & GetDescription() const
Definition Action.h:69
void SetUri(UriT &&value)
Definition Action.h:93
void SetDescription(DescriptionT &&value)
Definition Action.h:72
AWS_APPCONFIG_API Action()=default
Action & WithRoleArn(RoleArnT &&value)
Definition Action.h:117
Action & WithName(NameT &&value)
Definition Action.h:59
Action & WithDescription(DescriptionT &&value)
Definition Action.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue