This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

204 lines
7.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/route53resolver/model/TargetAddress.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Route53Resolver
{
namespace Model
{
/**
* <p>In an <a>UpdateResolverRule</a> request, information about the changes that
* you want to make.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ResolverRuleConfig">AWS
* API Reference</a></p>
*/
class AWS_ROUTE53RESOLVER_API ResolverRuleConfig
{
public:
ResolverRuleConfig();
ResolverRuleConfig(Aws::Utils::Json::JsonView jsonValue);
ResolverRuleConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The new name for the resolver rule. The name that you specify appears in the
* Resolver dashboard in the Route 53 console. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The new name for the resolver rule. The name that you specify appears in the
* Resolver dashboard in the Route 53 console. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The new name for the resolver rule. The name that you specify appears in the
* Resolver dashboard in the Route 53 console. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The new name for the resolver rule. The name that you specify appears in the
* Resolver dashboard in the Route 53 console. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The new name for the resolver rule. The name that you specify appears in the
* Resolver dashboard in the Route 53 console. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The new name for the resolver rule. The name that you specify appears in the
* Resolver dashboard in the Route 53 console. </p>
*/
inline ResolverRuleConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The new name for the resolver rule. The name that you specify appears in the
* Resolver dashboard in the Route 53 console. </p>
*/
inline ResolverRuleConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The new name for the resolver rule. The name that you specify appears in the
* Resolver dashboard in the Route 53 console. </p>
*/
inline ResolverRuleConfig& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>For DNS queries that originate in your VPC, the new IP addresses that you
* want to route outbound DNS queries to.</p>
*/
inline const Aws::Vector<TargetAddress>& GetTargetIps() const{ return m_targetIps; }
/**
* <p>For DNS queries that originate in your VPC, the new IP addresses that you
* want to route outbound DNS queries to.</p>
*/
inline bool TargetIpsHasBeenSet() const { return m_targetIpsHasBeenSet; }
/**
* <p>For DNS queries that originate in your VPC, the new IP addresses that you
* want to route outbound DNS queries to.</p>
*/
inline void SetTargetIps(const Aws::Vector<TargetAddress>& value) { m_targetIpsHasBeenSet = true; m_targetIps = value; }
/**
* <p>For DNS queries that originate in your VPC, the new IP addresses that you
* want to route outbound DNS queries to.</p>
*/
inline void SetTargetIps(Aws::Vector<TargetAddress>&& value) { m_targetIpsHasBeenSet = true; m_targetIps = std::move(value); }
/**
* <p>For DNS queries that originate in your VPC, the new IP addresses that you
* want to route outbound DNS queries to.</p>
*/
inline ResolverRuleConfig& WithTargetIps(const Aws::Vector<TargetAddress>& value) { SetTargetIps(value); return *this;}
/**
* <p>For DNS queries that originate in your VPC, the new IP addresses that you
* want to route outbound DNS queries to.</p>
*/
inline ResolverRuleConfig& WithTargetIps(Aws::Vector<TargetAddress>&& value) { SetTargetIps(std::move(value)); return *this;}
/**
* <p>For DNS queries that originate in your VPC, the new IP addresses that you
* want to route outbound DNS queries to.</p>
*/
inline ResolverRuleConfig& AddTargetIps(const TargetAddress& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(value); return *this; }
/**
* <p>For DNS queries that originate in your VPC, the new IP addresses that you
* want to route outbound DNS queries to.</p>
*/
inline ResolverRuleConfig& AddTargetIps(TargetAddress&& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(std::move(value)); return *this; }
/**
* <p>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 <code>TargetIps</code>.</p>
*/
inline const Aws::String& GetResolverEndpointId() const{ return m_resolverEndpointId; }
/**
* <p>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 <code>TargetIps</code>.</p>
*/
inline bool ResolverEndpointIdHasBeenSet() const { return m_resolverEndpointIdHasBeenSet; }
/**
* <p>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 <code>TargetIps</code>.</p>
*/
inline void SetResolverEndpointId(const Aws::String& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = value; }
/**
* <p>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 <code>TargetIps</code>.</p>
*/
inline void SetResolverEndpointId(Aws::String&& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = std::move(value); }
/**
* <p>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 <code>TargetIps</code>.</p>
*/
inline void SetResolverEndpointId(const char* value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId.assign(value); }
/**
* <p>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 <code>TargetIps</code>.</p>
*/
inline ResolverRuleConfig& WithResolverEndpointId(const Aws::String& value) { SetResolverEndpointId(value); return *this;}
/**
* <p>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 <code>TargetIps</code>.</p>
*/
inline ResolverRuleConfig& WithResolverEndpointId(Aws::String&& value) { SetResolverEndpointId(std::move(value)); return *this;}
/**
* <p>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 <code>TargetIps</code>.</p>
*/
inline ResolverRuleConfig& WithResolverEndpointId(const char* value) { SetResolverEndpointId(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<TargetAddress> m_targetIps;
bool m_targetIpsHasBeenSet;
Aws::String m_resolverEndpointId;
bool m_resolverEndpointIdHasBeenSet;
};
} // namespace Model
} // namespace Route53Resolver
} // namespace Aws