AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssetInfo.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/AssetType.h>
10#include <aws/outposts/model/ComputeAttributes.h>
11#include <aws/outposts/model/AssetLocation.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 Outposts
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_OUTPOSTS_API AssetInfo() = default;
38 AWS_OUTPOSTS_API AssetInfo(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OUTPOSTS_API AssetInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetAssetId() const { return m_assetId; }
49 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
50 template<typename AssetIdT = Aws::String>
51 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
52 template<typename AssetIdT = Aws::String>
53 AssetInfo& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetRackId() const { return m_rackId; }
61 inline bool RackIdHasBeenSet() const { return m_rackIdHasBeenSet; }
62 template<typename RackIdT = Aws::String>
63 void SetRackId(RackIdT&& value) { m_rackIdHasBeenSet = true; m_rackId = std::forward<RackIdT>(value); }
64 template<typename RackIdT = Aws::String>
65 AssetInfo& WithRackId(RackIdT&& value) { SetRackId(std::forward<RackIdT>(value)); return *this;}
67
69
72 inline AssetType GetAssetType() const { return m_assetType; }
73 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
74 inline void SetAssetType(AssetType value) { m_assetTypeHasBeenSet = true; m_assetType = value; }
75 inline AssetInfo& WithAssetType(AssetType value) { SetAssetType(value); return *this;}
77
79
82 inline const ComputeAttributes& GetComputeAttributes() const { return m_computeAttributes; }
83 inline bool ComputeAttributesHasBeenSet() const { return m_computeAttributesHasBeenSet; }
84 template<typename ComputeAttributesT = ComputeAttributes>
85 void SetComputeAttributes(ComputeAttributesT&& value) { m_computeAttributesHasBeenSet = true; m_computeAttributes = std::forward<ComputeAttributesT>(value); }
86 template<typename ComputeAttributesT = ComputeAttributes>
87 AssetInfo& WithComputeAttributes(ComputeAttributesT&& value) { SetComputeAttributes(std::forward<ComputeAttributesT>(value)); return *this;}
89
91
94 inline const AssetLocation& GetAssetLocation() const { return m_assetLocation; }
95 inline bool AssetLocationHasBeenSet() const { return m_assetLocationHasBeenSet; }
96 template<typename AssetLocationT = AssetLocation>
97 void SetAssetLocation(AssetLocationT&& value) { m_assetLocationHasBeenSet = true; m_assetLocation = std::forward<AssetLocationT>(value); }
98 template<typename AssetLocationT = AssetLocation>
99 AssetInfo& WithAssetLocation(AssetLocationT&& value) { SetAssetLocation(std::forward<AssetLocationT>(value)); return *this;}
101 private:
102
103 Aws::String m_assetId;
104 bool m_assetIdHasBeenSet = false;
105
106 Aws::String m_rackId;
107 bool m_rackIdHasBeenSet = false;
108
109 AssetType m_assetType{AssetType::NOT_SET};
110 bool m_assetTypeHasBeenSet = false;
111
112 ComputeAttributes m_computeAttributes;
113 bool m_computeAttributesHasBeenSet = false;
114
115 AssetLocation m_assetLocation;
116 bool m_assetLocationHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Outposts
121} // namespace Aws
AWS_OUTPOSTS_API AssetInfo()=default
AssetInfo & WithComputeAttributes(ComputeAttributesT &&value)
Definition AssetInfo.h:87
const AssetLocation & GetAssetLocation() const
Definition AssetInfo.h:94
AssetInfo & WithAssetType(AssetType value)
Definition AssetInfo.h:75
void SetAssetLocation(AssetLocationT &&value)
Definition AssetInfo.h:97
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
AssetInfo & WithAssetLocation(AssetLocationT &&value)
Definition AssetInfo.h:99
const ComputeAttributes & GetComputeAttributes() const
Definition AssetInfo.h:82
bool AssetLocationHasBeenSet() const
Definition AssetInfo.h:95
void SetAssetId(AssetIdT &&value)
Definition AssetInfo.h:51
void SetComputeAttributes(ComputeAttributesT &&value)
Definition AssetInfo.h:85
AssetInfo & WithAssetId(AssetIdT &&value)
Definition AssetInfo.h:53
const Aws::String & GetAssetId() const
Definition AssetInfo.h:48
AssetType GetAssetType() const
Definition AssetInfo.h:72
AWS_OUTPOSTS_API AssetInfo(Aws::Utils::Json::JsonView jsonValue)
void SetAssetType(AssetType value)
Definition AssetInfo.h:74
AWS_OUTPOSTS_API AssetInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetInfo & WithRackId(RackIdT &&value)
Definition AssetInfo.h:65
bool ComputeAttributesHasBeenSet() const
Definition AssetInfo.h:83
const Aws::String & GetRackId() const
Definition AssetInfo.h:60
void SetRackId(RackIdT &&value)
Definition AssetInfo.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue