AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CatalogItem.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/model/CatalogItemStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/outposts/model/EC2Capacity.h>
12#include <aws/outposts/model/SupportedStorageEnum.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Outposts
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_OUTPOSTS_API CatalogItem() = default;
39 AWS_OUTPOSTS_API CatalogItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OUTPOSTS_API CatalogItem& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetCatalogItemId() const { return m_catalogItemId; }
49 inline bool CatalogItemIdHasBeenSet() const { return m_catalogItemIdHasBeenSet; }
50 template<typename CatalogItemIdT = Aws::String>
51 void SetCatalogItemId(CatalogItemIdT&& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = std::forward<CatalogItemIdT>(value); }
52 template<typename CatalogItemIdT = Aws::String>
53 CatalogItem& WithCatalogItemId(CatalogItemIdT&& value) { SetCatalogItemId(std::forward<CatalogItemIdT>(value)); return *this;}
55
57
60 inline CatalogItemStatus GetItemStatus() const { return m_itemStatus; }
61 inline bool ItemStatusHasBeenSet() const { return m_itemStatusHasBeenSet; }
62 inline void SetItemStatus(CatalogItemStatus value) { m_itemStatusHasBeenSet = true; m_itemStatus = value; }
63 inline CatalogItem& WithItemStatus(CatalogItemStatus value) { SetItemStatus(value); return *this;}
65
67
70 inline const Aws::Vector<EC2Capacity>& GetEC2Capacities() const { return m_eC2Capacities; }
71 inline bool EC2CapacitiesHasBeenSet() const { return m_eC2CapacitiesHasBeenSet; }
72 template<typename EC2CapacitiesT = Aws::Vector<EC2Capacity>>
73 void SetEC2Capacities(EC2CapacitiesT&& value) { m_eC2CapacitiesHasBeenSet = true; m_eC2Capacities = std::forward<EC2CapacitiesT>(value); }
74 template<typename EC2CapacitiesT = Aws::Vector<EC2Capacity>>
75 CatalogItem& WithEC2Capacities(EC2CapacitiesT&& value) { SetEC2Capacities(std::forward<EC2CapacitiesT>(value)); return *this;}
76 template<typename EC2CapacitiesT = EC2Capacity>
77 CatalogItem& AddEC2Capacities(EC2CapacitiesT&& value) { m_eC2CapacitiesHasBeenSet = true; m_eC2Capacities.emplace_back(std::forward<EC2CapacitiesT>(value)); return *this; }
79
81
84 inline double GetPowerKva() const { return m_powerKva; }
85 inline bool PowerKvaHasBeenSet() const { return m_powerKvaHasBeenSet; }
86 inline void SetPowerKva(double value) { m_powerKvaHasBeenSet = true; m_powerKva = value; }
87 inline CatalogItem& WithPowerKva(double value) { SetPowerKva(value); return *this;}
89
91
94 inline int GetWeightLbs() const { return m_weightLbs; }
95 inline bool WeightLbsHasBeenSet() const { return m_weightLbsHasBeenSet; }
96 inline void SetWeightLbs(int value) { m_weightLbsHasBeenSet = true; m_weightLbs = value; }
97 inline CatalogItem& WithWeightLbs(int value) { SetWeightLbs(value); return *this;}
99
101
105 inline const Aws::Vector<int>& GetSupportedUplinkGbps() const { return m_supportedUplinkGbps; }
106 inline bool SupportedUplinkGbpsHasBeenSet() const { return m_supportedUplinkGbpsHasBeenSet; }
107 template<typename SupportedUplinkGbpsT = Aws::Vector<int>>
108 void SetSupportedUplinkGbps(SupportedUplinkGbpsT&& value) { m_supportedUplinkGbpsHasBeenSet = true; m_supportedUplinkGbps = std::forward<SupportedUplinkGbpsT>(value); }
109 template<typename SupportedUplinkGbpsT = Aws::Vector<int>>
110 CatalogItem& WithSupportedUplinkGbps(SupportedUplinkGbpsT&& value) { SetSupportedUplinkGbps(std::forward<SupportedUplinkGbpsT>(value)); return *this;}
111 inline CatalogItem& AddSupportedUplinkGbps(int value) { m_supportedUplinkGbpsHasBeenSet = true; m_supportedUplinkGbps.push_back(value); return *this; }
113
115
118 inline const Aws::Vector<SupportedStorageEnum>& GetSupportedStorage() const { return m_supportedStorage; }
119 inline bool SupportedStorageHasBeenSet() const { return m_supportedStorageHasBeenSet; }
120 template<typename SupportedStorageT = Aws::Vector<SupportedStorageEnum>>
121 void SetSupportedStorage(SupportedStorageT&& value) { m_supportedStorageHasBeenSet = true; m_supportedStorage = std::forward<SupportedStorageT>(value); }
122 template<typename SupportedStorageT = Aws::Vector<SupportedStorageEnum>>
123 CatalogItem& WithSupportedStorage(SupportedStorageT&& value) { SetSupportedStorage(std::forward<SupportedStorageT>(value)); return *this;}
124 inline CatalogItem& AddSupportedStorage(SupportedStorageEnum value) { m_supportedStorageHasBeenSet = true; m_supportedStorage.push_back(value); return *this; }
126 private:
127
128 Aws::String m_catalogItemId;
129 bool m_catalogItemIdHasBeenSet = false;
130
132 bool m_itemStatusHasBeenSet = false;
133
134 Aws::Vector<EC2Capacity> m_eC2Capacities;
135 bool m_eC2CapacitiesHasBeenSet = false;
136
137 double m_powerKva{0.0};
138 bool m_powerKvaHasBeenSet = false;
139
140 int m_weightLbs{0};
141 bool m_weightLbsHasBeenSet = false;
142
143 Aws::Vector<int> m_supportedUplinkGbps;
144 bool m_supportedUplinkGbpsHasBeenSet = false;
145
146 Aws::Vector<SupportedStorageEnum> m_supportedStorage;
147 bool m_supportedStorageHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Outposts
152} // namespace Aws
void SetEC2Capacities(EC2CapacitiesT &&value)
Definition CatalogItem.h:73
CatalogItem & WithEC2Capacities(EC2CapacitiesT &&value)
Definition CatalogItem.h:75
AWS_OUTPOSTS_API CatalogItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCatalogItemId(CatalogItemIdT &&value)
Definition CatalogItem.h:51
void SetSupportedStorage(SupportedStorageT &&value)
AWS_OUTPOSTS_API CatalogItem()=default
CatalogItem & AddEC2Capacities(EC2CapacitiesT &&value)
Definition CatalogItem.h:77
CatalogItem & WithSupportedUplinkGbps(SupportedUplinkGbpsT &&value)
CatalogItem & AddSupportedStorage(SupportedStorageEnum value)
CatalogItemStatus GetItemStatus() const
Definition CatalogItem.h:60
const Aws::Vector< int > & GetSupportedUplinkGbps() const
AWS_OUTPOSTS_API CatalogItem(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SupportedStorageEnum > & GetSupportedStorage() const
const Aws::String & GetCatalogItemId() const
Definition CatalogItem.h:48
CatalogItem & WithPowerKva(double value)
Definition CatalogItem.h:87
const Aws::Vector< EC2Capacity > & GetEC2Capacities() const
Definition CatalogItem.h:70
CatalogItem & WithSupportedStorage(SupportedStorageT &&value)
void SetItemStatus(CatalogItemStatus value)
Definition CatalogItem.h:62
CatalogItem & WithCatalogItemId(CatalogItemIdT &&value)
Definition CatalogItem.h:53
CatalogItem & AddSupportedUplinkGbps(int value)
CatalogItem & WithWeightLbs(int value)
Definition CatalogItem.h:97
void SetSupportedUplinkGbps(SupportedUplinkGbpsT &&value)
CatalogItem & WithItemStatus(CatalogItemStatus value)
Definition CatalogItem.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue