AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CostEstimate.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/model/EstimateByTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LIGHTSAIL_API CostEstimate();
38 AWS_LIGHTSAIL_API CostEstimate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API CostEstimate& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetUsageType() const{ return m_usageType; }
49 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
50 inline void SetUsageType(const Aws::String& value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
51 inline void SetUsageType(Aws::String&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); }
52 inline void SetUsageType(const char* value) { m_usageTypeHasBeenSet = true; m_usageType.assign(value); }
53 inline CostEstimate& WithUsageType(const Aws::String& value) { SetUsageType(value); return *this;}
54 inline CostEstimate& WithUsageType(Aws::String&& value) { SetUsageType(std::move(value)); return *this;}
55 inline CostEstimate& WithUsageType(const char* value) { SetUsageType(value); return *this;}
57
59
62 inline const Aws::Vector<EstimateByTime>& GetResultsByTime() const{ return m_resultsByTime; }
63 inline bool ResultsByTimeHasBeenSet() const { return m_resultsByTimeHasBeenSet; }
64 inline void SetResultsByTime(const Aws::Vector<EstimateByTime>& value) { m_resultsByTimeHasBeenSet = true; m_resultsByTime = value; }
65 inline void SetResultsByTime(Aws::Vector<EstimateByTime>&& value) { m_resultsByTimeHasBeenSet = true; m_resultsByTime = std::move(value); }
66 inline CostEstimate& WithResultsByTime(const Aws::Vector<EstimateByTime>& value) { SetResultsByTime(value); return *this;}
67 inline CostEstimate& WithResultsByTime(Aws::Vector<EstimateByTime>&& value) { SetResultsByTime(std::move(value)); return *this;}
68 inline CostEstimate& AddResultsByTime(const EstimateByTime& value) { m_resultsByTimeHasBeenSet = true; m_resultsByTime.push_back(value); return *this; }
69 inline CostEstimate& AddResultsByTime(EstimateByTime&& value) { m_resultsByTimeHasBeenSet = true; m_resultsByTime.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_usageType;
74 bool m_usageTypeHasBeenSet = false;
75
76 Aws::Vector<EstimateByTime> m_resultsByTime;
77 bool m_resultsByTimeHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Lightsail
82} // namespace Aws
CostEstimate & WithResultsByTime(Aws::Vector< EstimateByTime > &&value)
const Aws::String & GetUsageType() const
void SetUsageType(const char *value)
void SetUsageType(const Aws::String &value)
CostEstimate & WithUsageType(const char *value)
void SetResultsByTime(Aws::Vector< EstimateByTime > &&value)
CostEstimate & WithResultsByTime(const Aws::Vector< EstimateByTime > &value)
CostEstimate & AddResultsByTime(const EstimateByTime &value)
void SetResultsByTime(const Aws::Vector< EstimateByTime > &value)
const Aws::Vector< EstimateByTime > & GetResultsByTime() const
CostEstimate & WithUsageType(const Aws::String &value)
AWS_LIGHTSAIL_API CostEstimate(Aws::Utils::Json::JsonView jsonValue)
void SetUsageType(Aws::String &&value)
CostEstimate & WithUsageType(Aws::String &&value)
AWS_LIGHTSAIL_API CostEstimate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
CostEstimate & AddResultsByTime(EstimateByTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue