AWS SDK for C++  1.9.159
AWS SDK for C++
DnsRecord.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ServiceDiscovery
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
100  inline const RecordType& GetType() const{ return m_type; }
101 
160  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
161 
220  inline void SetType(const RecordType& value) { m_typeHasBeenSet = true; m_type = value; }
221 
280  inline void SetType(RecordType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
281 
340  inline DnsRecord& WithType(const RecordType& value) { SetType(value); return *this;}
341 
400  inline DnsRecord& WithType(RecordType&& value) { SetType(std::move(value)); return *this;}
401 
402 
414  inline long long GetTTL() const{ return m_tTL; }
415 
427  inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
428 
440  inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
441 
453  inline DnsRecord& WithTTL(long long value) { SetTTL(value); return *this;}
454 
455  private:
456 
457  RecordType m_type;
458  bool m_typeHasBeenSet;
459 
460  long long m_tTL;
461  bool m_tTLHasBeenSet;
462  };
463 
464 } // namespace Model
465 } // namespace ServiceDiscovery
466 } // namespace Aws
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::DnsRecord::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::DnsRecord
Definition: DnsRecord.h:34
Aws::ServiceDiscovery::Model::DnsRecord::SetTTL
void SetTTL(long long value)
Definition: DnsRecord.h:440
Aws::ServiceDiscovery::Model::DnsRecord::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: DnsRecord.h:160
Aws::ServiceDiscovery::Model::DnsRecord::SetType
void SetType(const RecordType &value)
Definition: DnsRecord.h:220
Aws::ServiceDiscovery::Model::DnsRecord::TTLHasBeenSet
bool TTLHasBeenSet() const
Definition: DnsRecord.h:427
Aws::ServiceDiscovery::Model::DnsRecord::operator=
DnsRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
RecordType.h
Aws::ServiceDiscovery::Model::DnsRecord::DnsRecord
DnsRecord(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::DnsRecord::DnsRecord
DnsRecord()
Aws::ServiceDiscovery::Model::DnsRecord::GetTTL
long long GetTTL() const
Definition: DnsRecord.h:414
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::DnsRecord::GetType
const RecordType & GetType() const
Definition: DnsRecord.h:100
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ServiceDiscovery::Model::DnsRecord::WithType
DnsRecord & WithType(const RecordType &value)
Definition: DnsRecord.h:340
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::DnsRecord::WithTTL
DnsRecord & WithTTL(long long value)
Definition: DnsRecord.h:453
Aws::ServiceDiscovery::Model::DnsRecord::SetType
void SetType(RecordType &&value)
Definition: DnsRecord.h:280
Aws::ServiceDiscovery::Model::RecordType
RecordType
Definition: RecordType.h:17
Aws::ServiceDiscovery::Model::DnsRecord::WithType
DnsRecord & WithType(RecordType &&value)
Definition: DnsRecord.h:400