AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DNSTargetResource.h
1
6#pragma once
7#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53-recovery-readiness/model/TargetResource.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 Route53RecoveryReadiness
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ROUTE53RECOVERYREADINESS_API DNSTargetResource();
37 AWS_ROUTE53RECOVERYREADINESS_API DNSTargetResource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROUTE53RECOVERYREADINESS_API DNSTargetResource& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetDomainName() const{ return m_domainName; }
48 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
49 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
50 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
51 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
52 inline DNSTargetResource& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
53 inline DNSTargetResource& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
54 inline DNSTargetResource& WithDomainName(const char* value) { SetDomainName(value); return *this;}
56
58
62 inline const Aws::String& GetHostedZoneArn() const{ return m_hostedZoneArn; }
63 inline bool HostedZoneArnHasBeenSet() const { return m_hostedZoneArnHasBeenSet; }
64 inline void SetHostedZoneArn(const Aws::String& value) { m_hostedZoneArnHasBeenSet = true; m_hostedZoneArn = value; }
65 inline void SetHostedZoneArn(Aws::String&& value) { m_hostedZoneArnHasBeenSet = true; m_hostedZoneArn = std::move(value); }
66 inline void SetHostedZoneArn(const char* value) { m_hostedZoneArnHasBeenSet = true; m_hostedZoneArn.assign(value); }
67 inline DNSTargetResource& WithHostedZoneArn(const Aws::String& value) { SetHostedZoneArn(value); return *this;}
68 inline DNSTargetResource& WithHostedZoneArn(Aws::String&& value) { SetHostedZoneArn(std::move(value)); return *this;}
69 inline DNSTargetResource& WithHostedZoneArn(const char* value) { SetHostedZoneArn(value); return *this;}
71
73
77 inline const Aws::String& GetRecordSetId() const{ return m_recordSetId; }
78 inline bool RecordSetIdHasBeenSet() const { return m_recordSetIdHasBeenSet; }
79 inline void SetRecordSetId(const Aws::String& value) { m_recordSetIdHasBeenSet = true; m_recordSetId = value; }
80 inline void SetRecordSetId(Aws::String&& value) { m_recordSetIdHasBeenSet = true; m_recordSetId = std::move(value); }
81 inline void SetRecordSetId(const char* value) { m_recordSetIdHasBeenSet = true; m_recordSetId.assign(value); }
82 inline DNSTargetResource& WithRecordSetId(const Aws::String& value) { SetRecordSetId(value); return *this;}
83 inline DNSTargetResource& WithRecordSetId(Aws::String&& value) { SetRecordSetId(std::move(value)); return *this;}
84 inline DNSTargetResource& WithRecordSetId(const char* value) { SetRecordSetId(value); return *this;}
86
88
91 inline const Aws::String& GetRecordType() const{ return m_recordType; }
92 inline bool RecordTypeHasBeenSet() const { return m_recordTypeHasBeenSet; }
93 inline void SetRecordType(const Aws::String& value) { m_recordTypeHasBeenSet = true; m_recordType = value; }
94 inline void SetRecordType(Aws::String&& value) { m_recordTypeHasBeenSet = true; m_recordType = std::move(value); }
95 inline void SetRecordType(const char* value) { m_recordTypeHasBeenSet = true; m_recordType.assign(value); }
96 inline DNSTargetResource& WithRecordType(const Aws::String& value) { SetRecordType(value); return *this;}
97 inline DNSTargetResource& WithRecordType(Aws::String&& value) { SetRecordType(std::move(value)); return *this;}
98 inline DNSTargetResource& WithRecordType(const char* value) { SetRecordType(value); return *this;}
100
102
105 inline const TargetResource& GetTargetResource() const{ return m_targetResource; }
106 inline bool TargetResourceHasBeenSet() const { return m_targetResourceHasBeenSet; }
107 inline void SetTargetResource(const TargetResource& value) { m_targetResourceHasBeenSet = true; m_targetResource = value; }
108 inline void SetTargetResource(TargetResource&& value) { m_targetResourceHasBeenSet = true; m_targetResource = std::move(value); }
109 inline DNSTargetResource& WithTargetResource(const TargetResource& value) { SetTargetResource(value); return *this;}
110 inline DNSTargetResource& WithTargetResource(TargetResource&& value) { SetTargetResource(std::move(value)); return *this;}
112 private:
113
114 Aws::String m_domainName;
115 bool m_domainNameHasBeenSet = false;
116
117 Aws::String m_hostedZoneArn;
118 bool m_hostedZoneArnHasBeenSet = false;
119
120 Aws::String m_recordSetId;
121 bool m_recordSetIdHasBeenSet = false;
122
123 Aws::String m_recordType;
124 bool m_recordTypeHasBeenSet = false;
125
126 TargetResource m_targetResource;
127 bool m_targetResourceHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Route53RecoveryReadiness
132} // namespace Aws
AWS_ROUTE53RECOVERYREADINESS_API DNSTargetResource & operator=(Aws::Utils::Json::JsonView jsonValue)
DNSTargetResource & WithHostedZoneArn(Aws::String &&value)
DNSTargetResource & WithHostedZoneArn(const char *value)
AWS_ROUTE53RECOVERYREADINESS_API DNSTargetResource(Aws::Utils::Json::JsonView jsonValue)
DNSTargetResource & WithDomainName(const char *value)
DNSTargetResource & WithHostedZoneArn(const Aws::String &value)
DNSTargetResource & WithTargetResource(TargetResource &&value)
DNSTargetResource & WithDomainName(Aws::String &&value)
DNSTargetResource & WithRecordSetId(const char *value)
DNSTargetResource & WithRecordType(const Aws::String &value)
DNSTargetResource & WithDomainName(const Aws::String &value)
DNSTargetResource & WithRecordSetId(Aws::String &&value)
DNSTargetResource & WithTargetResource(const TargetResource &value)
DNSTargetResource & WithRecordType(const char *value)
DNSTargetResource & WithRecordType(Aws::String &&value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RECOVERYREADINESS_API DNSTargetResource()
DNSTargetResource & WithRecordSetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue