AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Placement.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/TenancyType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_IMAGEBUILDER_API Placement();
41 AWS_IMAGEBUILDER_API Placement(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IMAGEBUILDER_API Placement& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
51 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
52 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
53 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
54 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
55 inline Placement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
56 inline Placement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
57 inline Placement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
59
61
70 inline const TenancyType& GetTenancy() const{ return m_tenancy; }
71 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
72 inline void SetTenancy(const TenancyType& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
73 inline void SetTenancy(TenancyType&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
74 inline Placement& WithTenancy(const TenancyType& value) { SetTenancy(value); return *this;}
75 inline Placement& WithTenancy(TenancyType&& value) { SetTenancy(std::move(value)); return *this;}
77
79
85 inline const Aws::String& GetHostId() const{ return m_hostId; }
86 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
87 inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
88 inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
89 inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
90 inline Placement& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
91 inline Placement& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
92 inline Placement& WithHostId(const char* value) { SetHostId(value); return *this;}
94
96
102 inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; }
103 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
104 inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; }
105 inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); }
106 inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); }
107 inline Placement& WithHostResourceGroupArn(const Aws::String& value) { SetHostResourceGroupArn(value); return *this;}
108 inline Placement& WithHostResourceGroupArn(Aws::String&& value) { SetHostResourceGroupArn(std::move(value)); return *this;}
109 inline Placement& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;}
111 private:
112
113 Aws::String m_availabilityZone;
114 bool m_availabilityZoneHasBeenSet = false;
115
116 TenancyType m_tenancy;
117 bool m_tenancyHasBeenSet = false;
118
119 Aws::String m_hostId;
120 bool m_hostIdHasBeenSet = false;
121
122 Aws::String m_hostResourceGroupArn;
123 bool m_hostResourceGroupArnHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace imagebuilder
128} // namespace Aws
void SetHostResourceGroupArn(const Aws::String &value)
Definition Placement.h:104
const Aws::String & GetHostId() const
Definition Placement.h:85
void SetHostId(Aws::String &&value)
Definition Placement.h:88
const Aws::String & GetHostResourceGroupArn() const
Definition Placement.h:102
Placement & WithHostId(const char *value)
Definition Placement.h:92
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAvailabilityZone(const Aws::String &value)
Definition Placement.h:52
void SetHostId(const char *value)
Definition Placement.h:89
const TenancyType & GetTenancy() const
Definition Placement.h:70
Placement & WithAvailabilityZone(const char *value)
Definition Placement.h:57
const Aws::String & GetAvailabilityZone() const
Definition Placement.h:50
void SetTenancy(TenancyType &&value)
Definition Placement.h:73
Placement & WithAvailabilityZone(Aws::String &&value)
Definition Placement.h:56
AWS_IMAGEBUILDER_API Placement()
Placement & WithHostId(const Aws::String &value)
Definition Placement.h:90
Placement & WithTenancy(TenancyType &&value)
Definition Placement.h:75
AWS_IMAGEBUILDER_API Placement & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAvailabilityZone(const char *value)
Definition Placement.h:54
Placement & WithHostResourceGroupArn(const char *value)
Definition Placement.h:109
void SetHostResourceGroupArn(Aws::String &&value)
Definition Placement.h:105
Placement & WithTenancy(const TenancyType &value)
Definition Placement.h:74
Placement & WithAvailabilityZone(const Aws::String &value)
Definition Placement.h:55
Placement & WithHostResourceGroupArn(const Aws::String &value)
Definition Placement.h:107
void SetHostId(const Aws::String &value)
Definition Placement.h:87
Placement & WithHostId(Aws::String &&value)
Definition Placement.h:91
Placement & WithHostResourceGroupArn(Aws::String &&value)
Definition Placement.h:108
void SetAvailabilityZone(Aws::String &&value)
Definition Placement.h:53
void SetHostResourceGroupArn(const char *value)
Definition Placement.h:106
AWS_IMAGEBUILDER_API Placement(Aws::Utils::Json::JsonView jsonValue)
void SetTenancy(const TenancyType &value)
Definition Placement.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue