AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline PutManagedRuleSetVersionsRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline PutManagedRuleSetVersionsRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline PutManagedRuleSetVersionsRequest& WithName(const char* value) { SetName(value); return *this;}
55
57
68 inline const Scope& GetScope() const{ return m_scope; }
69 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
70 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
71 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
72 inline PutManagedRuleSetVersionsRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
73 inline PutManagedRuleSetVersionsRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
75
77
82 inline const Aws::String& GetId() const{ return m_id; }
83 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
84 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
85 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
86 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
87 inline PutManagedRuleSetVersionsRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
88 inline PutManagedRuleSetVersionsRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
89 inline PutManagedRuleSetVersionsRequest& WithId(const char* value) { SetId(value); return *this;}
91
93
103 inline const Aws::String& GetLockToken() const{ return m_lockToken; }
104 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
105 inline void SetLockToken(const Aws::String& value) { m_lockTokenHasBeenSet = true; m_lockToken = value; }
106 inline void SetLockToken(Aws::String&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::move(value); }
107 inline void SetLockToken(const char* value) { m_lockTokenHasBeenSet = true; m_lockToken.assign(value); }
108 inline PutManagedRuleSetVersionsRequest& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
109 inline PutManagedRuleSetVersionsRequest& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
110 inline PutManagedRuleSetVersionsRequest& WithLockToken(const char* value) { SetLockToken(value); return *this;}
112
114
118 inline const Aws::String& GetRecommendedVersion() const{ return m_recommendedVersion; }
119 inline bool RecommendedVersionHasBeenSet() const { return m_recommendedVersionHasBeenSet; }
120 inline void SetRecommendedVersion(const Aws::String& value) { m_recommendedVersionHasBeenSet = true; m_recommendedVersion = value; }
121 inline void SetRecommendedVersion(Aws::String&& value) { m_recommendedVersionHasBeenSet = true; m_recommendedVersion = std::move(value); }
122 inline void SetRecommendedVersion(const char* value) { m_recommendedVersionHasBeenSet = true; m_recommendedVersion.assign(value); }
125 inline PutManagedRuleSetVersionsRequest& WithRecommendedVersion(const char* value) { SetRecommendedVersion(value); return *this;}
127
129
133 inline const Aws::Map<Aws::String, VersionToPublish>& GetVersionsToPublish() const{ return m_versionsToPublish; }
134 inline bool VersionsToPublishHasBeenSet() const { return m_versionsToPublishHasBeenSet; }
135 inline void SetVersionsToPublish(const Aws::Map<Aws::String, VersionToPublish>& value) { m_versionsToPublishHasBeenSet = true; m_versionsToPublish = value; }
136 inline void SetVersionsToPublish(Aws::Map<Aws::String, VersionToPublish>&& value) { m_versionsToPublishHasBeenSet = true; m_versionsToPublish = std::move(value); }
139 inline PutManagedRuleSetVersionsRequest& AddVersionsToPublish(const Aws::String& key, const VersionToPublish& value) { m_versionsToPublishHasBeenSet = true; m_versionsToPublish.emplace(key, value); return *this; }
140 inline PutManagedRuleSetVersionsRequest& AddVersionsToPublish(Aws::String&& key, const VersionToPublish& value) { m_versionsToPublishHasBeenSet = true; m_versionsToPublish.emplace(std::move(key), value); return *this; }
141 inline PutManagedRuleSetVersionsRequest& AddVersionsToPublish(const Aws::String& key, VersionToPublish&& value) { m_versionsToPublishHasBeenSet = true; m_versionsToPublish.emplace(key, std::move(value)); return *this; }
142 inline PutManagedRuleSetVersionsRequest& AddVersionsToPublish(Aws::String&& key, VersionToPublish&& value) { m_versionsToPublishHasBeenSet = true; m_versionsToPublish.emplace(std::move(key), std::move(value)); return *this; }
143 inline PutManagedRuleSetVersionsRequest& AddVersionsToPublish(const char* key, VersionToPublish&& value) { m_versionsToPublishHasBeenSet = true; m_versionsToPublish.emplace(key, std::move(value)); return *this; }
144 inline PutManagedRuleSetVersionsRequest& AddVersionsToPublish(const char* key, const VersionToPublish& value) { m_versionsToPublishHasBeenSet = true; m_versionsToPublish.emplace(key, value); return *this; }
146 private:
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 Scope m_scope;
152 bool m_scopeHasBeenSet = false;
153
154 Aws::String m_id;
155 bool m_idHasBeenSet = false;
156
157 Aws::String m_lockToken;
158 bool m_lockTokenHasBeenSet = false;
159
160 Aws::String m_recommendedVersion;
161 bool m_recommendedVersionHasBeenSet = false;
162
163 Aws::Map<Aws::String, VersionToPublish> m_versionsToPublish;
164 bool m_versionsToPublishHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace WAFV2
169} // namespace Aws
AWS_WAFV2_API Aws::String SerializePayload() const override
PutManagedRuleSetVersionsRequest & AddVersionsToPublish(Aws::String &&key, const VersionToPublish &value)
const Aws::Map< Aws::String, VersionToPublish > & GetVersionsToPublish() const
PutManagedRuleSetVersionsRequest & WithRecommendedVersion(const char *value)
PutManagedRuleSetVersionsRequest & AddVersionsToPublish(const char *key, const VersionToPublish &value)
PutManagedRuleSetVersionsRequest & WithRecommendedVersion(const Aws::String &value)
PutManagedRuleSetVersionsRequest & WithName(const char *value)
PutManagedRuleSetVersionsRequest & AddVersionsToPublish(const Aws::String &key, VersionToPublish &&value)
PutManagedRuleSetVersionsRequest & WithVersionsToPublish(Aws::Map< Aws::String, VersionToPublish > &&value)
PutManagedRuleSetVersionsRequest & WithVersionsToPublish(const Aws::Map< Aws::String, VersionToPublish > &value)
void SetVersionsToPublish(Aws::Map< Aws::String, VersionToPublish > &&value)
PutManagedRuleSetVersionsRequest & WithLockToken(Aws::String &&value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutManagedRuleSetVersionsRequest & AddVersionsToPublish(const Aws::String &key, const VersionToPublish &value)
PutManagedRuleSetVersionsRequest & WithName(Aws::String &&value)
PutManagedRuleSetVersionsRequest & WithScope(Scope &&value)
PutManagedRuleSetVersionsRequest & WithId(const Aws::String &value)
PutManagedRuleSetVersionsRequest & WithLockToken(const char *value)
PutManagedRuleSetVersionsRequest & WithId(Aws::String &&value)
PutManagedRuleSetVersionsRequest & WithRecommendedVersion(Aws::String &&value)
PutManagedRuleSetVersionsRequest & WithLockToken(const Aws::String &value)
void SetVersionsToPublish(const Aws::Map< Aws::String, VersionToPublish > &value)
PutManagedRuleSetVersionsRequest & AddVersionsToPublish(Aws::String &&key, VersionToPublish &&value)
PutManagedRuleSetVersionsRequest & WithName(const Aws::String &value)
PutManagedRuleSetVersionsRequest & WithScope(const Scope &value)
PutManagedRuleSetVersionsRequest & AddVersionsToPublish(const char *key, VersionToPublish &&value)
PutManagedRuleSetVersionsRequest & WithId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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