AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCatalogItemId(const Aws::String& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = value; }
51 inline void SetCatalogItemId(Aws::String&& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = std::move(value); }
52 inline void SetCatalogItemId(const char* value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId.assign(value); }
53 inline CatalogItem& WithCatalogItemId(const Aws::String& value) { SetCatalogItemId(value); return *this;}
54 inline CatalogItem& WithCatalogItemId(Aws::String&& value) { SetCatalogItemId(std::move(value)); return *this;}
55 inline CatalogItem& WithCatalogItemId(const char* value) { SetCatalogItemId(value); return *this;}
57
59
62 inline const CatalogItemStatus& GetItemStatus() const{ return m_itemStatus; }
63 inline bool ItemStatusHasBeenSet() const { return m_itemStatusHasBeenSet; }
64 inline void SetItemStatus(const CatalogItemStatus& value) { m_itemStatusHasBeenSet = true; m_itemStatus = value; }
65 inline void SetItemStatus(CatalogItemStatus&& value) { m_itemStatusHasBeenSet = true; m_itemStatus = std::move(value); }
66 inline CatalogItem& WithItemStatus(const CatalogItemStatus& value) { SetItemStatus(value); return *this;}
67 inline CatalogItem& WithItemStatus(CatalogItemStatus&& value) { SetItemStatus(std::move(value)); return *this;}
69
71
74 inline const Aws::Vector<EC2Capacity>& GetEC2Capacities() const{ return m_eC2Capacities; }
75 inline bool EC2CapacitiesHasBeenSet() const { return m_eC2CapacitiesHasBeenSet; }
76 inline void SetEC2Capacities(const Aws::Vector<EC2Capacity>& value) { m_eC2CapacitiesHasBeenSet = true; m_eC2Capacities = value; }
77 inline void SetEC2Capacities(Aws::Vector<EC2Capacity>&& value) { m_eC2CapacitiesHasBeenSet = true; m_eC2Capacities = std::move(value); }
78 inline CatalogItem& WithEC2Capacities(const Aws::Vector<EC2Capacity>& value) { SetEC2Capacities(value); return *this;}
79 inline CatalogItem& WithEC2Capacities(Aws::Vector<EC2Capacity>&& value) { SetEC2Capacities(std::move(value)); return *this;}
80 inline CatalogItem& AddEC2Capacities(const EC2Capacity& value) { m_eC2CapacitiesHasBeenSet = true; m_eC2Capacities.push_back(value); return *this; }
81 inline CatalogItem& AddEC2Capacities(EC2Capacity&& value) { m_eC2CapacitiesHasBeenSet = true; m_eC2Capacities.push_back(std::move(value)); return *this; }
83
85
88 inline double GetPowerKva() const{ return m_powerKva; }
89 inline bool PowerKvaHasBeenSet() const { return m_powerKvaHasBeenSet; }
90 inline void SetPowerKva(double value) { m_powerKvaHasBeenSet = true; m_powerKva = value; }
91 inline CatalogItem& WithPowerKva(double value) { SetPowerKva(value); return *this;}
93
95
98 inline int GetWeightLbs() const{ return m_weightLbs; }
99 inline bool WeightLbsHasBeenSet() const { return m_weightLbsHasBeenSet; }
100 inline void SetWeightLbs(int value) { m_weightLbsHasBeenSet = true; m_weightLbs = value; }
101 inline CatalogItem& WithWeightLbs(int value) { SetWeightLbs(value); return *this;}
103
105
109 inline const Aws::Vector<int>& GetSupportedUplinkGbps() const{ return m_supportedUplinkGbps; }
110 inline bool SupportedUplinkGbpsHasBeenSet() const { return m_supportedUplinkGbpsHasBeenSet; }
111 inline void SetSupportedUplinkGbps(const Aws::Vector<int>& value) { m_supportedUplinkGbpsHasBeenSet = true; m_supportedUplinkGbps = value; }
112 inline void SetSupportedUplinkGbps(Aws::Vector<int>&& value) { m_supportedUplinkGbpsHasBeenSet = true; m_supportedUplinkGbps = std::move(value); }
113 inline CatalogItem& WithSupportedUplinkGbps(const Aws::Vector<int>& value) { SetSupportedUplinkGbps(value); return *this;}
114 inline CatalogItem& WithSupportedUplinkGbps(Aws::Vector<int>&& value) { SetSupportedUplinkGbps(std::move(value)); return *this;}
115 inline CatalogItem& AddSupportedUplinkGbps(int value) { m_supportedUplinkGbpsHasBeenSet = true; m_supportedUplinkGbps.push_back(value); return *this; }
117
119
122 inline const Aws::Vector<SupportedStorageEnum>& GetSupportedStorage() const{ return m_supportedStorage; }
123 inline bool SupportedStorageHasBeenSet() const { return m_supportedStorageHasBeenSet; }
124 inline void SetSupportedStorage(const Aws::Vector<SupportedStorageEnum>& value) { m_supportedStorageHasBeenSet = true; m_supportedStorage = value; }
125 inline void SetSupportedStorage(Aws::Vector<SupportedStorageEnum>&& value) { m_supportedStorageHasBeenSet = true; m_supportedStorage = std::move(value); }
128 inline CatalogItem& AddSupportedStorage(const SupportedStorageEnum& value) { m_supportedStorageHasBeenSet = true; m_supportedStorage.push_back(value); return *this; }
129 inline CatalogItem& AddSupportedStorage(SupportedStorageEnum&& value) { m_supportedStorageHasBeenSet = true; m_supportedStorage.push_back(std::move(value)); return *this; }
131 private:
132
133 Aws::String m_catalogItemId;
134 bool m_catalogItemIdHasBeenSet = false;
135
136 CatalogItemStatus m_itemStatus;
137 bool m_itemStatusHasBeenSet = false;
138
139 Aws::Vector<EC2Capacity> m_eC2Capacities;
140 bool m_eC2CapacitiesHasBeenSet = false;
141
142 double m_powerKva;
143 bool m_powerKvaHasBeenSet = false;
144
145 int m_weightLbs;
146 bool m_weightLbsHasBeenSet = false;
147
148 Aws::Vector<int> m_supportedUplinkGbps;
149 bool m_supportedUplinkGbpsHasBeenSet = false;
150
151 Aws::Vector<SupportedStorageEnum> m_supportedStorage;
152 bool m_supportedStorageHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Outposts
157} // namespace Aws
void SetSupportedStorage(const Aws::Vector< SupportedStorageEnum > &value)
CatalogItem & AddEC2Capacities(EC2Capacity &&value)
Definition CatalogItem.h:81
void SetItemStatus(CatalogItemStatus &&value)
Definition CatalogItem.h:65
CatalogItem & WithItemStatus(CatalogItemStatus &&value)
Definition CatalogItem.h:67
AWS_OUTPOSTS_API CatalogItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCatalogItemId(Aws::String &&value)
Definition CatalogItem.h:51
void SetSupportedStorage(Aws::Vector< SupportedStorageEnum > &&value)
CatalogItem & WithCatalogItemId(Aws::String &&value)
Definition CatalogItem.h:54
CatalogItem & WithSupportedStorage(const Aws::Vector< SupportedStorageEnum > &value)
void SetCatalogItemId(const char *value)
Definition CatalogItem.h:52
CatalogItem & WithItemStatus(const CatalogItemStatus &value)
Definition CatalogItem.h:66
CatalogItem & WithSupportedUplinkGbps(Aws::Vector< int > &&value)
void SetEC2Capacities(Aws::Vector< EC2Capacity > &&value)
Definition CatalogItem.h:77
const Aws::Vector< int > & GetSupportedUplinkGbps() const
void SetSupportedUplinkGbps(Aws::Vector< int > &&value)
CatalogItem & WithEC2Capacities(const Aws::Vector< EC2Capacity > &value)
Definition CatalogItem.h:78
CatalogItem & AddSupportedStorage(SupportedStorageEnum &&value)
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:91
CatalogItem & WithCatalogItemId(const char *value)
Definition CatalogItem.h:55
CatalogItem & WithEC2Capacities(Aws::Vector< EC2Capacity > &&value)
Definition CatalogItem.h:79
const Aws::Vector< EC2Capacity > & GetEC2Capacities() const
Definition CatalogItem.h:74
void SetCatalogItemId(const Aws::String &value)
Definition CatalogItem.h:50
void SetItemStatus(const CatalogItemStatus &value)
Definition CatalogItem.h:64
const CatalogItemStatus & GetItemStatus() const
Definition CatalogItem.h:62
CatalogItem & WithCatalogItemId(const Aws::String &value)
Definition CatalogItem.h:53
CatalogItem & AddSupportedUplinkGbps(int value)
CatalogItem & AddSupportedStorage(const SupportedStorageEnum &value)
CatalogItem & WithSupportedUplinkGbps(const Aws::Vector< int > &value)
CatalogItem & WithWeightLbs(int value)
CatalogItem & WithSupportedStorage(Aws::Vector< SupportedStorageEnum > &&value)
CatalogItem & AddEC2Capacities(const EC2Capacity &value)
Definition CatalogItem.h:80
void SetSupportedUplinkGbps(const Aws::Vector< int > &value)
void SetEC2Capacities(const Aws::Vector< EC2Capacity > &value)
Definition CatalogItem.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue