AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateScopeRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/network-security-manager/NetworkSecurityManagerRequest.h>
11#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
12#include <aws/network-security-manager/model/ScopeConfiguration.h>
13#include <aws/network-security-manager/model/SpecializedScopeType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace NetworkSecurityManager {
19namespace Model {
20
24 public:
25 AWS_NETWORKSECURITYMANAGER_API CreateScopeRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateScope"; }
32
33 AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override;
34
36
42 inline const Aws::String& GetClientToken() const { return m_clientToken; }
43 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
44 template <typename ClientTokenT = Aws::String>
45 void SetClientToken(ClientTokenT&& value) {
46 m_clientTokenHasBeenSet = true;
47 m_clientToken = std::forward<ClientTokenT>(value);
48 }
49 template <typename ClientTokenT = Aws::String>
50 CreateScopeRequest& WithClientToken(ClientTokenT&& value) {
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetScopeName() const { return m_scopeName; }
61 inline bool ScopeNameHasBeenSet() const { return m_scopeNameHasBeenSet; }
62 template <typename ScopeNameT = Aws::String>
63 void SetScopeName(ScopeNameT&& value) {
64 m_scopeNameHasBeenSet = true;
65 m_scopeName = std::forward<ScopeNameT>(value);
66 }
67 template <typename ScopeNameT = Aws::String>
68 CreateScopeRequest& WithScopeName(ScopeNameT&& value) {
69 SetScopeName(std::forward<ScopeNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetScopeDescription() const { return m_scopeDescription; }
79 inline bool ScopeDescriptionHasBeenSet() const { return m_scopeDescriptionHasBeenSet; }
80 template <typename ScopeDescriptionT = Aws::String>
81 void SetScopeDescription(ScopeDescriptionT&& value) {
82 m_scopeDescriptionHasBeenSet = true;
83 m_scopeDescription = std::forward<ScopeDescriptionT>(value);
84 }
85 template <typename ScopeDescriptionT = Aws::String>
86 CreateScopeRequest& WithScopeDescription(ScopeDescriptionT&& value) {
87 SetScopeDescription(std::forward<ScopeDescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const ScopeConfiguration& GetScopeConfiguration() const { return m_scopeConfiguration; }
97 inline bool ScopeConfigurationHasBeenSet() const { return m_scopeConfigurationHasBeenSet; }
98 template <typename ScopeConfigurationT = ScopeConfiguration>
99 void SetScopeConfiguration(ScopeConfigurationT&& value) {
100 m_scopeConfigurationHasBeenSet = true;
101 m_scopeConfiguration = std::forward<ScopeConfigurationT>(value);
102 }
103 template <typename ScopeConfigurationT = ScopeConfiguration>
104 CreateScopeRequest& WithScopeConfiguration(ScopeConfigurationT&& value) {
105 SetScopeConfiguration(std::forward<ScopeConfigurationT>(value));
106 return *this;
107 }
109
111
119 inline SpecializedScopeType GetSpecializedScopeType() const { return m_specializedScopeType; }
120 inline bool SpecializedScopeTypeHasBeenSet() const { return m_specializedScopeTypeHasBeenSet; }
122 m_specializedScopeTypeHasBeenSet = true;
123 m_specializedScopeType = value;
124 }
130
132
138 inline bool GetIsPublished() const { return m_isPublished; }
139 inline bool IsPublishedHasBeenSet() const { return m_isPublishedHasBeenSet; }
140 inline void SetIsPublished(bool value) {
141 m_isPublishedHasBeenSet = true;
142 m_isPublished = value;
143 }
145 SetIsPublished(value);
146 return *this;
147 }
149
151
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 void SetTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags = std::forward<TagsT>(value);
160 }
161 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
162 CreateScopeRequest& WithTags(TagsT&& value) {
163 SetTags(std::forward<TagsT>(value));
164 return *this;
165 }
166 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
167 CreateScopeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
170 return *this;
171 }
173 private:
175
176 Aws::String m_scopeName;
177
178 Aws::String m_scopeDescription;
179
180 ScopeConfiguration m_scopeConfiguration;
181
183
184 bool m_isPublished{false};
185
187 bool m_clientTokenHasBeenSet = true;
188 bool m_scopeNameHasBeenSet = false;
189 bool m_scopeDescriptionHasBeenSet = false;
190 bool m_scopeConfigurationHasBeenSet = false;
191 bool m_specializedScopeTypeHasBeenSet = false;
192 bool m_isPublishedHasBeenSet = false;
193 bool m_tagsHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace NetworkSecurityManager
198} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateScopeRequest & WithSpecializedScopeType(SpecializedScopeType value)
AWS_NETWORKSECURITYMANAGER_API CreateScopeRequest()=default
CreateScopeRequest & WithScopeDescription(ScopeDescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
const ScopeConfiguration & GetScopeConfiguration() const
CreateScopeRequest & WithScopeConfiguration(ScopeConfigurationT &&value)
CreateScopeRequest & WithClientToken(ClientTokenT &&value)
CreateScopeRequest & WithScopeName(ScopeNameT &&value)
CreateScopeRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String