AWS SDK for C++  0.14.3
AWS SDK for C++
OfferingTransaction.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace DeviceFarm
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  OfferingTransaction& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const OfferingStatus& GetOfferingStatus() const{ return m_offeringStatus; }
51 
55  inline void SetOfferingStatus(const OfferingStatus& value) { m_offeringStatusHasBeenSet = true; m_offeringStatus = value; }
56 
60  inline void SetOfferingStatus(OfferingStatus&& value) { m_offeringStatusHasBeenSet = true; m_offeringStatus = value; }
61 
65  inline OfferingTransaction& WithOfferingStatus(const OfferingStatus& value) { SetOfferingStatus(value); return *this;}
66 
70  inline OfferingTransaction& WithOfferingStatus(OfferingStatus&& value) { SetOfferingStatus(value); return *this;}
71 
75  inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
76 
80  inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
81 
85  inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
86 
90  inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
91 
95  inline OfferingTransaction& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
96 
100  inline OfferingTransaction& WithTransactionId(Aws::String&& value) { SetTransactionId(value); return *this;}
101 
105  inline OfferingTransaction& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
106 
110  inline const Aws::Utils::DateTime& GetCreatedOn() const{ return m_createdOn; }
111 
115  inline void SetCreatedOn(const Aws::Utils::DateTime& value) { m_createdOnHasBeenSet = true; m_createdOn = value; }
116 
120  inline void SetCreatedOn(Aws::Utils::DateTime&& value) { m_createdOnHasBeenSet = true; m_createdOn = value; }
121 
125  inline OfferingTransaction& WithCreatedOn(const Aws::Utils::DateTime& value) { SetCreatedOn(value); return *this;}
126 
130  inline OfferingTransaction& WithCreatedOn(Aws::Utils::DateTime&& value) { SetCreatedOn(value); return *this;}
131 
135  inline const MonetaryAmount& GetCost() const{ return m_cost; }
136 
140  inline void SetCost(const MonetaryAmount& value) { m_costHasBeenSet = true; m_cost = value; }
141 
145  inline void SetCost(MonetaryAmount&& value) { m_costHasBeenSet = true; m_cost = value; }
146 
150  inline OfferingTransaction& WithCost(const MonetaryAmount& value) { SetCost(value); return *this;}
151 
155  inline OfferingTransaction& WithCost(MonetaryAmount&& value) { SetCost(value); return *this;}
156 
157  private:
158  OfferingStatus m_offeringStatus;
159  bool m_offeringStatusHasBeenSet;
160  Aws::String m_transactionId;
161  bool m_transactionIdHasBeenSet;
162  Aws::Utils::DateTime m_createdOn;
163  bool m_createdOnHasBeenSet;
164  MonetaryAmount m_cost;
165  bool m_costHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace DeviceFarm
170 } // namespace Aws
#define AWS_DEVICEFARM_API
OfferingTransaction & WithTransactionId(const char *value)
OfferingTransaction & WithCost(MonetaryAmount &&value)
OfferingTransaction & WithOfferingStatus(const OfferingStatus &value)
const Aws::Utils::DateTime & GetCreatedOn() const
void SetCreatedOn(const Aws::Utils::DateTime &value)
OfferingTransaction & WithCreatedOn(Aws::Utils::DateTime &&value)
void SetOfferingStatus(OfferingStatus &&value)
void SetCost(const MonetaryAmount &value)
const OfferingStatus & GetOfferingStatus() const
OfferingTransaction & WithTransactionId(const Aws::String &value)
OfferingTransaction & WithCreatedOn(const Aws::Utils::DateTime &value)
void SetOfferingStatus(const OfferingStatus &value)
OfferingTransaction & WithCost(const MonetaryAmount &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
OfferingTransaction & WithOfferingStatus(OfferingStatus &&value)
OfferingTransaction & WithTransactionId(Aws::String &&value)
void SetTransactionId(const Aws::String &value)
const Aws::String & GetTransactionId() const
void SetCreatedOn(Aws::Utils::DateTime &&value)
JSON (JavaScript Object Notation).