AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateResolverRuleRequest.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/route53resolver/Route53ResolverRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53resolver/model/RuleTypeOption.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/route53resolver/model/TargetAddress.h>
13#include <aws/route53resolver/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Route53Resolver
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_ROUTE53RESOLVER_API CreateResolverRuleRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateResolverRule"; }
35
36 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
37
38 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
48 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
49 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
50 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
51 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
52 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
54 inline CreateResolverRuleRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
55 inline CreateResolverRuleRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
57
59
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline CreateResolverRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline CreateResolverRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline CreateResolverRuleRequest& WithName(const char* value) { SetName(value); return *this;}
72
74
86 inline const RuleTypeOption& GetRuleType() const{ return m_ruleType; }
87 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
88 inline void SetRuleType(const RuleTypeOption& value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; }
89 inline void SetRuleType(RuleTypeOption&& value) { m_ruleTypeHasBeenSet = true; m_ruleType = std::move(value); }
90 inline CreateResolverRuleRequest& WithRuleType(const RuleTypeOption& value) { SetRuleType(value); return *this;}
91 inline CreateResolverRuleRequest& WithRuleType(RuleTypeOption&& value) { SetRuleType(std::move(value)); return *this;}
93
95
101 inline const Aws::String& GetDomainName() const{ return m_domainName; }
102 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
103 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
104 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
105 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
106 inline CreateResolverRuleRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
107 inline CreateResolverRuleRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
108 inline CreateResolverRuleRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
110
112
118 inline const Aws::Vector<TargetAddress>& GetTargetIps() const{ return m_targetIps; }
119 inline bool TargetIpsHasBeenSet() const { return m_targetIpsHasBeenSet; }
120 inline void SetTargetIps(const Aws::Vector<TargetAddress>& value) { m_targetIpsHasBeenSet = true; m_targetIps = value; }
121 inline void SetTargetIps(Aws::Vector<TargetAddress>&& value) { m_targetIpsHasBeenSet = true; m_targetIps = std::move(value); }
123 inline CreateResolverRuleRequest& WithTargetIps(Aws::Vector<TargetAddress>&& value) { SetTargetIps(std::move(value)); return *this;}
124 inline CreateResolverRuleRequest& AddTargetIps(const TargetAddress& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(value); return *this; }
125 inline CreateResolverRuleRequest& AddTargetIps(TargetAddress&& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(std::move(value)); return *this; }
127
129
133 inline const Aws::String& GetResolverEndpointId() const{ return m_resolverEndpointId; }
134 inline bool ResolverEndpointIdHasBeenSet() const { return m_resolverEndpointIdHasBeenSet; }
135 inline void SetResolverEndpointId(const Aws::String& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = value; }
136 inline void SetResolverEndpointId(Aws::String&& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = std::move(value); }
137 inline void SetResolverEndpointId(const char* value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId.assign(value); }
139 inline CreateResolverRuleRequest& WithResolverEndpointId(Aws::String&& value) { SetResolverEndpointId(std::move(value)); return *this;}
140 inline CreateResolverRuleRequest& WithResolverEndpointId(const char* value) { SetResolverEndpointId(value); return *this;}
142
144
148 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
151 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
152 inline CreateResolverRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
153 inline CreateResolverRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
154 inline CreateResolverRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
155 inline CreateResolverRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
157 private:
158
159 Aws::String m_creatorRequestId;
160 bool m_creatorRequestIdHasBeenSet = false;
161
162 Aws::String m_name;
163 bool m_nameHasBeenSet = false;
164
165 RuleTypeOption m_ruleType;
166 bool m_ruleTypeHasBeenSet = false;
167
168 Aws::String m_domainName;
169 bool m_domainNameHasBeenSet = false;
170
171 Aws::Vector<TargetAddress> m_targetIps;
172 bool m_targetIpsHasBeenSet = false;
173
174 Aws::String m_resolverEndpointId;
175 bool m_resolverEndpointIdHasBeenSet = false;
176
177 Aws::Vector<Tag> m_tags;
178 bool m_tagsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace Route53Resolver
183} // namespace Aws
CreateResolverRuleRequest & WithResolverEndpointId(const Aws::String &value)
CreateResolverRuleRequest & WithCreatorRequestId(Aws::String &&value)
CreateResolverRuleRequest & WithResolverEndpointId(Aws::String &&value)
CreateResolverRuleRequest & AddTags(const Tag &value)
CreateResolverRuleRequest & WithResolverEndpointId(const char *value)
CreateResolverRuleRequest & WithRuleType(const RuleTypeOption &value)
CreateResolverRuleRequest & WithRuleType(RuleTypeOption &&value)
CreateResolverRuleRequest & AddTargetIps(TargetAddress &&value)
void SetTargetIps(Aws::Vector< TargetAddress > &&value)
CreateResolverRuleRequest & WithCreatorRequestId(const Aws::String &value)
CreateResolverRuleRequest & WithTargetIps(Aws::Vector< TargetAddress > &&value)
CreateResolverRuleRequest & WithName(const char *value)
const Aws::Vector< TargetAddress > & GetTargetIps() const
CreateResolverRuleRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTargetIps(const Aws::Vector< TargetAddress > &value)
CreateResolverRuleRequest & AddTargetIps(const TargetAddress &value)
CreateResolverRuleRequest & WithDomainName(const Aws::String &value)
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
CreateResolverRuleRequest & WithDomainName(const char *value)
CreateResolverRuleRequest & WithTags(const Aws::Vector< Tag > &value)
CreateResolverRuleRequest & WithName(Aws::String &&value)
CreateResolverRuleRequest & WithCreatorRequestId(const char *value)
CreateResolverRuleRequest & WithDomainName(Aws::String &&value)
CreateResolverRuleRequest & WithName(const Aws::String &value)
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateResolverRuleRequest & WithTargetIps(const Aws::Vector< TargetAddress > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector