AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
52 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
54 inline SavingsPlansCoverage& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
55 inline SavingsPlansCoverage& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
56 inline SavingsPlansCoverage& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
57 inline SavingsPlansCoverage& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
58 inline SavingsPlansCoverage& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
59 inline SavingsPlansCoverage& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
60 inline SavingsPlansCoverage& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
61 inline SavingsPlansCoverage& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
63
65
69 inline const SavingsPlansCoverageData& GetCoverage() const{ return m_coverage; }
70 inline bool CoverageHasBeenSet() const { return m_coverageHasBeenSet; }
71 inline void SetCoverage(const SavingsPlansCoverageData& value) { m_coverageHasBeenSet = true; m_coverage = value; }
72 inline void SetCoverage(SavingsPlansCoverageData&& value) { m_coverageHasBeenSet = true; m_coverage = std::move(value); }
73 inline SavingsPlansCoverage& WithCoverage(const SavingsPlansCoverageData& value) { SetCoverage(value); return *this;}
74 inline SavingsPlansCoverage& WithCoverage(SavingsPlansCoverageData&& value) { SetCoverage(std::move(value)); return *this;}
76
78
79 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
80 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
81 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
82 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
83 inline SavingsPlansCoverage& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
84 inline SavingsPlansCoverage& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
86 private:
87
89 bool m_attributesHasBeenSet = false;
90
91 SavingsPlansCoverageData m_coverage;
92 bool m_coverageHasBeenSet = false;
93
94 DateInterval m_timePeriod;
95 bool m_timePeriodHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CostExplorer
100} // namespace Aws
SavingsPlansCoverage & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetCoverage(const SavingsPlansCoverageData &value)
SavingsPlansCoverage & AddAttributes(Aws::String &&key, const char *value)
const SavingsPlansCoverageData & GetCoverage() const
void SetCoverage(SavingsPlansCoverageData &&value)
SavingsPlansCoverage & WithTimePeriod(const DateInterval &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SavingsPlansCoverage & AddAttributes(const char *key, const char *value)
SavingsPlansCoverage & WithCoverage(const SavingsPlansCoverageData &value)
AWS_COSTEXPLORER_API SavingsPlansCoverage(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansCoverage & AddAttributes(const char *key, Aws::String &&value)
SavingsPlansCoverage & AddAttributes(const Aws::String &key, Aws::String &&value)
SavingsPlansCoverage & AddAttributes(Aws::String &&key, const Aws::String &value)
SavingsPlansCoverage & AddAttributes(Aws::String &&key, Aws::String &&value)
AWS_COSTEXPLORER_API SavingsPlansCoverage & operator=(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansCoverage & WithTimePeriod(DateInterval &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlansCoverage & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SavingsPlansCoverage & WithCoverage(SavingsPlansCoverageData &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
SavingsPlansCoverage & AddAttributes(const Aws::String &key, const Aws::String &value)
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