AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateScopeRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-security-manager/NetworkSecurityManagerRequest.h>
10#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
11#include <aws/network-security-manager/model/ScopeConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace NetworkSecurityManager {
17namespace Model {
18
22 public:
23 AWS_NETWORKSECURITYMANAGER_API UpdateScopeRequest() = 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 "UpdateScope"; }
30
31 AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetScopeIdentifier() const { return m_scopeIdentifier; }
39 inline bool ScopeIdentifierHasBeenSet() const { return m_scopeIdentifierHasBeenSet; }
40 template <typename ScopeIdentifierT = Aws::String>
41 void SetScopeIdentifier(ScopeIdentifierT&& value) {
42 m_scopeIdentifierHasBeenSet = true;
43 m_scopeIdentifier = std::forward<ScopeIdentifierT>(value);
44 }
45 template <typename ScopeIdentifierT = Aws::String>
46 UpdateScopeRequest& WithScopeIdentifier(ScopeIdentifierT&& value) {
47 SetScopeIdentifier(std::forward<ScopeIdentifierT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
59 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
60 template <typename UpdateTokenT = Aws::String>
61 void SetUpdateToken(UpdateTokenT&& value) {
62 m_updateTokenHasBeenSet = true;
63 m_updateToken = std::forward<UpdateTokenT>(value);
64 }
65 template <typename UpdateTokenT = Aws::String>
66 UpdateScopeRequest& WithUpdateToken(UpdateTokenT&& value) {
67 SetUpdateToken(std::forward<UpdateTokenT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetScopeDescription() const { return m_scopeDescription; }
77 inline bool ScopeDescriptionHasBeenSet() const { return m_scopeDescriptionHasBeenSet; }
78 template <typename ScopeDescriptionT = Aws::String>
79 void SetScopeDescription(ScopeDescriptionT&& value) {
80 m_scopeDescriptionHasBeenSet = true;
81 m_scopeDescription = std::forward<ScopeDescriptionT>(value);
82 }
83 template <typename ScopeDescriptionT = Aws::String>
84 UpdateScopeRequest& WithScopeDescription(ScopeDescriptionT&& value) {
85 SetScopeDescription(std::forward<ScopeDescriptionT>(value));
86 return *this;
87 }
89
91
99 inline const ScopeConfiguration& GetScopeConfiguration() const { return m_scopeConfiguration; }
100 inline bool ScopeConfigurationHasBeenSet() const { return m_scopeConfigurationHasBeenSet; }
101 template <typename ScopeConfigurationT = ScopeConfiguration>
102 void SetScopeConfiguration(ScopeConfigurationT&& value) {
103 m_scopeConfigurationHasBeenSet = true;
104 m_scopeConfiguration = std::forward<ScopeConfigurationT>(value);
105 }
106 template <typename ScopeConfigurationT = ScopeConfiguration>
107 UpdateScopeRequest& WithScopeConfiguration(ScopeConfigurationT&& value) {
108 SetScopeConfiguration(std::forward<ScopeConfigurationT>(value));
109 return *this;
110 }
112
114
119 inline bool GetIsPublished() const { return m_isPublished; }
120 inline bool IsPublishedHasBeenSet() const { return m_isPublishedHasBeenSet; }
121 inline void SetIsPublished(bool value) {
122 m_isPublishedHasBeenSet = true;
123 m_isPublished = value;
124 }
126 SetIsPublished(value);
127 return *this;
128 }
130
132
138 inline const Aws::String& GetClientToken() const { return m_clientToken; }
139 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
140 template <typename ClientTokenT = Aws::String>
141 void SetClientToken(ClientTokenT&& value) {
142 m_clientTokenHasBeenSet = true;
143 m_clientToken = std::forward<ClientTokenT>(value);
144 }
145 template <typename ClientTokenT = Aws::String>
146 UpdateScopeRequest& WithClientToken(ClientTokenT&& value) {
147 SetClientToken(std::forward<ClientTokenT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_scopeIdentifier;
153
154 Aws::String m_updateToken;
155
156 Aws::String m_scopeDescription;
157
158 ScopeConfiguration m_scopeConfiguration;
159
160 bool m_isPublished{false};
161
163 bool m_scopeIdentifierHasBeenSet = false;
164 bool m_updateTokenHasBeenSet = false;
165 bool m_scopeDescriptionHasBeenSet = false;
166 bool m_scopeConfigurationHasBeenSet = false;
167 bool m_isPublishedHasBeenSet = false;
168 bool m_clientTokenHasBeenSet = true;
169};
170
171} // namespace Model
172} // namespace NetworkSecurityManager
173} // namespace Aws
UpdateScopeRequest & WithScopeDescription(ScopeDescriptionT &&value)
UpdateScopeRequest & WithScopeConfiguration(ScopeConfigurationT &&value)
AWS_NETWORKSECURITYMANAGER_API UpdateScopeRequest()=default
UpdateScopeRequest & WithUpdateToken(UpdateTokenT &&value)
UpdateScopeRequest & WithClientToken(ClientTokenT &&value)
const ScopeConfiguration & GetScopeConfiguration() const
UpdateScopeRequest & WithScopeIdentifier(ScopeIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String