AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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/RuleReference.h>
13
14#include <utility>
15
16namespace Aws {
17namespace NetworkSecurityManager {
18namespace Model {
19
23 public:
24 AWS_NETWORKSECURITYMANAGER_API UpdateTemplateRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateTemplate"; }
31
32 AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetTemplateIdentifier() const { return m_templateIdentifier; }
40 inline bool TemplateIdentifierHasBeenSet() const { return m_templateIdentifierHasBeenSet; }
41 template <typename TemplateIdentifierT = Aws::String>
42 void SetTemplateIdentifier(TemplateIdentifierT&& value) {
43 m_templateIdentifierHasBeenSet = true;
44 m_templateIdentifier = std::forward<TemplateIdentifierT>(value);
45 }
46 template <typename TemplateIdentifierT = Aws::String>
47 UpdateTemplateRequest& WithTemplateIdentifier(TemplateIdentifierT&& value) {
48 SetTemplateIdentifier(std::forward<TemplateIdentifierT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
60 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
61 template <typename UpdateTokenT = Aws::String>
62 void SetUpdateToken(UpdateTokenT&& value) {
63 m_updateTokenHasBeenSet = true;
64 m_updateToken = std::forward<UpdateTokenT>(value);
65 }
66 template <typename UpdateTokenT = Aws::String>
67 UpdateTemplateRequest& WithUpdateToken(UpdateTokenT&& value) {
68 SetUpdateToken(std::forward<UpdateTokenT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
78 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
79 template <typename TemplateDescriptionT = Aws::String>
80 void SetTemplateDescription(TemplateDescriptionT&& value) {
81 m_templateDescriptionHasBeenSet = true;
82 m_templateDescription = std::forward<TemplateDescriptionT>(value);
83 }
84 template <typename TemplateDescriptionT = Aws::String>
85 UpdateTemplateRequest& WithTemplateDescription(TemplateDescriptionT&& value) {
86 SetTemplateDescription(std::forward<TemplateDescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<RuleReference>& GetAssociatedRuleList() const { return m_associatedRuleList; }
96 inline bool AssociatedRuleListHasBeenSet() const { return m_associatedRuleListHasBeenSet; }
97 template <typename AssociatedRuleListT = Aws::Vector<RuleReference>>
98 void SetAssociatedRuleList(AssociatedRuleListT&& value) {
99 m_associatedRuleListHasBeenSet = true;
100 m_associatedRuleList = std::forward<AssociatedRuleListT>(value);
101 }
102 template <typename AssociatedRuleListT = Aws::Vector<RuleReference>>
103 UpdateTemplateRequest& WithAssociatedRuleList(AssociatedRuleListT&& value) {
104 SetAssociatedRuleList(std::forward<AssociatedRuleListT>(value));
105 return *this;
106 }
107 template <typename AssociatedRuleListT = RuleReference>
108 UpdateTemplateRequest& AddAssociatedRuleList(AssociatedRuleListT&& value) {
109 m_associatedRuleListHasBeenSet = true;
110 m_associatedRuleList.emplace_back(std::forward<AssociatedRuleListT>(value));
111 return *this;
112 }
114
116
121 inline bool GetIsPublished() const { return m_isPublished; }
122 inline bool IsPublishedHasBeenSet() const { return m_isPublishedHasBeenSet; }
123 inline void SetIsPublished(bool value) {
124 m_isPublishedHasBeenSet = true;
125 m_isPublished = value;
126 }
128 SetIsPublished(value);
129 return *this;
130 }
132
134
140 inline const Aws::String& GetClientToken() const { return m_clientToken; }
141 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
142 template <typename ClientTokenT = Aws::String>
143 void SetClientToken(ClientTokenT&& value) {
144 m_clientTokenHasBeenSet = true;
145 m_clientToken = std::forward<ClientTokenT>(value);
146 }
147 template <typename ClientTokenT = Aws::String>
148 UpdateTemplateRequest& WithClientToken(ClientTokenT&& value) {
149 SetClientToken(std::forward<ClientTokenT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_templateIdentifier;
155
156 Aws::String m_updateToken;
157
158 Aws::String m_templateDescription;
159
160 Aws::Vector<RuleReference> m_associatedRuleList;
161
162 bool m_isPublished{false};
163
165 bool m_templateIdentifierHasBeenSet = false;
166 bool m_updateTokenHasBeenSet = false;
167 bool m_templateDescriptionHasBeenSet = false;
168 bool m_associatedRuleListHasBeenSet = false;
169 bool m_isPublishedHasBeenSet = false;
170 bool m_clientTokenHasBeenSet = true;
171};
172
173} // namespace Model
174} // namespace NetworkSecurityManager
175} // namespace Aws
UpdateTemplateRequest & WithTemplateDescription(TemplateDescriptionT &&value)
AWS_NETWORKSECURITYMANAGER_API UpdateTemplateRequest()=default
UpdateTemplateRequest & WithTemplateIdentifier(TemplateIdentifierT &&value)
UpdateTemplateRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< RuleReference > & GetAssociatedRuleList() const
UpdateTemplateRequest & WithAssociatedRuleList(AssociatedRuleListT &&value)
UpdateTemplateRequest & AddAssociatedRuleList(AssociatedRuleListT &&value)
UpdateTemplateRequest & WithUpdateToken(UpdateTokenT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector