AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ElastiCacheInstanceDetails.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostExplorer
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COSTEXPLORER_API ElastiCacheInstanceDetails() = default;
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetFamily() const { return m_family; }
46 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
47 template<typename FamilyT = Aws::String>
48 void SetFamily(FamilyT&& value) { m_familyHasBeenSet = true; m_family = std::forward<FamilyT>(value); }
49 template<typename FamilyT = Aws::String>
50 ElastiCacheInstanceDetails& WithFamily(FamilyT&& value) { SetFamily(std::forward<FamilyT>(value)); return *this;}
52
54
57 inline const Aws::String& GetNodeType() const { return m_nodeType; }
58 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
59 template<typename NodeTypeT = Aws::String>
60 void SetNodeType(NodeTypeT&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::forward<NodeTypeT>(value); }
61 template<typename NodeTypeT = Aws::String>
62 ElastiCacheInstanceDetails& WithNodeType(NodeTypeT&& value) { SetNodeType(std::forward<NodeTypeT>(value)); return *this;}
64
66
69 inline const Aws::String& GetRegion() const { return m_region; }
70 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
71 template<typename RegionT = Aws::String>
72 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
73 template<typename RegionT = Aws::String>
74 ElastiCacheInstanceDetails& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
76
78
81 inline const Aws::String& GetProductDescription() const { return m_productDescription; }
82 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
83 template<typename ProductDescriptionT = Aws::String>
84 void SetProductDescription(ProductDescriptionT&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::forward<ProductDescriptionT>(value); }
85 template<typename ProductDescriptionT = Aws::String>
86 ElastiCacheInstanceDetails& WithProductDescription(ProductDescriptionT&& value) { SetProductDescription(std::forward<ProductDescriptionT>(value)); return *this;}
88
90
94 inline bool GetCurrentGeneration() const { return m_currentGeneration; }
95 inline bool CurrentGenerationHasBeenSet() const { return m_currentGenerationHasBeenSet; }
96 inline void SetCurrentGeneration(bool value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = value; }
97 inline ElastiCacheInstanceDetails& WithCurrentGeneration(bool value) { SetCurrentGeneration(value); return *this;}
99
101
104 inline bool GetSizeFlexEligible() const { return m_sizeFlexEligible; }
105 inline bool SizeFlexEligibleHasBeenSet() const { return m_sizeFlexEligibleHasBeenSet; }
106 inline void SetSizeFlexEligible(bool value) { m_sizeFlexEligibleHasBeenSet = true; m_sizeFlexEligible = value; }
107 inline ElastiCacheInstanceDetails& WithSizeFlexEligible(bool value) { SetSizeFlexEligible(value); return *this;}
109 private:
110
111 Aws::String m_family;
112 bool m_familyHasBeenSet = false;
113
114 Aws::String m_nodeType;
115 bool m_nodeTypeHasBeenSet = false;
116
117 Aws::String m_region;
118 bool m_regionHasBeenSet = false;
119
120 Aws::String m_productDescription;
121 bool m_productDescriptionHasBeenSet = false;
122
123 bool m_currentGeneration{false};
124 bool m_currentGenerationHasBeenSet = false;
125
126 bool m_sizeFlexEligible{false};
127 bool m_sizeFlexEligibleHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CostExplorer
132} // namespace Aws
ElastiCacheInstanceDetails & WithCurrentGeneration(bool value)
ElastiCacheInstanceDetails & WithRegion(RegionT &&value)
ElastiCacheInstanceDetails & WithSizeFlexEligible(bool value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTEXPLORER_API ElastiCacheInstanceDetails(Aws::Utils::Json::JsonView jsonValue)
ElastiCacheInstanceDetails & WithProductDescription(ProductDescriptionT &&value)
AWS_COSTEXPLORER_API ElastiCacheInstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API ElastiCacheInstanceDetails()=default
ElastiCacheInstanceDetails & WithNodeType(NodeTypeT &&value)
ElastiCacheInstanceDetails & WithFamily(FamilyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue