/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Route53Resolver { namespace Model { /** */ class CreateResolverRuleRequest : public Route53ResolverRequest { public: AWS_ROUTE53RESOLVER_API CreateResolverRuleRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateResolverRule"; } AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override; AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline CreateResolverRuleRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline CreateResolverRuleRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline CreateResolverRuleRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *

A friendly name that lets you easily find a rule in the Resolver dashboard in * the Route 53 console.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A friendly name that lets you easily find a rule in the Resolver dashboard in * the Route 53 console.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A friendly name that lets you easily find a rule in the Resolver dashboard in * the Route 53 console.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A friendly name that lets you easily find a rule in the Resolver dashboard in * the Route 53 console.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A friendly name that lets you easily find a rule in the Resolver dashboard in * the Route 53 console.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A friendly name that lets you easily find a rule in the Resolver dashboard in * the Route 53 console.

*/ inline CreateResolverRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A friendly name that lets you easily find a rule in the Resolver dashboard in * the Route 53 console.

*/ inline CreateResolverRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A friendly name that lets you easily find a rule in the Resolver dashboard in * the Route 53 console.

*/ inline CreateResolverRuleRequest& WithName(const char* value) { SetName(value); return *this;} /** *

When you want to forward DNS queries for specified domain name to resolvers * on your network, specify FORWARD.

When you have a forwarding * rule to forward DNS queries for a domain to your network and you want Resolver * to process queries for a subdomain of that domain, specify * SYSTEM.

For example, to forward DNS queries for example.com * to resolvers on your network, you create a rule and specify FORWARD * for RuleType. To then have Resolver process queries for * apex.example.com, you create a rule and specify SYSTEM for * RuleType.

Currently, only Resolver can create rules that * have a value of RECURSIVE for RuleType.

*/ inline const RuleTypeOption& GetRuleType() const{ return m_ruleType; } /** *

When you want to forward DNS queries for specified domain name to resolvers * on your network, specify FORWARD.

When you have a forwarding * rule to forward DNS queries for a domain to your network and you want Resolver * to process queries for a subdomain of that domain, specify * SYSTEM.

For example, to forward DNS queries for example.com * to resolvers on your network, you create a rule and specify FORWARD * for RuleType. To then have Resolver process queries for * apex.example.com, you create a rule and specify SYSTEM for * RuleType.

Currently, only Resolver can create rules that * have a value of RECURSIVE for RuleType.

*/ inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; } /** *

When you want to forward DNS queries for specified domain name to resolvers * on your network, specify FORWARD.

When you have a forwarding * rule to forward DNS queries for a domain to your network and you want Resolver * to process queries for a subdomain of that domain, specify * SYSTEM.

For example, to forward DNS queries for example.com * to resolvers on your network, you create a rule and specify FORWARD * for RuleType. To then have Resolver process queries for * apex.example.com, you create a rule and specify SYSTEM for * RuleType.

Currently, only Resolver can create rules that * have a value of RECURSIVE for RuleType.

*/ inline void SetRuleType(const RuleTypeOption& value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; } /** *

When you want to forward DNS queries for specified domain name to resolvers * on your network, specify FORWARD.

When you have a forwarding * rule to forward DNS queries for a domain to your network and you want Resolver * to process queries for a subdomain of that domain, specify * SYSTEM.

For example, to forward DNS queries for example.com * to resolvers on your network, you create a rule and specify FORWARD * for RuleType. To then have Resolver process queries for * apex.example.com, you create a rule and specify SYSTEM for * RuleType.

Currently, only Resolver can create rules that * have a value of RECURSIVE for RuleType.

*/ inline void SetRuleType(RuleTypeOption&& value) { m_ruleTypeHasBeenSet = true; m_ruleType = std::move(value); } /** *

When you want to forward DNS queries for specified domain name to resolvers * on your network, specify FORWARD.

When you have a forwarding * rule to forward DNS queries for a domain to your network and you want Resolver * to process queries for a subdomain of that domain, specify * SYSTEM.

For example, to forward DNS queries for example.com * to resolvers on your network, you create a rule and specify FORWARD * for RuleType. To then have Resolver process queries for * apex.example.com, you create a rule and specify SYSTEM for * RuleType.

Currently, only Resolver can create rules that * have a value of RECURSIVE for RuleType.

*/ inline CreateResolverRuleRequest& WithRuleType(const RuleTypeOption& value) { SetRuleType(value); return *this;} /** *

When you want to forward DNS queries for specified domain name to resolvers * on your network, specify FORWARD.

When you have a forwarding * rule to forward DNS queries for a domain to your network and you want Resolver * to process queries for a subdomain of that domain, specify * SYSTEM.

For example, to forward DNS queries for example.com * to resolvers on your network, you create a rule and specify FORWARD * for RuleType. To then have Resolver process queries for * apex.example.com, you create a rule and specify SYSTEM for * RuleType.

Currently, only Resolver can create rules that * have a value of RECURSIVE for RuleType.

*/ inline CreateResolverRuleRequest& WithRuleType(RuleTypeOption&& value) { SetRuleType(std::move(value)); return *this;} /** *

DNS queries for this domain name are forwarded to the IP addresses that you * specify in TargetIps. If a query matches multiple Resolver rules * (example.com and www.example.com), outbound DNS queries are routed using the * Resolver rule that contains the most specific domain name (www.example.com).

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

DNS queries for this domain name are forwarded to the IP addresses that you * specify in TargetIps. If a query matches multiple Resolver rules * (example.com and www.example.com), outbound DNS queries are routed using the * Resolver rule that contains the most specific domain name (www.example.com).

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

DNS queries for this domain name are forwarded to the IP addresses that you * specify in TargetIps. If a query matches multiple Resolver rules * (example.com and www.example.com), outbound DNS queries are routed using the * Resolver rule that contains the most specific domain name (www.example.com).

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

DNS queries for this domain name are forwarded to the IP addresses that you * specify in TargetIps. If a query matches multiple Resolver rules * (example.com and www.example.com), outbound DNS queries are routed using the * Resolver rule that contains the most specific domain name (www.example.com).

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

DNS queries for this domain name are forwarded to the IP addresses that you * specify in TargetIps. If a query matches multiple Resolver rules * (example.com and www.example.com), outbound DNS queries are routed using the * Resolver rule that contains the most specific domain name (www.example.com).

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

DNS queries for this domain name are forwarded to the IP addresses that you * specify in TargetIps. If a query matches multiple Resolver rules * (example.com and www.example.com), outbound DNS queries are routed using the * Resolver rule that contains the most specific domain name (www.example.com).

*/ inline CreateResolverRuleRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

DNS queries for this domain name are forwarded to the IP addresses that you * specify in TargetIps. If a query matches multiple Resolver rules * (example.com and www.example.com), outbound DNS queries are routed using the * Resolver rule that contains the most specific domain name (www.example.com).

*/ inline CreateResolverRuleRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

DNS queries for this domain name are forwarded to the IP addresses that you * specify in TargetIps. If a query matches multiple Resolver rules * (example.com and www.example.com), outbound DNS queries are routed using the * Resolver rule that contains the most specific domain name (www.example.com).

*/ inline CreateResolverRuleRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

The IPs that you want Resolver to forward DNS queries to. You can specify * either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP * addresses with a space.

TargetIps is available only when * the value of Rule type is FORWARD.

*/ inline const Aws::Vector& GetTargetIps() const{ return m_targetIps; } /** *

The IPs that you want Resolver to forward DNS queries to. You can specify * either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP * addresses with a space.

TargetIps is available only when * the value of Rule type is FORWARD.

*/ inline bool TargetIpsHasBeenSet() const { return m_targetIpsHasBeenSet; } /** *

The IPs that you want Resolver to forward DNS queries to. You can specify * either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP * addresses with a space.

TargetIps is available only when * the value of Rule type is FORWARD.

*/ inline void SetTargetIps(const Aws::Vector& value) { m_targetIpsHasBeenSet = true; m_targetIps = value; } /** *

The IPs that you want Resolver to forward DNS queries to. You can specify * either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP * addresses with a space.

TargetIps is available only when * the value of Rule type is FORWARD.

*/ inline void SetTargetIps(Aws::Vector&& value) { m_targetIpsHasBeenSet = true; m_targetIps = std::move(value); } /** *

The IPs that you want Resolver to forward DNS queries to. You can specify * either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP * addresses with a space.

TargetIps is available only when * the value of Rule type is FORWARD.

*/ inline CreateResolverRuleRequest& WithTargetIps(const Aws::Vector& value) { SetTargetIps(value); return *this;} /** *

The IPs that you want Resolver to forward DNS queries to. You can specify * either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP * addresses with a space.

TargetIps is available only when * the value of Rule type is FORWARD.

*/ inline CreateResolverRuleRequest& WithTargetIps(Aws::Vector&& value) { SetTargetIps(std::move(value)); return *this;} /** *

The IPs that you want Resolver to forward DNS queries to. You can specify * either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP * addresses with a space.

TargetIps is available only when * the value of Rule type is FORWARD.

*/ inline CreateResolverRuleRequest& AddTargetIps(const TargetAddress& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(value); return *this; } /** *

The IPs that you want Resolver to forward DNS queries to. You can specify * either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP * addresses with a space.

TargetIps is available only when * the value of Rule type is FORWARD.

*/ inline CreateResolverRuleRequest& AddTargetIps(TargetAddress&& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(std::move(value)); return *this; } /** *

The ID of the outbound Resolver endpoint that you want to use to route DNS * queries to the IP addresses that you specify in TargetIps.

*/ inline const Aws::String& GetResolverEndpointId() const{ return m_resolverEndpointId; } /** *

The ID of the outbound Resolver endpoint that you want to use to route DNS * queries to the IP addresses that you specify in TargetIps.

*/ inline bool ResolverEndpointIdHasBeenSet() const { return m_resolverEndpointIdHasBeenSet; } /** *

The ID of the outbound Resolver endpoint that you want to use to route DNS * queries to the IP addresses that you specify in TargetIps.

*/ inline void SetResolverEndpointId(const Aws::String& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = value; } /** *

The ID of the outbound Resolver endpoint that you want to use to route DNS * queries to the IP addresses that you specify in TargetIps.

*/ inline void SetResolverEndpointId(Aws::String&& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = std::move(value); } /** *

The ID of the outbound Resolver endpoint that you want to use to route DNS * queries to the IP addresses that you specify in TargetIps.

*/ inline void SetResolverEndpointId(const char* value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId.assign(value); } /** *

The ID of the outbound Resolver endpoint that you want to use to route DNS * queries to the IP addresses that you specify in TargetIps.

*/ inline CreateResolverRuleRequest& WithResolverEndpointId(const Aws::String& value) { SetResolverEndpointId(value); return *this;} /** *

The ID of the outbound Resolver endpoint that you want to use to route DNS * queries to the IP addresses that you specify in TargetIps.

*/ inline CreateResolverRuleRequest& WithResolverEndpointId(Aws::String&& value) { SetResolverEndpointId(std::move(value)); return *this;} /** *

The ID of the outbound Resolver endpoint that you want to use to route DNS * queries to the IP addresses that you specify in TargetIps.

*/ inline CreateResolverRuleRequest& WithResolverEndpointId(const char* value) { SetResolverEndpointId(value); return *this;} /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline CreateResolverRuleRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline CreateResolverRuleRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline CreateResolverRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline CreateResolverRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; RuleTypeOption m_ruleType; bool m_ruleTypeHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::Vector m_targetIps; bool m_targetIpsHasBeenSet = false; Aws::String m_resolverEndpointId; bool m_resolverEndpointIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws