AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
EstimatedWaterAllocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sustainability/Sustainability_EXPORTS.h>
10#include <aws/sustainability/model/Dimension.h>
11#include <aws/sustainability/model/TimePeriod.h>
12#include <aws/sustainability/model/WaterAllocation.h>
13#include <aws/sustainability/model/WaterAllocationType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Sustainability {
25namespace Model {
26
34 public:
35 AWS_SUSTAINABILITY_API EstimatedWaterAllocation() = default;
36 AWS_SUSTAINABILITY_API EstimatedWaterAllocation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SUSTAINABILITY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const TimePeriod& GetTimePeriod() const { return m_timePeriod; }
45 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
46 template <typename TimePeriodT = TimePeriod>
47 void SetTimePeriod(TimePeriodT&& value) {
48 m_timePeriodHasBeenSet = true;
49 m_timePeriod = std::forward<TimePeriodT>(value);
50 }
51 template <typename TimePeriodT = TimePeriod>
53 SetTimePeriod(std::forward<TimePeriodT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Map<Dimension, Aws::String>& GetDimensionsValues() const { return m_dimensionsValues; }
63 inline bool DimensionsValuesHasBeenSet() const { return m_dimensionsValuesHasBeenSet; }
64 template <typename DimensionsValuesT = Aws::Map<Dimension, Aws::String>>
65 void SetDimensionsValues(DimensionsValuesT&& value) {
66 m_dimensionsValuesHasBeenSet = true;
67 m_dimensionsValues = std::forward<DimensionsValuesT>(value);
68 }
69 template <typename DimensionsValuesT = Aws::Map<Dimension, Aws::String>>
70 EstimatedWaterAllocation& WithDimensionsValues(DimensionsValuesT&& value) {
71 SetDimensionsValues(std::forward<DimensionsValuesT>(value));
72 return *this;
73 }
75 m_dimensionsValuesHasBeenSet = true;
76 m_dimensionsValues.emplace(key, value);
77 return *this;
78 }
80
82
89 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
90 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
91 template <typename ModelVersionT = Aws::String>
92 void SetModelVersion(ModelVersionT&& value) {
93 m_modelVersionHasBeenSet = true;
94 m_modelVersion = std::forward<ModelVersionT>(value);
95 }
96 template <typename ModelVersionT = Aws::String>
98 SetModelVersion(std::forward<ModelVersionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Map<WaterAllocationType, WaterAllocation>& GetAllocationValues() const { return m_allocationValues; }
108 inline bool AllocationValuesHasBeenSet() const { return m_allocationValuesHasBeenSet; }
109 template <typename AllocationValuesT = Aws::Map<WaterAllocationType, WaterAllocation>>
110 void SetAllocationValues(AllocationValuesT&& value) {
111 m_allocationValuesHasBeenSet = true;
112 m_allocationValues = std::forward<AllocationValuesT>(value);
113 }
114 template <typename AllocationValuesT = Aws::Map<WaterAllocationType, WaterAllocation>>
115 EstimatedWaterAllocation& WithAllocationValues(AllocationValuesT&& value) {
116 SetAllocationValues(std::forward<AllocationValuesT>(value));
117 return *this;
118 }
120 m_allocationValuesHasBeenSet = true;
121 m_allocationValues.emplace(key, value);
122 return *this;
123 }
125 private:
126 TimePeriod m_timePeriod;
127
128 Aws::Map<Dimension, Aws::String> m_dimensionsValues;
129
130 Aws::String m_modelVersion;
131
133 bool m_timePeriodHasBeenSet = false;
134 bool m_dimensionsValuesHasBeenSet = false;
135 bool m_modelVersionHasBeenSet = false;
136 bool m_allocationValuesHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace Sustainability
141} // namespace Aws
AWS_SUSTAINABILITY_API EstimatedWaterAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SUSTAINABILITY_API EstimatedWaterAllocation(Aws::Utils::Json::JsonView jsonValue)
EstimatedWaterAllocation & WithAllocationValues(AllocationValuesT &&value)
const Aws::Map< Dimension, Aws::String > & GetDimensionsValues() const
EstimatedWaterAllocation & WithDimensionsValues(DimensionsValuesT &&value)
AWS_SUSTAINABILITY_API EstimatedWaterAllocation()=default
EstimatedWaterAllocation & AddDimensionsValues(Dimension key, Aws::String value)
EstimatedWaterAllocation & AddAllocationValues(WaterAllocationType key, WaterAllocation value)
EstimatedWaterAllocation & WithModelVersion(ModelVersionT &&value)
EstimatedWaterAllocation & WithTimePeriod(TimePeriodT &&value)
const Aws::Map< WaterAllocationType, WaterAllocation > & GetAllocationValues() const
AWS_SUSTAINABILITY_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue