AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename UsageTypeT = Aws::String>
51 void SetUsageType(UsageTypeT&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::forward<UsageTypeT>(value); }
52 template<typename UsageTypeT = Aws::String>
53 CostEstimate& WithUsageType(UsageTypeT&& value) { SetUsageType(std::forward<UsageTypeT>(value)); return *this;}
55
57
60 inline const Aws::Vector<EstimateByTime>& GetResultsByTime() const { return m_resultsByTime; }
61 inline bool ResultsByTimeHasBeenSet() const { return m_resultsByTimeHasBeenSet; }
62 template<typename ResultsByTimeT = Aws::Vector<EstimateByTime>>
63 void SetResultsByTime(ResultsByTimeT&& value) { m_resultsByTimeHasBeenSet = true; m_resultsByTime = std::forward<ResultsByTimeT>(value); }
64 template<typename ResultsByTimeT = Aws::Vector<EstimateByTime>>
65 CostEstimate& WithResultsByTime(ResultsByTimeT&& value) { SetResultsByTime(std::forward<ResultsByTimeT>(value)); return *this;}
66 template<typename ResultsByTimeT = EstimateByTime>
67 CostEstimate& AddResultsByTime(ResultsByTimeT&& value) { m_resultsByTimeHasBeenSet = true; m_resultsByTime.emplace_back(std::forward<ResultsByTimeT>(value)); return *this; }
69 private:
70
71 Aws::String m_usageType;
72 bool m_usageTypeHasBeenSet = false;
73
74 Aws::Vector<EstimateByTime> m_resultsByTime;
75 bool m_resultsByTimeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Lightsail
80} // namespace Aws
CostEstimate & WithResultsByTime(ResultsByTimeT &&value)
const Aws::String & GetUsageType() const
const Aws::Vector< EstimateByTime > & GetResultsByTime() const
AWS_LIGHTSAIL_API CostEstimate()=default
void SetUsageType(UsageTypeT &&value)
AWS_LIGHTSAIL_API CostEstimate(Aws::Utils::Json::JsonView jsonValue)
CostEstimate & WithUsageType(UsageTypeT &&value)
AWS_LIGHTSAIL_API CostEstimate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
CostEstimate & AddResultsByTime(ResultsByTimeT &&value)
void SetResultsByTime(ResultsByTimeT &&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