AWS SDK for C++  0.14.3
AWS SDK for C++
DeviceMinutes.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
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace DeviceFarm
28 {
29 namespace Model
30 {
31 
37  {
38  public:
39  DeviceMinutes();
41  DeviceMinutes& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
48  inline double GetTotal() const{ return m_total; }
49 
54  inline void SetTotal(double value) { m_totalHasBeenSet = true; m_total = value; }
55 
60  inline DeviceMinutes& WithTotal(double value) { SetTotal(value); return *this;}
61 
66  inline double GetMetered() const{ return m_metered; }
67 
72  inline void SetMetered(double value) { m_meteredHasBeenSet = true; m_metered = value; }
73 
78  inline DeviceMinutes& WithMetered(double value) { SetMetered(value); return *this;}
79 
84  inline double GetUnmetered() const{ return m_unmetered; }
85 
90  inline void SetUnmetered(double value) { m_unmeteredHasBeenSet = true; m_unmetered = value; }
91 
96  inline DeviceMinutes& WithUnmetered(double value) { SetUnmetered(value); return *this;}
97 
98  private:
99  double m_total;
100  bool m_totalHasBeenSet;
101  double m_metered;
102  bool m_meteredHasBeenSet;
103  double m_unmetered;
104  bool m_unmeteredHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace DeviceFarm
109 } // namespace Aws
#define AWS_DEVICEFARM_API
DeviceMinutes & WithMetered(double value)
Definition: DeviceMinutes.h:78
DeviceMinutes & WithUnmetered(double value)
Definition: DeviceMinutes.h:96
DeviceMinutes & WithTotal(double value)
Definition: DeviceMinutes.h:60
JSON (JavaScript Object Notation).