AWS SDK for C++  0.14.3
AWS SDK for C++
RecurringCharge.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 DeviceFarm
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  RecurringCharge& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const MonetaryAmount& GetCost() const{ return m_cost; }
49 
53  inline void SetCost(const MonetaryAmount& value) { m_costHasBeenSet = true; m_cost = value; }
54 
58  inline void SetCost(MonetaryAmount&& value) { m_costHasBeenSet = true; m_cost = value; }
59 
63  inline RecurringCharge& WithCost(const MonetaryAmount& value) { SetCost(value); return *this;}
64 
68  inline RecurringCharge& WithCost(MonetaryAmount&& value) { SetCost(value); return *this;}
69 
73  inline const RecurringChargeFrequency& GetFrequency() const{ return m_frequency; }
74 
78  inline void SetFrequency(const RecurringChargeFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
79 
83  inline void SetFrequency(RecurringChargeFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
84 
88  inline RecurringCharge& WithFrequency(const RecurringChargeFrequency& value) { SetFrequency(value); return *this;}
89 
93  inline RecurringCharge& WithFrequency(RecurringChargeFrequency&& value) { SetFrequency(value); return *this;}
94 
95  private:
96  MonetaryAmount m_cost;
97  bool m_costHasBeenSet;
98  RecurringChargeFrequency m_frequency;
99  bool m_frequencyHasBeenSet;
100  };
101 
102 } // namespace Model
103 } // namespace DeviceFarm
104 } // namespace Aws
const RecurringChargeFrequency & GetFrequency() const
#define AWS_DEVICEFARM_API
void SetFrequency(const RecurringChargeFrequency &value)
RecurringCharge & WithCost(MonetaryAmount &&value)
RecurringCharge & WithFrequency(RecurringChargeFrequency &&value)
void SetFrequency(RecurringChargeFrequency &&value)
const MonetaryAmount & GetCost() const
void SetCost(const MonetaryAmount &value)
RecurringCharge & WithCost(const MonetaryAmount &value)
RecurringCharge & WithFrequency(const RecurringChargeFrequency &value)
void SetCost(MonetaryAmount &&value)
JSON (JavaScript Object Notation).