/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Route53Resolver { namespace Model { /** *

In an UpdateResolverRule * request, information about the changes that you want to make.

See * Also:

AWS * API Reference

*/ class ResolverRuleConfig { public: AWS_ROUTE53RESOLVER_API ResolverRuleConfig(); AWS_ROUTE53RESOLVER_API ResolverRuleConfig(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RESOLVER_API ResolverRuleConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The new name for the Resolver rule. The name that you specify appears in the * Resolver dashboard in the Route 53 console.

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

The new name for the Resolver rule. The name that you specify appears in the * Resolver dashboard in the Route 53 console.

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

The new name for the Resolver rule. The name that you specify appears in the * Resolver dashboard in the Route 53 console.

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

The new name for the Resolver rule. The name that you specify appears in the * Resolver dashboard in the Route 53 console.

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

The new name for the Resolver rule. The name that you specify appears in the * Resolver dashboard in the Route 53 console.

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

The new name for the Resolver rule. The name that you specify appears in the * Resolver dashboard in the Route 53 console.

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

The new name for the Resolver rule. The name that you specify appears in the * Resolver dashboard in the Route 53 console.

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

The new name for the Resolver rule. The name that you specify appears in the * Resolver dashboard in the Route 53 console.

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

For DNS queries that originate in your VPC, the new IP addresses that you * want to route outbound DNS queries to.

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

For DNS queries that originate in your VPC, the new IP addresses that you * want to route outbound DNS queries to.

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

For DNS queries that originate in your VPC, the new IP addresses that you * want to route outbound DNS queries to.

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

For DNS queries that originate in your VPC, the new IP addresses that you * want to route outbound DNS queries to.

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

For DNS queries that originate in your VPC, the new IP addresses that you * want to route outbound DNS queries to.

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

For DNS queries that originate in your VPC, the new IP addresses that you * want to route outbound DNS queries to.

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

For DNS queries that originate in your VPC, the new IP addresses that you * want to route outbound DNS queries to.

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

For DNS queries that originate in your VPC, the new IP addresses that you * want to route outbound DNS queries to.

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

The ID of the new 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 new 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 new 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 new 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 new 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 new outbound Resolver endpoint that you want to use to route * DNS queries to the IP addresses that you specify in TargetIps.

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

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

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

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

*/ inline ResolverRuleConfig& WithResolverEndpointId(const char* value) { SetResolverEndpointId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_targetIps; bool m_targetIpsHasBeenSet = false; Aws::String m_resolverEndpointId; bool m_resolverEndpointIdHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws