AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DnsResource.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/vpc-lattice/model/ResourceConfigurationIpAddressType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace VPCLattice
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_VPCLATTICE_API DnsResource() = default;
36 AWS_VPCLATTICE_API DnsResource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VPCLATTICE_API DnsResource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetDomainName() const { return m_domainName; }
46 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
47 template<typename DomainNameT = Aws::String>
48 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
49 template<typename DomainNameT = Aws::String>
50 DnsResource& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
52
54
57 inline ResourceConfigurationIpAddressType GetIpAddressType() const { return m_ipAddressType; }
58 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
59 inline void SetIpAddressType(ResourceConfigurationIpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
62 private:
63
64 Aws::String m_domainName;
65 bool m_domainNameHasBeenSet = false;
66
68 bool m_ipAddressTypeHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace VPCLattice
73} // namespace Aws
AWS_VPCLATTICE_API DnsResource()=default
AWS_VPCLATTICE_API DnsResource & operator=(Aws::Utils::Json::JsonView jsonValue)
DnsResource & WithDomainName(DomainNameT &&value)
Definition DnsResource.h:50
AWS_VPCLATTICE_API DnsResource(Aws::Utils::Json::JsonView jsonValue)
DnsResource & WithIpAddressType(ResourceConfigurationIpAddressType value)
Definition DnsResource.h:60
void SetIpAddressType(ResourceConfigurationIpAddressType value)
Definition DnsResource.h:59
ResourceConfigurationIpAddressType GetIpAddressType() const
Definition DnsResource.h:57
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDomainName(DomainNameT &&value)
Definition DnsResource.h:48
const Aws::String & GetDomainName() const
Definition DnsResource.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue