AWS SDK for C++  1.9.40
AWS SDK for C++
CreateFirewallRuleGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace Route53Resolver
18 {
19 namespace 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 "CreateFirewallRuleGroup"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
45  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
46 
52  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
53 
59  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
60 
66  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
67 
73  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
74 
80  inline CreateFirewallRuleGroupRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
81 
87  inline CreateFirewallRuleGroupRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
88 
94  inline CreateFirewallRuleGroupRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
95 
96 
100  inline const Aws::String& GetName() const{ return m_name; }
101 
105  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 
110  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
111 
115  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
116 
120  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
121 
125  inline CreateFirewallRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
126 
130  inline CreateFirewallRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
131 
135  inline CreateFirewallRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
136 
137 
142  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
143 
148  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 
154  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
155 
160  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
161 
166  inline CreateFirewallRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
167 
172  inline CreateFirewallRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
173 
178  inline CreateFirewallRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
179 
184  inline CreateFirewallRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
185 
186  private:
187 
188  Aws::String m_creatorRequestId;
189  bool m_creatorRequestIdHasBeenSet;
190 
191  Aws::String m_name;
192  bool m_nameHasBeenSet;
193 
194  Aws::Vector<Tag> m_tags;
195  bool m_tagsHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace Route53Resolver
200 } // namespace Aws
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest
Definition: CreateFirewallRuleGroupRequest.h:25
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateFirewallRuleGroupRequest.h:142
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::CreateFirewallRuleGroupRequest
CreateFirewallRuleGroupRequest()
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateFirewallRuleGroupRequest.h:115
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateFirewallRuleGroupRequest.h:110
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::WithName
CreateFirewallRuleGroupRequest & WithName(const char *value)
Definition: CreateFirewallRuleGroupRequest.h:135
Route53Resolver_EXPORTS.h
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateFirewallRuleGroupRequest.h:33
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::AddTags
CreateFirewallRuleGroupRequest & AddTags(Tag &&value)
Definition: CreateFirewallRuleGroupRequest.h:184
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::WithCreatorRequestId
CreateFirewallRuleGroupRequest & WithCreatorRequestId(const char *value)
Definition: CreateFirewallRuleGroupRequest.h:94
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::AddTags
CreateFirewallRuleGroupRequest & AddTags(const Tag &value)
Definition: CreateFirewallRuleGroupRequest.h:178
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateFirewallRuleGroupRequest.h:160
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: CreateFirewallRuleGroupRequest.h:66
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::WithCreatorRequestId
CreateFirewallRuleGroupRequest & WithCreatorRequestId(Aws::String &&value)
Definition: CreateFirewallRuleGroupRequest.h:87
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::SetName
void SetName(const char *value)
Definition: CreateFirewallRuleGroupRequest.h:120
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::WithTags
CreateFirewallRuleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateFirewallRuleGroupRequest.h:166
Aws::Route53Resolver::Model::Tag
Definition: Tag.h:34
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::GetName
const Aws::String & GetName() const
Definition: CreateFirewallRuleGroupRequest.h:100
Aws::Route53Resolver::Route53ResolverRequest
Definition: Route53ResolverRequest.h:17
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::WithTags
CreateFirewallRuleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateFirewallRuleGroupRequest.h:172
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: CreateFirewallRuleGroupRequest.h:59
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateFirewallRuleGroupRequest.h:105
AWS_ROUTE53RESOLVER_API
#define AWS_ROUTE53RESOLVER_API
Definition: Route53Resolver_EXPORTS.h:28
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateFirewallRuleGroupRequest.h:154
Route53ResolverRequest.h
AWSString.h
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: CreateFirewallRuleGroupRequest.h:73
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::WithCreatorRequestId
CreateFirewallRuleGroupRequest & WithCreatorRequestId(const Aws::String &value)
Definition: CreateFirewallRuleGroupRequest.h:80
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::WithName
CreateFirewallRuleGroupRequest & WithName(Aws::String &&value)
Definition: CreateFirewallRuleGroupRequest.h:130
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateFirewallRuleGroupRequest.h:148
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::WithName
CreateFirewallRuleGroupRequest & WithName(const Aws::String &value)
Definition: CreateFirewallRuleGroupRequest.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: CreateFirewallRuleGroupRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: CreateFirewallRuleGroupRequest.h:52
UUID.h
Aws::Route53Resolver::Model::CreateFirewallRuleGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Tag.h