AWS SDK for C++  0.12.9
AWS SDK for C++
DomainSummary.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Route53Domains
30 {
31 namespace Model
32 {
33 
35  {
36  public:
37  DomainSummary();
39  DomainSummary& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
41 
45  inline const Aws::String& GetDomainName() const{ return m_domainName; }
46 
50  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
51 
55  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
56 
60  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
61 
65  inline DomainSummary& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
66 
70  inline DomainSummary& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
71 
75  inline DomainSummary& WithDomainName(const char* value) { SetDomainName(value); return *this;}
76 
81  inline bool GetAutoRenew() const{ return m_autoRenew; }
82 
87  inline void SetAutoRenew(bool value) { m_autoRenewHasBeenSet = true; m_autoRenew = value; }
88 
93  inline DomainSummary& WithAutoRenew(bool value) { SetAutoRenew(value); return *this;}
94 
100  inline bool GetTransferLock() const{ return m_transferLock; }
101 
107  inline void SetTransferLock(bool value) { m_transferLockHasBeenSet = true; m_transferLock = value; }
108 
114  inline DomainSummary& WithTransferLock(bool value) { SetTransferLock(value); return *this;}
115 
120  inline const Aws::Utils::DateTime& GetExpiry() const{ return m_expiry; }
121 
126  inline void SetExpiry(const Aws::Utils::DateTime& value) { m_expiryHasBeenSet = true; m_expiry = value; }
127 
132  inline void SetExpiry(Aws::Utils::DateTime&& value) { m_expiryHasBeenSet = true; m_expiry = value; }
133 
138  inline DomainSummary& WithExpiry(const Aws::Utils::DateTime& value) { SetExpiry(value); return *this;}
139 
144  inline DomainSummary& WithExpiry(Aws::Utils::DateTime&& value) { SetExpiry(value); return *this;}
145 
146  private:
147  Aws::String m_domainName;
148  bool m_domainNameHasBeenSet;
149  bool m_autoRenew;
150  bool m_autoRenewHasBeenSet;
151  bool m_transferLock;
152  bool m_transferLockHasBeenSet;
153  Aws::Utils::DateTime m_expiry;
154  bool m_expiryHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace Route53Domains
159 } // namespace Aws
DomainSummary & WithAutoRenew(bool value)
Definition: DomainSummary.h:93
DomainSummary & WithDomainName(const Aws::String &value)
Definition: DomainSummary.h:65
#define AWS_ROUTE53DOMAINS_API
DomainSummary & WithExpiry(Aws::Utils::DateTime &&value)
void SetExpiry(const Aws::Utils::DateTime &value)
const Aws::String & GetDomainName() const
Definition: DomainSummary.h:45
DomainSummary & WithExpiry(const Aws::Utils::DateTime &value)
DomainSummary & WithTransferLock(bool value)
void SetDomainName(const Aws::String &value)
Definition: DomainSummary.h:50
DomainSummary & WithDomainName(Aws::String &&value)
Definition: DomainSummary.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetExpiry() const
DomainSummary & WithDomainName(const char *value)
Definition: DomainSummary.h:75
void SetExpiry(Aws::Utils::DateTime &&value)
void SetDomainName(Aws::String &&value)
Definition: DomainSummary.h:55
JSON (JavaScript Object Notation).