AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const RecordType& GetType() const{ return m_type; }
102 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
103 inline void SetType(const RecordType& value) { m_typeHasBeenSet = true; m_type = value; }
104 inline void SetType(RecordType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
105 inline DnsRecord& WithType(const RecordType& value) { SetType(value); return *this;}
106 inline DnsRecord& WithType(RecordType&& value) { SetType(std::move(value)); return *this;}
108
110
121 inline long long GetTTL() const{ return m_tTL; }
122 inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
123 inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
124 inline DnsRecord& WithTTL(long long value) { SetTTL(value); return *this;}
126 private:
127
128 RecordType m_type;
129 bool m_typeHasBeenSet = false;
130
131 long long m_tTL;
132 bool m_tTLHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace ServiceDiscovery
137} // namespace Aws
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
DnsRecord & WithTTL(long long value)
Definition DnsRecord.h:124
const RecordType & GetType() const
Definition DnsRecord.h:101
void SetType(const RecordType &value)
Definition DnsRecord.h:103
DnsRecord & WithType(const RecordType &value)
Definition DnsRecord.h:105
AWS_SERVICEDISCOVERY_API DnsRecord()
AWS_SERVICEDISCOVERY_API DnsRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API DnsRecord(Aws::Utils::Json::JsonView jsonValue)
DnsRecord & WithType(RecordType &&value)
Definition DnsRecord.h:106
void SetType(RecordType &&value)
Definition DnsRecord.h:104
Aws::Utils::Json::JsonValue JsonValue