AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutManagedRuleSetVersionsRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wafv2/model/Scope.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/wafv2/model/VersionToPublish.h>
13#include <utility>
14
15namespace Aws
16{
17namespace WAFV2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_WAFV2_API PutManagedRuleSetVersionsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutManagedRuleSetVersions"; }
34
35 AWS_WAFV2_API Aws::String SerializePayload() const override;
36
38
39
41
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 PutManagedRuleSetVersionsRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
64 inline Scope GetScope() const { return m_scope; }
65 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
66 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
67 inline PutManagedRuleSetVersionsRequest& WithScope(Scope value) { SetScope(value); return *this;}
69
71
76 inline const Aws::String& GetId() const { return m_id; }
77 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
78 template<typename IdT = Aws::String>
79 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
80 template<typename IdT = Aws::String>
81 PutManagedRuleSetVersionsRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
83
85
95 inline const Aws::String& GetLockToken() const { return m_lockToken; }
96 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
97 template<typename LockTokenT = Aws::String>
98 void SetLockToken(LockTokenT&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::forward<LockTokenT>(value); }
99 template<typename LockTokenT = Aws::String>
100 PutManagedRuleSetVersionsRequest& WithLockToken(LockTokenT&& value) { SetLockToken(std::forward<LockTokenT>(value)); return *this;}
102
104
108 inline const Aws::String& GetRecommendedVersion() const { return m_recommendedVersion; }
109 inline bool RecommendedVersionHasBeenSet() const { return m_recommendedVersionHasBeenSet; }
110 template<typename RecommendedVersionT = Aws::String>
111 void SetRecommendedVersion(RecommendedVersionT&& value) { m_recommendedVersionHasBeenSet = true; m_recommendedVersion = std::forward<RecommendedVersionT>(value); }
112 template<typename RecommendedVersionT = Aws::String>
113 PutManagedRuleSetVersionsRequest& WithRecommendedVersion(RecommendedVersionT&& value) { SetRecommendedVersion(std::forward<RecommendedVersionT>(value)); return *this;}
115
117
121 inline const Aws::Map<Aws::String, VersionToPublish>& GetVersionsToPublish() const { return m_versionsToPublish; }
122 inline bool VersionsToPublishHasBeenSet() const { return m_versionsToPublishHasBeenSet; }
123 template<typename VersionsToPublishT = Aws::Map<Aws::String, VersionToPublish>>
124 void SetVersionsToPublish(VersionsToPublishT&& value) { m_versionsToPublishHasBeenSet = true; m_versionsToPublish = std::forward<VersionsToPublishT>(value); }
125 template<typename VersionsToPublishT = Aws::Map<Aws::String, VersionToPublish>>
126 PutManagedRuleSetVersionsRequest& WithVersionsToPublish(VersionsToPublishT&& value) { SetVersionsToPublish(std::forward<VersionsToPublishT>(value)); return *this;}
127 template<typename VersionsToPublishKeyT = Aws::String, typename VersionsToPublishValueT = VersionToPublish>
129 m_versionsToPublishHasBeenSet = true; m_versionsToPublish.emplace(std::forward<VersionsToPublishKeyT>(key), std::forward<VersionsToPublishValueT>(value)); return *this;
130 }
132 private:
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 Scope m_scope{Scope::NOT_SET};
138 bool m_scopeHasBeenSet = false;
139
140 Aws::String m_id;
141 bool m_idHasBeenSet = false;
142
143 Aws::String m_lockToken;
144 bool m_lockTokenHasBeenSet = false;
145
146 Aws::String m_recommendedVersion;
147 bool m_recommendedVersionHasBeenSet = false;
148
149 Aws::Map<Aws::String, VersionToPublish> m_versionsToPublish;
150 bool m_versionsToPublishHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace WAFV2
155} // namespace Aws
AWS_WAFV2_API Aws::String SerializePayload() const override
PutManagedRuleSetVersionsRequest & AddVersionsToPublish(VersionsToPublishKeyT &&key, VersionsToPublishValueT &&value)
PutManagedRuleSetVersionsRequest & WithName(NameT &&value)
PutManagedRuleSetVersionsRequest & WithLockToken(LockTokenT &&value)
const Aws::Map< Aws::String, VersionToPublish > & GetVersionsToPublish() const
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutManagedRuleSetVersionsRequest & WithVersionsToPublish(VersionsToPublishT &&value)
PutManagedRuleSetVersionsRequest & WithRecommendedVersion(RecommendedVersionT &&value)
PutManagedRuleSetVersionsRequest & WithId(IdT &&value)
PutManagedRuleSetVersionsRequest & WithScope(Scope value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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