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>
24namespace Sustainability {
46 template <
typename TimePeriodT = TimePeriod>
48 m_timePeriodHasBeenSet =
true;
49 m_timePeriod = std::forward<TimePeriodT>(value);
51 template <
typename TimePeriodT = TimePeriod>
64 template <
typename DimensionsValuesT = Aws::Map<Dimension, Aws::String>>
66 m_dimensionsValuesHasBeenSet =
true;
67 m_dimensionsValues = std::forward<DimensionsValuesT>(value);
69 template <
typename DimensionsValuesT = Aws::Map<Dimension, Aws::String>>
75 m_dimensionsValuesHasBeenSet =
true;
76 m_dimensionsValues.emplace(key, value);
91 template <
typename ModelVersionT = Aws::String>
93 m_modelVersionHasBeenSet =
true;
94 m_modelVersion = std::forward<ModelVersionT>(value);
96 template <
typename ModelVersionT = Aws::String>
109 template <
typename AllocationValuesT = Aws::Map<WaterAllocationType, WaterAllocation>>
111 m_allocationValuesHasBeenSet =
true;
112 m_allocationValues = std::forward<AllocationValuesT>(value);
114 template <
typename AllocationValuesT = Aws::Map<WaterAllocationType, WaterAllocation>>
120 m_allocationValuesHasBeenSet =
true;
121 m_allocationValues.emplace(key, value);
133 bool m_timePeriodHasBeenSet =
false;
134 bool m_dimensionsValuesHasBeenSet =
false;
135 bool m_modelVersionHasBeenSet =
false;
136 bool m_allocationValuesHasBeenSet =
false;
AWS_SUSTAINABILITY_API EstimatedWaterAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TimePeriodHasBeenSet() const
void SetTimePeriod(TimePeriodT &&value)
AWS_SUSTAINABILITY_API EstimatedWaterAllocation(Aws::Utils::Json::JsonView jsonValue)
EstimatedWaterAllocation & WithAllocationValues(AllocationValuesT &&value)
const Aws::Map< Dimension, Aws::String > & GetDimensionsValues() const
bool AllocationValuesHasBeenSet() const
EstimatedWaterAllocation & WithDimensionsValues(DimensionsValuesT &&value)
const TimePeriod & GetTimePeriod() const
const Aws::String & GetModelVersion() const
AWS_SUSTAINABILITY_API EstimatedWaterAllocation()=default
void SetAllocationValues(AllocationValuesT &&value)
void SetDimensionsValues(DimensionsValuesT &&value)
EstimatedWaterAllocation & AddDimensionsValues(Dimension key, Aws::String value)
bool ModelVersionHasBeenSet() const
bool DimensionsValuesHasBeenSet() const
EstimatedWaterAllocation & AddAllocationValues(WaterAllocationType key, WaterAllocation value)
void SetModelVersion(ModelVersionT &&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