AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReservationCoverageGroup.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/Coverage.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostExplorer {
22namespace Model {
23
31 public:
32 AWS_COSTEXPLORER_API ReservationCoverageGroup() = default;
35 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
42 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
43 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
44 void SetAttributes(AttributesT&& value) {
45 m_attributesHasBeenSet = true;
46 m_attributes = std::forward<AttributesT>(value);
47 }
48 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
50 SetAttributes(std::forward<AttributesT>(value));
51 return *this;
52 }
53 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
54 ReservationCoverageGroup& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
55 m_attributesHasBeenSet = true;
56 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
57 return *this;
58 }
60
62
65 inline const Coverage& GetCoverage() const { return m_coverage; }
66 inline bool CoverageHasBeenSet() const { return m_coverageHasBeenSet; }
67 template <typename CoverageT = Coverage>
68 void SetCoverage(CoverageT&& value) {
69 m_coverageHasBeenSet = true;
70 m_coverage = std::forward<CoverageT>(value);
71 }
72 template <typename CoverageT = Coverage>
74 SetCoverage(std::forward<CoverageT>(value));
75 return *this;
76 }
78 private:
80
81 Coverage m_coverage;
82 bool m_attributesHasBeenSet = false;
83 bool m_coverageHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace CostExplorer
88} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ReservationCoverageGroup & WithAttributes(AttributesT &&value)
AWS_COSTEXPLORER_API ReservationCoverageGroup()=default
ReservationCoverageGroup & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
ReservationCoverageGroup & WithCoverage(CoverageT &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTEXPLORER_API ReservationCoverageGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API ReservationCoverageGroup(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue