AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SavingsPlansCoverage.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/ce/model/SavingsPlansCoverageData.h>
10#include <aws/ce/model/DateInterval.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_COSTEXPLORER_API SavingsPlansCoverage() = default;
40 AWS_COSTEXPLORER_API SavingsPlansCoverage(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
50 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
51 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
52 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
53 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
54 SavingsPlansCoverage& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
55 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
56 SavingsPlansCoverage& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
57 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
58 }
60
62
66 inline const SavingsPlansCoverageData& GetCoverage() const { return m_coverage; }
67 inline bool CoverageHasBeenSet() const { return m_coverageHasBeenSet; }
68 template<typename CoverageT = SavingsPlansCoverageData>
69 void SetCoverage(CoverageT&& value) { m_coverageHasBeenSet = true; m_coverage = std::forward<CoverageT>(value); }
70 template<typename CoverageT = SavingsPlansCoverageData>
71 SavingsPlansCoverage& WithCoverage(CoverageT&& value) { SetCoverage(std::forward<CoverageT>(value)); return *this;}
73
75
76 inline const DateInterval& GetTimePeriod() const { return m_timePeriod; }
77 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
78 template<typename TimePeriodT = DateInterval>
79 void SetTimePeriod(TimePeriodT&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::forward<TimePeriodT>(value); }
80 template<typename TimePeriodT = DateInterval>
81 SavingsPlansCoverage& WithTimePeriod(TimePeriodT&& value) { SetTimePeriod(std::forward<TimePeriodT>(value)); return *this;}
83 private:
84
86 bool m_attributesHasBeenSet = false;
87
88 SavingsPlansCoverageData m_coverage;
89 bool m_coverageHasBeenSet = false;
90
91 DateInterval m_timePeriod;
92 bool m_timePeriodHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CostExplorer
97} // namespace Aws
SavingsPlansCoverage & WithCoverage(CoverageT &&value)
const SavingsPlansCoverageData & GetCoverage() const
SavingsPlansCoverage & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_COSTEXPLORER_API SavingsPlansCoverage(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansCoverage & WithAttributes(AttributesT &&value)
AWS_COSTEXPLORER_API SavingsPlansCoverage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTEXPLORER_API SavingsPlansCoverage()=default
SavingsPlansCoverage & WithTimePeriod(TimePeriodT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue