AWS SDK for C++  0.14.3
AWS SDK for C++
BillingRecord.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace Route53Domains
31 {
32 namespace Model
33 {
34 
36  {
37  public:
38  BillingRecord();
40  BillingRecord& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
42 
46  inline const Aws::String& GetDomainName() const{ return m_domainName; }
47 
51  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
52 
56  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
57 
61  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
62 
66  inline BillingRecord& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
67 
71  inline BillingRecord& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
72 
76  inline BillingRecord& WithDomainName(const char* value) { SetDomainName(value); return *this;}
77 
84  inline const OperationType& GetOperation() const{ return m_operation; }
85 
92  inline void SetOperation(const OperationType& value) { m_operationHasBeenSet = true; m_operation = value; }
93 
100  inline void SetOperation(OperationType&& value) { m_operationHasBeenSet = true; m_operation = value; }
101 
108  inline BillingRecord& WithOperation(const OperationType& value) { SetOperation(value); return *this;}
109 
116  inline BillingRecord& WithOperation(OperationType&& value) { SetOperation(value); return *this;}
117 
122  inline const Aws::String& GetInvoiceId() const{ return m_invoiceId; }
123 
128  inline void SetInvoiceId(const Aws::String& value) { m_invoiceIdHasBeenSet = true; m_invoiceId = value; }
129 
134  inline void SetInvoiceId(Aws::String&& value) { m_invoiceIdHasBeenSet = true; m_invoiceId = value; }
135 
140  inline void SetInvoiceId(const char* value) { m_invoiceIdHasBeenSet = true; m_invoiceId.assign(value); }
141 
146  inline BillingRecord& WithInvoiceId(const Aws::String& value) { SetInvoiceId(value); return *this;}
147 
152  inline BillingRecord& WithInvoiceId(Aws::String&& value) { SetInvoiceId(value); return *this;}
153 
158  inline BillingRecord& WithInvoiceId(const char* value) { SetInvoiceId(value); return *this;}
159 
164  inline const Aws::Utils::DateTime& GetBillDate() const{ return m_billDate; }
165 
170  inline void SetBillDate(const Aws::Utils::DateTime& value) { m_billDateHasBeenSet = true; m_billDate = value; }
171 
176  inline void SetBillDate(Aws::Utils::DateTime&& value) { m_billDateHasBeenSet = true; m_billDate = value; }
177 
182  inline BillingRecord& WithBillDate(const Aws::Utils::DateTime& value) { SetBillDate(value); return *this;}
183 
188  inline BillingRecord& WithBillDate(Aws::Utils::DateTime&& value) { SetBillDate(value); return *this;}
189 
194  inline double GetPrice() const{ return m_price; }
195 
200  inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
201 
206  inline BillingRecord& WithPrice(double value) { SetPrice(value); return *this;}
207 
208  private:
209  Aws::String m_domainName;
210  bool m_domainNameHasBeenSet;
211  OperationType m_operation;
212  bool m_operationHasBeenSet;
213  Aws::String m_invoiceId;
214  bool m_invoiceIdHasBeenSet;
215  Aws::Utils::DateTime m_billDate;
216  bool m_billDateHasBeenSet;
217  double m_price;
218  bool m_priceHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace Route53Domains
223 } // namespace Aws
void SetOperation(const OperationType &value)
Definition: BillingRecord.h:92
BillingRecord & WithDomainName(Aws::String &&value)
Definition: BillingRecord.h:71
BillingRecord & WithPrice(double value)
void SetInvoiceId(const Aws::String &value)
BillingRecord & WithBillDate(Aws::Utils::DateTime &&value)
const Aws::String & GetInvoiceId() const
const Aws::String & GetDomainName() const
Definition: BillingRecord.h:46
void SetBillDate(Aws::Utils::DateTime &&value)
#define AWS_ROUTE53DOMAINS_API
const OperationType & GetOperation() const
Definition: BillingRecord.h:84
BillingRecord & WithInvoiceId(Aws::String &&value)
BillingRecord & WithBillDate(const Aws::Utils::DateTime &value)
void SetOperation(OperationType &&value)
BillingRecord & WithDomainName(const Aws::String &value)
Definition: BillingRecord.h:66
const Aws::Utils::DateTime & GetBillDate() const
BillingRecord & WithDomainName(const char *value)
Definition: BillingRecord.h:76
void SetInvoiceId(Aws::String &&value)
void SetBillDate(const Aws::Utils::DateTime &value)
BillingRecord & WithInvoiceId(const char *value)
BillingRecord & WithOperation(OperationType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDomainName(Aws::String &&value)
Definition: BillingRecord.h:56
BillingRecord & WithInvoiceId(const Aws::String &value)
BillingRecord & WithOperation(const OperationType &value)
void SetDomainName(const Aws::String &value)
Definition: BillingRecord.h:51
JSON (JavaScript Object Notation).