AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
UpdateAccessControlRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/AccessControlRule.h>
10#include <aws/amplifygen3/model/AccessControlScope.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AmplifyGen3 {
17namespace Model {
18
22 public:
23 AWS_AMPLIFYGEN3_API UpdateAccessControlRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessControl"; }
30
31 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAppName() const { return m_appName; }
38 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
39 template <typename AppNameT = Aws::String>
40 void SetAppName(AppNameT&& value) {
41 m_appNameHasBeenSet = true;
42 m_appName = std::forward<AppNameT>(value);
43 }
44 template <typename AppNameT = Aws::String>
46 SetAppName(std::forward<AppNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
56 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
57 template <typename EnvironmentNameT = Aws::String>
58 void SetEnvironmentName(EnvironmentNameT&& value) {
59 m_environmentNameHasBeenSet = true;
60 m_environmentName = std::forward<EnvironmentNameT>(value);
61 }
62 template <typename EnvironmentNameT = Aws::String>
64 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
65 return *this;
66 }
68
70
73 inline AccessControlScope GetScope() const { return m_scope; }
74 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
75 inline void SetScope(AccessControlScope value) {
76 m_scopeHasBeenSet = true;
77 m_scope = value;
78 }
80 SetScope(value);
81 return *this;
82 }
84
86
89 inline const AccessControlRule& GetRule() const { return m_rule; }
90 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
91 template <typename RuleT = AccessControlRule>
92 void SetRule(RuleT&& value) {
93 m_ruleHasBeenSet = true;
94 m_rule = std::forward<RuleT>(value);
95 }
96 template <typename RuleT = AccessControlRule>
98 SetRule(std::forward<RuleT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetClientToken() const { return m_clientToken; }
109 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
110 template <typename ClientTokenT = Aws::String>
111 void SetClientToken(ClientTokenT&& value) {
112 m_clientTokenHasBeenSet = true;
113 m_clientToken = std::forward<ClientTokenT>(value);
114 }
115 template <typename ClientTokenT = Aws::String>
117 SetClientToken(std::forward<ClientTokenT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_appName;
123
124 Aws::String m_environmentName;
125
127
128 AccessControlRule m_rule;
129
130 Aws::String m_clientToken;
131 bool m_appNameHasBeenSet = false;
132 bool m_environmentNameHasBeenSet = false;
133 bool m_scopeHasBeenSet = false;
134 bool m_ruleHasBeenSet = false;
135 bool m_clientTokenHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace AmplifyGen3
140} // namespace Aws
UpdateAccessControlRequest & WithEnvironmentName(EnvironmentNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAccessControlRequest & WithScope(AccessControlScope value)
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
AWS_AMPLIFYGEN3_API UpdateAccessControlRequest()=default
UpdateAccessControlRequest & WithClientToken(ClientTokenT &&value)
UpdateAccessControlRequest & WithAppName(AppNameT &&value)
UpdateAccessControlRequest & WithRule(RuleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String