AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DnsRecord.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/model/RecordType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ServiceDiscovery
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_SERVICEDISCOVERY_API DnsRecord() = default;
37 AWS_SERVICEDISCOVERY_API DnsRecord(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICEDISCOVERY_API DnsRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
101 inline RecordType GetType() const { return m_type; }
102 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
103 inline void SetType(RecordType value) { m_typeHasBeenSet = true; m_type = value; }
104 inline DnsRecord& WithType(RecordType value) { SetType(value); return *this;}
106
108
119 inline long long GetTTL() const { return m_tTL; }
120 inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
121 inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
122 inline DnsRecord& WithTTL(long long value) { SetTTL(value); return *this;}
124 private:
125
127 bool m_typeHasBeenSet = false;
128
129 long long m_tTL{0};
130 bool m_tTLHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace ServiceDiscovery
135} // namespace Aws
DnsRecord & WithType(RecordType value)
Definition DnsRecord.h:104
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
DnsRecord & WithTTL(long long value)
Definition DnsRecord.h:122
AWS_SERVICEDISCOVERY_API DnsRecord()=default
AWS_SERVICEDISCOVERY_API DnsRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API DnsRecord(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue