AWS SDK for C++  1.9.109
AWS SDK for C++
AssociateResolverRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Route53Resolver
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "AssociateResolverRule"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetResolverRuleId() const{ return m_resolverRuleId; }
43 
49  inline bool ResolverRuleIdHasBeenSet() const { return m_resolverRuleIdHasBeenSet; }
50 
56  inline void SetResolverRuleId(const Aws::String& value) { m_resolverRuleIdHasBeenSet = true; m_resolverRuleId = value; }
57 
63  inline void SetResolverRuleId(Aws::String&& value) { m_resolverRuleIdHasBeenSet = true; m_resolverRuleId = std::move(value); }
64 
70  inline void SetResolverRuleId(const char* value) { m_resolverRuleIdHasBeenSet = true; m_resolverRuleId.assign(value); }
71 
77  inline AssociateResolverRuleRequest& WithResolverRuleId(const Aws::String& value) { SetResolverRuleId(value); return *this;}
78 
84  inline AssociateResolverRuleRequest& WithResolverRuleId(Aws::String&& value) { SetResolverRuleId(std::move(value)); return *this;}
85 
91  inline AssociateResolverRuleRequest& WithResolverRuleId(const char* value) { SetResolverRuleId(value); return *this;}
92 
93 
98  inline const Aws::String& GetName() const{ return m_name; }
99 
104  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 
110  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
111 
116  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
117 
122  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
123 
128  inline AssociateResolverRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
129 
134  inline AssociateResolverRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
135 
140  inline AssociateResolverRuleRequest& WithName(const char* value) { SetName(value); return *this;}
141 
142 
146  inline const Aws::String& GetVPCId() const{ return m_vPCId; }
147 
151  inline bool VPCIdHasBeenSet() const { return m_vPCIdHasBeenSet; }
152 
156  inline void SetVPCId(const Aws::String& value) { m_vPCIdHasBeenSet = true; m_vPCId = value; }
157 
161  inline void SetVPCId(Aws::String&& value) { m_vPCIdHasBeenSet = true; m_vPCId = std::move(value); }
162 
166  inline void SetVPCId(const char* value) { m_vPCIdHasBeenSet = true; m_vPCId.assign(value); }
167 
171  inline AssociateResolverRuleRequest& WithVPCId(const Aws::String& value) { SetVPCId(value); return *this;}
172 
176  inline AssociateResolverRuleRequest& WithVPCId(Aws::String&& value) { SetVPCId(std::move(value)); return *this;}
177 
181  inline AssociateResolverRuleRequest& WithVPCId(const char* value) { SetVPCId(value); return *this;}
182 
183  private:
184 
185  Aws::String m_resolverRuleId;
186  bool m_resolverRuleIdHasBeenSet;
187 
188  Aws::String m_name;
189  bool m_nameHasBeenSet;
190 
191  Aws::String m_vPCId;
192  bool m_vPCIdHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace Route53Resolver
197 } // namespace Aws
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SetResolverRuleId
void SetResolverRuleId(const char *value)
Definition: AssociateResolverRuleRequest.h:70
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SetResolverRuleId
void SetResolverRuleId(Aws::String &&value)
Definition: AssociateResolverRuleRequest.h:63
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Route53Resolver_EXPORTS.h
Aws::Route53Resolver::Model::AssociateResolverRuleRequest
Definition: AssociateResolverRuleRequest.h:22
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateResolverRuleRequest.h:30
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::VPCIdHasBeenSet
bool VPCIdHasBeenSet() const
Definition: AssociateResolverRuleRequest.h:151
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AssociateResolverRuleRequest.h:104
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SetName
void SetName(const char *value)
Definition: AssociateResolverRuleRequest.h:122
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::ResolverRuleIdHasBeenSet
bool ResolverRuleIdHasBeenSet() const
Definition: AssociateResolverRuleRequest.h:49
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::WithName
AssociateResolverRuleRequest & WithName(const Aws::String &value)
Definition: AssociateResolverRuleRequest.h:128
Aws::Route53Resolver::Route53ResolverRequest
Definition: Route53ResolverRequest.h:17
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::WithVPCId
AssociateResolverRuleRequest & WithVPCId(const char *value)
Definition: AssociateResolverRuleRequest.h:181
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::WithName
AssociateResolverRuleRequest & WithName(Aws::String &&value)
Definition: AssociateResolverRuleRequest.h:134
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::WithVPCId
AssociateResolverRuleRequest & WithVPCId(const Aws::String &value)
Definition: AssociateResolverRuleRequest.h:171
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::GetResolverRuleId
const Aws::String & GetResolverRuleId() const
Definition: AssociateResolverRuleRequest.h:42
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SetResolverRuleId
void SetResolverRuleId(const Aws::String &value)
Definition: AssociateResolverRuleRequest.h:56
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SetName
void SetName(const Aws::String &value)
Definition: AssociateResolverRuleRequest.h:110
AWS_ROUTE53RESOLVER_API
#define AWS_ROUTE53RESOLVER_API
Definition: Route53Resolver_EXPORTS.h:28
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::AssociateResolverRuleRequest
AssociateResolverRuleRequest()
Route53ResolverRequest.h
AWSString.h
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SetVPCId
void SetVPCId(Aws::String &&value)
Definition: AssociateResolverRuleRequest.h:161
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SetVPCId
void SetVPCId(const Aws::String &value)
Definition: AssociateResolverRuleRequest.h:156
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::WithResolverRuleId
AssociateResolverRuleRequest & WithResolverRuleId(Aws::String &&value)
Definition: AssociateResolverRuleRequest.h:84
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::WithName
AssociateResolverRuleRequest & WithName(const char *value)
Definition: AssociateResolverRuleRequest.h:140
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::WithResolverRuleId
AssociateResolverRuleRequest & WithResolverRuleId(const char *value)
Definition: AssociateResolverRuleRequest.h:91
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SetName
void SetName(Aws::String &&value)
Definition: AssociateResolverRuleRequest.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::WithVPCId
AssociateResolverRuleRequest & WithVPCId(Aws::String &&value)
Definition: AssociateResolverRuleRequest.h:176
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::SetVPCId
void SetVPCId(const char *value)
Definition: AssociateResolverRuleRequest.h:166
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::WithResolverRuleId
AssociateResolverRuleRequest & WithResolverRuleId(const Aws::String &value)
Definition: AssociateResolverRuleRequest.h:77
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::GetVPCId
const Aws::String & GetVPCId() const
Definition: AssociateResolverRuleRequest.h:146
Aws::Route53Resolver::Model::AssociateResolverRuleRequest::GetName
const Aws::String & GetName() const
Definition: AssociateResolverRuleRequest.h:98