AWS SDK for C++  0.14.3
AWS SDK for C++
OfferingStatus.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 DeviceFarm
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  OfferingStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const OfferingTransactionType& GetType() const{ return m_type; }
50 
54  inline void SetType(const OfferingTransactionType& value) { m_typeHasBeenSet = true; m_type = value; }
55 
59  inline void SetType(OfferingTransactionType&& value) { m_typeHasBeenSet = true; m_type = value; }
60 
64  inline OfferingStatus& WithType(const OfferingTransactionType& value) { SetType(value); return *this;}
65 
69  inline OfferingStatus& WithType(OfferingTransactionType&& value) { SetType(value); return *this;}
70 
74  inline const Offering& GetOffering() const{ return m_offering; }
75 
79  inline void SetOffering(const Offering& value) { m_offeringHasBeenSet = true; m_offering = value; }
80 
84  inline void SetOffering(Offering&& value) { m_offeringHasBeenSet = true; m_offering = value; }
85 
89  inline OfferingStatus& WithOffering(const Offering& value) { SetOffering(value); return *this;}
90 
94  inline OfferingStatus& WithOffering(Offering&& value) { SetOffering(value); return *this;}
95 
99  inline int GetQuantity() const{ return m_quantity; }
100 
104  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
105 
109  inline OfferingStatus& WithQuantity(int value) { SetQuantity(value); return *this;}
110 
114  inline const Aws::Utils::DateTime& GetEffectiveOn() const{ return m_effectiveOn; }
115 
119  inline void SetEffectiveOn(const Aws::Utils::DateTime& value) { m_effectiveOnHasBeenSet = true; m_effectiveOn = value; }
120 
124  inline void SetEffectiveOn(Aws::Utils::DateTime&& value) { m_effectiveOnHasBeenSet = true; m_effectiveOn = value; }
125 
129  inline OfferingStatus& WithEffectiveOn(const Aws::Utils::DateTime& value) { SetEffectiveOn(value); return *this;}
130 
134  inline OfferingStatus& WithEffectiveOn(Aws::Utils::DateTime&& value) { SetEffectiveOn(value); return *this;}
135 
136  private:
138  bool m_typeHasBeenSet;
139  Offering m_offering;
140  bool m_offeringHasBeenSet;
141  int m_quantity;
142  bool m_quantityHasBeenSet;
143  Aws::Utils::DateTime m_effectiveOn;
144  bool m_effectiveOnHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace DeviceFarm
149 } // namespace Aws
#define AWS_DEVICEFARM_API
OfferingStatus & WithOffering(Offering &&value)
OfferingStatus & WithOffering(const Offering &value)
const Offering & GetOffering() const
OfferingStatus & WithType(const OfferingTransactionType &value)
OfferingStatus & WithEffectiveOn(const Aws::Utils::DateTime &value)
OfferingStatus & WithType(OfferingTransactionType &&value)
OfferingStatus & WithEffectiveOn(Aws::Utils::DateTime &&value)
void SetType(OfferingTransactionType &&value)
const OfferingTransactionType & GetType() const
void SetEffectiveOn(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEffectiveOn() const
void SetOffering(const Offering &value)
void SetType(const OfferingTransactionType &value)
void SetEffectiveOn(Aws::Utils::DateTime &&value)
OfferingStatus & WithQuantity(int value)
JSON (JavaScript Object Notation).