AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComputeAttributes.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/ComputeAssetState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Outposts
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_OUTPOSTS_API ComputeAttributes();
37 AWS_OUTPOSTS_API ComputeAttributes(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetHostId() const{ return m_hostId; }
47 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
48 inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
49 inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
50 inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
51 inline ComputeAttributes& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
52 inline ComputeAttributes& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
53 inline ComputeAttributes& WithHostId(const char* value) { SetHostId(value); return *this;}
55
57
66 inline const ComputeAssetState& GetState() const{ return m_state; }
67 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
68 inline void SetState(const ComputeAssetState& value) { m_stateHasBeenSet = true; m_state = value; }
69 inline void SetState(ComputeAssetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
70 inline ComputeAttributes& WithState(const ComputeAssetState& value) { SetState(value); return *this;}
71 inline ComputeAttributes& WithState(ComputeAssetState&& value) { SetState(std::move(value)); return *this;}
73
75
79 inline const Aws::Vector<Aws::String>& GetInstanceFamilies() const{ return m_instanceFamilies; }
80 inline bool InstanceFamiliesHasBeenSet() const { return m_instanceFamiliesHasBeenSet; }
81 inline void SetInstanceFamilies(const Aws::Vector<Aws::String>& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies = value; }
82 inline void SetInstanceFamilies(Aws::Vector<Aws::String>&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies = std::move(value); }
84 inline ComputeAttributes& WithInstanceFamilies(Aws::Vector<Aws::String>&& value) { SetInstanceFamilies(std::move(value)); return *this;}
85 inline ComputeAttributes& AddInstanceFamilies(const Aws::String& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(value); return *this; }
86 inline ComputeAttributes& AddInstanceFamilies(Aws::String&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(std::move(value)); return *this; }
87 inline ComputeAttributes& AddInstanceFamilies(const char* value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(value); return *this; }
89 private:
90
91 Aws::String m_hostId;
92 bool m_hostIdHasBeenSet = false;
93
94 ComputeAssetState m_state;
95 bool m_stateHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_instanceFamilies;
98 bool m_instanceFamiliesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Outposts
103} // namespace Aws
ComputeAttributes & WithState(ComputeAssetState &&value)
const Aws::String & GetHostId() const
AWS_OUTPOSTS_API ComputeAttributes(Aws::Utils::Json::JsonView jsonValue)
void SetState(const ComputeAssetState &value)
ComputeAttributes & WithInstanceFamilies(const Aws::Vector< Aws::String > &value)
ComputeAttributes & WithInstanceFamilies(Aws::Vector< Aws::String > &&value)
void SetState(ComputeAssetState &&value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
ComputeAttributes & WithState(const ComputeAssetState &value)
void SetInstanceFamilies(const Aws::Vector< Aws::String > &value)
void SetHostId(const Aws::String &value)
ComputeAttributes & AddInstanceFamilies(const char *value)
AWS_OUTPOSTS_API ComputeAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
ComputeAttributes & WithHostId(const Aws::String &value)
void SetInstanceFamilies(Aws::Vector< Aws::String > &&value)
ComputeAttributes & WithHostId(Aws::String &&value)
ComputeAttributes & AddInstanceFamilies(const Aws::String &value)
const Aws::Vector< Aws::String > & GetInstanceFamilies() const
const ComputeAssetState & GetState() const
ComputeAttributes & WithHostId(const char *value)
ComputeAttributes & AddInstanceFamilies(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue