AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppConfig
22{
23namespace Model
24{
25
45 class Action
46 {
47 public:
48 AWS_APPCONFIG_API Action();
49 AWS_APPCONFIG_API Action(Aws::Utils::Json::JsonView jsonValue);
50 AWS_APPCONFIG_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline Action& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline Action& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline Action& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline Action& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline Action& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline Action& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
89 inline const Aws::String& GetUri() const{ return m_uri; }
90 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
91 inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; }
92 inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); }
93 inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); }
94 inline Action& WithUri(const Aws::String& value) { SetUri(value); return *this;}
95 inline Action& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;}
96 inline Action& WithUri(const char* value) { SetUri(value); return *this;}
98
100
104 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
105 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
106 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
107 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
108 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
109 inline Action& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
110 inline Action& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
111 inline Action& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
113 private:
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 Aws::String m_uri;
122 bool m_uriHasBeenSet = false;
123
124 Aws::String m_roleArn;
125 bool m_roleArnHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace AppConfig
130} // namespace Aws
bool NameHasBeenSet() const
Definition Action.h:59
void SetName(const Aws::String &value)
Definition Action.h:60
void SetRoleArn(Aws::String &&value)
Definition Action.h:107
const Aws::String & GetRoleArn() const
Definition Action.h:104
const Aws::String & GetUri() const
Definition Action.h:89
AWS_APPCONFIG_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
bool UriHasBeenSet() const
Definition Action.h:90
void SetDescription(const char *value)
Definition Action.h:76
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUri(const char *value)
Definition Action.h:93
Action & WithDescription(const char *value)
Definition Action.h:79
Action & WithRoleArn(Aws::String &&value)
Definition Action.h:110
Action & WithName(const char *value)
Definition Action.h:65
AWS_APPCONFIG_API Action(Aws::Utils::Json::JsonView jsonValue)
bool RoleArnHasBeenSet() const
Definition Action.h:105
Action & WithUri(const char *value)
Definition Action.h:96
Action & WithName(Aws::String &&value)
Definition Action.h:64
void SetRoleArn(const Aws::String &value)
Definition Action.h:106
Action & WithUri(Aws::String &&value)
Definition Action.h:95
Action & WithRoleArn(const char *value)
Definition Action.h:111
void SetDescription(const Aws::String &value)
Definition Action.h:74
bool DescriptionHasBeenSet() const
Definition Action.h:73
void SetName(Aws::String &&value)
Definition Action.h:61
void SetUri(const Aws::String &value)
Definition Action.h:91
const Aws::String & GetName() const
Definition Action.h:58
Action & WithDescription(Aws::String &&value)
Definition Action.h:78
Action & WithRoleArn(const Aws::String &value)
Definition Action.h:109
void SetRoleArn(const char *value)
Definition Action.h:108
Action & WithDescription(const Aws::String &value)
Definition Action.h:77
Action & WithUri(const Aws::String &value)
Definition Action.h:94
const Aws::String & GetDescription() const
Definition Action.h:72
void SetName(const char *value)
Definition Action.h:62
void SetDescription(Aws::String &&value)
Definition Action.h:75
void SetUri(Aws::String &&value)
Definition Action.h:92
Action & WithName(const Aws::String &value)
Definition Action.h:63
AWS_APPCONFIG_API Action()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue