AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
47 inline const Aws::String& GetAssetId() const{ return m_assetId; }
48 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
49 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
50 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
51 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
52 inline AssetInfo& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
53 inline AssetInfo& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
54 inline AssetInfo& WithAssetId(const char* value) { SetAssetId(value); return *this;}
56
58
61 inline const Aws::String& GetRackId() const{ return m_rackId; }
62 inline bool RackIdHasBeenSet() const { return m_rackIdHasBeenSet; }
63 inline void SetRackId(const Aws::String& value) { m_rackIdHasBeenSet = true; m_rackId = value; }
64 inline void SetRackId(Aws::String&& value) { m_rackIdHasBeenSet = true; m_rackId = std::move(value); }
65 inline void SetRackId(const char* value) { m_rackIdHasBeenSet = true; m_rackId.assign(value); }
66 inline AssetInfo& WithRackId(const Aws::String& value) { SetRackId(value); return *this;}
67 inline AssetInfo& WithRackId(Aws::String&& value) { SetRackId(std::move(value)); return *this;}
68 inline AssetInfo& WithRackId(const char* value) { SetRackId(value); return *this;}
70
72
75 inline const AssetType& GetAssetType() const{ return m_assetType; }
76 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
77 inline void SetAssetType(const AssetType& value) { m_assetTypeHasBeenSet = true; m_assetType = value; }
78 inline void SetAssetType(AssetType&& value) { m_assetTypeHasBeenSet = true; m_assetType = std::move(value); }
79 inline AssetInfo& WithAssetType(const AssetType& value) { SetAssetType(value); return *this;}
80 inline AssetInfo& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;}
82
84
87 inline const ComputeAttributes& GetComputeAttributes() const{ return m_computeAttributes; }
88 inline bool ComputeAttributesHasBeenSet() const { return m_computeAttributesHasBeenSet; }
89 inline void SetComputeAttributes(const ComputeAttributes& value) { m_computeAttributesHasBeenSet = true; m_computeAttributes = value; }
90 inline void SetComputeAttributes(ComputeAttributes&& value) { m_computeAttributesHasBeenSet = true; m_computeAttributes = std::move(value); }
91 inline AssetInfo& WithComputeAttributes(const ComputeAttributes& value) { SetComputeAttributes(value); return *this;}
92 inline AssetInfo& WithComputeAttributes(ComputeAttributes&& value) { SetComputeAttributes(std::move(value)); return *this;}
94
96
99 inline const AssetLocation& GetAssetLocation() const{ return m_assetLocation; }
100 inline bool AssetLocationHasBeenSet() const { return m_assetLocationHasBeenSet; }
101 inline void SetAssetLocation(const AssetLocation& value) { m_assetLocationHasBeenSet = true; m_assetLocation = value; }
102 inline void SetAssetLocation(AssetLocation&& value) { m_assetLocationHasBeenSet = true; m_assetLocation = std::move(value); }
103 inline AssetInfo& WithAssetLocation(const AssetLocation& value) { SetAssetLocation(value); return *this;}
104 inline AssetInfo& WithAssetLocation(AssetLocation&& value) { SetAssetLocation(std::move(value)); return *this;}
106 private:
107
108 Aws::String m_assetId;
109 bool m_assetIdHasBeenSet = false;
110
111 Aws::String m_rackId;
112 bool m_rackIdHasBeenSet = false;
113
114 AssetType m_assetType;
115 bool m_assetTypeHasBeenSet = false;
116
117 ComputeAttributes m_computeAttributes;
118 bool m_computeAttributesHasBeenSet = false;
119
120 AssetLocation m_assetLocation;
121 bool m_assetLocationHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Outposts
126} // namespace Aws
const AssetLocation & GetAssetLocation() const
Definition AssetInfo.h:99
void SetComputeAttributes(const ComputeAttributes &value)
Definition AssetInfo.h:89
const AssetType & GetAssetType() const
Definition AssetInfo.h:75
void SetAssetType(AssetType &&value)
Definition AssetInfo.h:78
void SetRackId(const char *value)
Definition AssetInfo.h:65
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
AssetInfo & WithComputeAttributes(ComputeAttributes &&value)
Definition AssetInfo.h:92
AssetInfo & WithAssetLocation(AssetLocation &&value)
Definition AssetInfo.h:104
void SetAssetLocation(const AssetLocation &value)
Definition AssetInfo.h:101
const ComputeAttributes & GetComputeAttributes() const
Definition AssetInfo.h:87
AssetInfo & WithRackId(Aws::String &&value)
Definition AssetInfo.h:67
void SetComputeAttributes(ComputeAttributes &&value)
Definition AssetInfo.h:90
AssetInfo & WithAssetId(Aws::String &&value)
Definition AssetInfo.h:53
AssetInfo & WithAssetLocation(const AssetLocation &value)
Definition AssetInfo.h:103
void SetAssetType(const AssetType &value)
Definition AssetInfo.h:77
AssetInfo & WithAssetType(AssetType &&value)
Definition AssetInfo.h:80
void SetRackId(const Aws::String &value)
Definition AssetInfo.h:63
AssetInfo & WithRackId(const Aws::String &value)
Definition AssetInfo.h:66
AssetInfo & WithRackId(const char *value)
Definition AssetInfo.h:68
const Aws::String & GetAssetId() const
Definition AssetInfo.h:47
AWS_OUTPOSTS_API AssetInfo(Aws::Utils::Json::JsonView jsonValue)
AssetInfo & WithComputeAttributes(const ComputeAttributes &value)
Definition AssetInfo.h:91
void SetRackId(Aws::String &&value)
Definition AssetInfo.h:64
AssetInfo & WithAssetId(const Aws::String &value)
Definition AssetInfo.h:52
AWS_OUTPOSTS_API AssetInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssetId(const Aws::String &value)
Definition AssetInfo.h:49
void SetAssetId(Aws::String &&value)
Definition AssetInfo.h:50
bool ComputeAttributesHasBeenSet() const
Definition AssetInfo.h:88
void SetAssetId(const char *value)
Definition AssetInfo.h:51
void SetAssetLocation(AssetLocation &&value)
Definition AssetInfo.h:102
const Aws::String & GetRackId() const
Definition AssetInfo.h:61
AssetInfo & WithAssetId(const char *value)
Definition AssetInfo.h:54
AssetInfo & WithAssetType(const AssetType &value)
Definition AssetInfo.h:79
AWS_OUTPOSTS_API AssetInfo()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue