AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
DomainSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53domains/Route53Domains_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Route53Domains {
21namespace Model {
22
29 public:
30 AWS_ROUTE53DOMAINS_API DomainSummary() = default;
31 AWS_ROUTE53DOMAINS_API DomainSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ROUTE53DOMAINS_API DomainSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDomainName() const { return m_domainName; }
40 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
41 template <typename DomainNameT = Aws::String>
42 void SetDomainName(DomainNameT&& value) {
43 m_domainNameHasBeenSet = true;
44 m_domainName = std::forward<DomainNameT>(value);
45 }
46 template <typename DomainNameT = Aws::String>
47 DomainSummary& WithDomainName(DomainNameT&& value) {
48 SetDomainName(std::forward<DomainNameT>(value));
49 return *this;
50 }
52
54
57 inline bool GetAutoRenew() const { return m_autoRenew; }
58 inline bool AutoRenewHasBeenSet() const { return m_autoRenewHasBeenSet; }
59 inline void SetAutoRenew(bool value) {
60 m_autoRenewHasBeenSet = true;
61 m_autoRenew = value;
62 }
63 inline DomainSummary& WithAutoRenew(bool value) {
64 SetAutoRenew(value);
65 return *this;
66 }
68
70
74 inline bool GetTransferLock() const { return m_transferLock; }
75 inline bool TransferLockHasBeenSet() const { return m_transferLockHasBeenSet; }
76 inline void SetTransferLock(bool value) {
77 m_transferLockHasBeenSet = true;
78 m_transferLock = value;
79 }
80 inline DomainSummary& WithTransferLock(bool value) {
81 SetTransferLock(value);
82 return *this;
83 }
85
87
91 inline const Aws::Utils::DateTime& GetExpiry() const { return m_expiry; }
92 inline bool ExpiryHasBeenSet() const { return m_expiryHasBeenSet; }
93 template <typename ExpiryT = Aws::Utils::DateTime>
94 void SetExpiry(ExpiryT&& value) {
95 m_expiryHasBeenSet = true;
96 m_expiry = std::forward<ExpiryT>(value);
97 }
98 template <typename ExpiryT = Aws::Utils::DateTime>
99 DomainSummary& WithExpiry(ExpiryT&& value) {
100 SetExpiry(std::forward<ExpiryT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_domainName;
106
107 bool m_autoRenew{false};
108
109 bool m_transferLock{false};
110
111 Aws::Utils::DateTime m_expiry{};
112 bool m_domainNameHasBeenSet = false;
113 bool m_autoRenewHasBeenSet = false;
114 bool m_transferLockHasBeenSet = false;
115 bool m_expiryHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Route53Domains
120} // namespace Aws
const Aws::Utils::DateTime & GetExpiry() const
const Aws::String & GetDomainName() const
DomainSummary & WithAutoRenew(bool value)
AWS_ROUTE53DOMAINS_API DomainSummary(Aws::Utils::Json::JsonView jsonValue)
void SetDomainName(DomainNameT &&value)
AWS_ROUTE53DOMAINS_API DomainSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DomainSummary & WithTransferLock(bool value)
DomainSummary & WithExpiry(ExpiryT &&value)
DomainSummary & WithDomainName(DomainNameT &&value)
AWS_ROUTE53DOMAINS_API DomainSummary()=default
AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue