AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResolverRuleConfig.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53resolver/model/TargetAddress.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Route53Resolver
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_ROUTE53RESOLVER_API ResolverRuleConfig();
40 AWS_ROUTE53RESOLVER_API ResolverRuleConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROUTE53RESOLVER_API ResolverRuleConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline ResolverRuleConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline ResolverRuleConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline ResolverRuleConfig& WithName(const char* value) { SetName(value); return *this;}
59
61
65 inline const Aws::Vector<TargetAddress>& GetTargetIps() const{ return m_targetIps; }
66 inline bool TargetIpsHasBeenSet() const { return m_targetIpsHasBeenSet; }
67 inline void SetTargetIps(const Aws::Vector<TargetAddress>& value) { m_targetIpsHasBeenSet = true; m_targetIps = value; }
68 inline void SetTargetIps(Aws::Vector<TargetAddress>&& value) { m_targetIpsHasBeenSet = true; m_targetIps = std::move(value); }
69 inline ResolverRuleConfig& WithTargetIps(const Aws::Vector<TargetAddress>& value) { SetTargetIps(value); return *this;}
70 inline ResolverRuleConfig& WithTargetIps(Aws::Vector<TargetAddress>&& value) { SetTargetIps(std::move(value)); return *this;}
71 inline ResolverRuleConfig& AddTargetIps(const TargetAddress& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(value); return *this; }
72 inline ResolverRuleConfig& AddTargetIps(TargetAddress&& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(std::move(value)); return *this; }
74
76
80 inline const Aws::String& GetResolverEndpointId() const{ return m_resolverEndpointId; }
81 inline bool ResolverEndpointIdHasBeenSet() const { return m_resolverEndpointIdHasBeenSet; }
82 inline void SetResolverEndpointId(const Aws::String& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = value; }
83 inline void SetResolverEndpointId(Aws::String&& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = std::move(value); }
84 inline void SetResolverEndpointId(const char* value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId.assign(value); }
85 inline ResolverRuleConfig& WithResolverEndpointId(const Aws::String& value) { SetResolverEndpointId(value); return *this;}
86 inline ResolverRuleConfig& WithResolverEndpointId(Aws::String&& value) { SetResolverEndpointId(std::move(value)); return *this;}
87 inline ResolverRuleConfig& WithResolverEndpointId(const char* value) { SetResolverEndpointId(value); return *this;}
89 private:
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
95 bool m_targetIpsHasBeenSet = false;
96
97 Aws::String m_resolverEndpointId;
98 bool m_resolverEndpointIdHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Route53Resolver
103} // namespace Aws
ResolverRuleConfig & WithName(Aws::String &&value)
ResolverRuleConfig & WithName(const Aws::String &value)
ResolverRuleConfig & WithName(const char *value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
ResolverRuleConfig & WithResolverEndpointId(const Aws::String &value)
AWS_ROUTE53RESOLVER_API ResolverRuleConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ResolverRuleConfig & WithResolverEndpointId(const char *value)
void SetTargetIps(Aws::Vector< TargetAddress > &&value)
void SetResolverEndpointId(const Aws::String &value)
ResolverRuleConfig & WithTargetIps(Aws::Vector< TargetAddress > &&value)
AWS_ROUTE53RESOLVER_API ResolverRuleConfig(Aws::Utils::Json::JsonView jsonValue)
ResolverRuleConfig & AddTargetIps(const TargetAddress &value)
ResolverRuleConfig & WithResolverEndpointId(Aws::String &&value)
const Aws::Vector< TargetAddress > & GetTargetIps() const
ResolverRuleConfig & WithTargetIps(const Aws::Vector< TargetAddress > &value)
void SetTargetIps(const Aws::Vector< TargetAddress > &value)
ResolverRuleConfig & AddTargetIps(TargetAddress &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue