AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceBudgetEstimate.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/ResourceType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/lightsail/model/CostEstimate.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Lightsail
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_LIGHTSAIL_API ResourceBudgetEstimate() = default;
42 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetResourceName() const { return m_resourceName; }
50 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
51 template<typename ResourceNameT = Aws::String>
52 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
53 template<typename ResourceNameT = Aws::String>
54 ResourceBudgetEstimate& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
56
58
61 inline ResourceType GetResourceType() const { return m_resourceType; }
62 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
63 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
66
68
71 inline const Aws::Vector<CostEstimate>& GetCostEstimates() const { return m_costEstimates; }
72 inline bool CostEstimatesHasBeenSet() const { return m_costEstimatesHasBeenSet; }
73 template<typename CostEstimatesT = Aws::Vector<CostEstimate>>
74 void SetCostEstimates(CostEstimatesT&& value) { m_costEstimatesHasBeenSet = true; m_costEstimates = std::forward<CostEstimatesT>(value); }
75 template<typename CostEstimatesT = Aws::Vector<CostEstimate>>
76 ResourceBudgetEstimate& WithCostEstimates(CostEstimatesT&& value) { SetCostEstimates(std::forward<CostEstimatesT>(value)); return *this;}
77 template<typename CostEstimatesT = CostEstimate>
78 ResourceBudgetEstimate& AddCostEstimates(CostEstimatesT&& value) { m_costEstimatesHasBeenSet = true; m_costEstimates.emplace_back(std::forward<CostEstimatesT>(value)); return *this; }
80
82
85 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
86 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
87 template<typename StartTimeT = Aws::Utils::DateTime>
88 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
89 template<typename StartTimeT = Aws::Utils::DateTime>
90 ResourceBudgetEstimate& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
98 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
99 template<typename EndTimeT = Aws::Utils::DateTime>
100 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
101 template<typename EndTimeT = Aws::Utils::DateTime>
102 ResourceBudgetEstimate& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
104 private:
105
106 Aws::String m_resourceName;
107 bool m_resourceNameHasBeenSet = false;
108
109 ResourceType m_resourceType{ResourceType::NOT_SET};
110 bool m_resourceTypeHasBeenSet = false;
111
112 Aws::Vector<CostEstimate> m_costEstimates;
113 bool m_costEstimatesHasBeenSet = false;
114
115 Aws::Utils::DateTime m_startTime{};
116 bool m_startTimeHasBeenSet = false;
117
118 Aws::Utils::DateTime m_endTime{};
119 bool m_endTimeHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Lightsail
124} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
ResourceBudgetEstimate & WithCostEstimates(CostEstimatesT &&value)
AWS_LIGHTSAIL_API ResourceBudgetEstimate(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API ResourceBudgetEstimate & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceBudgetEstimate & WithResourceName(ResourceNameT &&value)
const Aws::Utils::DateTime & GetEndTime() const
ResourceBudgetEstimate & WithStartTime(StartTimeT &&value)
const Aws::Vector< CostEstimate > & GetCostEstimates() const
AWS_LIGHTSAIL_API ResourceBudgetEstimate()=default
ResourceBudgetEstimate & AddCostEstimates(CostEstimatesT &&value)
ResourceBudgetEstimate & WithResourceType(ResourceType value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceBudgetEstimate & WithEndTime(EndTimeT &&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