AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
52 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
53 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
54 inline ResourceBudgetEstimate& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
55 inline ResourceBudgetEstimate& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
56 inline ResourceBudgetEstimate& WithResourceName(const char* value) { SetResourceName(value); return *this;}
58
60
63 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
64 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
65 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
66 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
67 inline ResourceBudgetEstimate& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
68 inline ResourceBudgetEstimate& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
70
72
75 inline const Aws::Vector<CostEstimate>& GetCostEstimates() const{ return m_costEstimates; }
76 inline bool CostEstimatesHasBeenSet() const { return m_costEstimatesHasBeenSet; }
77 inline void SetCostEstimates(const Aws::Vector<CostEstimate>& value) { m_costEstimatesHasBeenSet = true; m_costEstimates = value; }
78 inline void SetCostEstimates(Aws::Vector<CostEstimate>&& value) { m_costEstimatesHasBeenSet = true; m_costEstimates = std::move(value); }
80 inline ResourceBudgetEstimate& WithCostEstimates(Aws::Vector<CostEstimate>&& value) { SetCostEstimates(std::move(value)); return *this;}
81 inline ResourceBudgetEstimate& AddCostEstimates(const CostEstimate& value) { m_costEstimatesHasBeenSet = true; m_costEstimates.push_back(value); return *this; }
82 inline ResourceBudgetEstimate& AddCostEstimates(CostEstimate&& value) { m_costEstimatesHasBeenSet = true; m_costEstimates.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
90 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
91 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
92 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
93 inline ResourceBudgetEstimate& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
94 inline ResourceBudgetEstimate& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
102 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
103 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
104 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
105 inline ResourceBudgetEstimate& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
106 inline ResourceBudgetEstimate& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_resourceName;
111 bool m_resourceNameHasBeenSet = false;
112
113 ResourceType m_resourceType;
114 bool m_resourceTypeHasBeenSet = false;
115
116 Aws::Vector<CostEstimate> m_costEstimates;
117 bool m_costEstimatesHasBeenSet = false;
118
119 Aws::Utils::DateTime m_startTime;
120 bool m_startTimeHasBeenSet = false;
121
122 Aws::Utils::DateTime m_endTime;
123 bool m_endTimeHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Lightsail
128} // namespace Aws
ResourceBudgetEstimate & WithResourceName(Aws::String &&value)
ResourceBudgetEstimate & AddCostEstimates(CostEstimate &&value)
const Aws::Utils::DateTime & GetStartTime() const
ResourceBudgetEstimate & WithResourceName(const Aws::String &value)
ResourceBudgetEstimate & WithCostEstimates(Aws::Vector< CostEstimate > &&value)
AWS_LIGHTSAIL_API ResourceBudgetEstimate(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API ResourceBudgetEstimate & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceBudgetEstimate & WithResourceName(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTime() const
void SetCostEstimates(Aws::Vector< CostEstimate > &&value)
const Aws::Vector< CostEstimate > & GetCostEstimates() const
ResourceBudgetEstimate & WithEndTime(Aws::Utils::DateTime &&value)
ResourceBudgetEstimate & WithCostEstimates(const Aws::Vector< CostEstimate > &value)
void SetCostEstimates(const Aws::Vector< CostEstimate > &value)
ResourceBudgetEstimate & WithResourceType(ResourceType &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
ResourceBudgetEstimate & WithStartTime(const Aws::Utils::DateTime &value)
ResourceBudgetEstimate & WithEndTime(const Aws::Utils::DateTime &value)
ResourceBudgetEstimate & WithResourceType(const ResourceType &value)
ResourceBudgetEstimate & AddCostEstimates(const CostEstimate &value)
void SetStartTime(Aws::Utils::DateTime &&value)
ResourceBudgetEstimate & WithStartTime(Aws::Utils::DateTime &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue