AWS SDK for C++

AWS SDK for C++ Version 1.11.904

Loading...
Searching...
No Matches
Ami.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/ImageState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace imagebuilder {
21namespace Model {
22
28class Ami {
29 public:
30 AWS_IMAGEBUILDER_API Ami() = default;
31 AWS_IMAGEBUILDER_API Ami(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IMAGEBUILDER_API Ami& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetRegion() const { return m_region; }
40 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
41 template <typename RegionT = Aws::String>
42 void SetRegion(RegionT&& value) {
43 m_regionHasBeenSet = true;
44 m_region = std::forward<RegionT>(value);
45 }
46 template <typename RegionT = Aws::String>
47 Ami& WithRegion(RegionT&& value) {
48 SetRegion(std::forward<RegionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetImage() const { return m_image; }
58 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
59 template <typename ImageT = Aws::String>
60 void SetImage(ImageT&& value) {
61 m_imageHasBeenSet = true;
62 m_image = std::forward<ImageT>(value);
63 }
64 template <typename ImageT = Aws::String>
65 Ami& WithImage(ImageT&& value) {
66 SetImage(std::forward<ImageT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
83 Ami& WithName(NameT&& value) {
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
102 Ami& WithDescription(DescriptionT&& value) {
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
113 inline const ImageState& GetState() const { return m_state; }
114 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
115 template <typename StateT = ImageState>
116 void SetState(StateT&& value) {
117 m_stateHasBeenSet = true;
118 m_state = std::forward<StateT>(value);
119 }
120 template <typename StateT = ImageState>
121 Ami& WithState(StateT&& value) {
122 SetState(std::forward<StateT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetAccountId() const { return m_accountId; }
132 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
133 template <typename AccountIdT = Aws::String>
134 void SetAccountId(AccountIdT&& value) {
135 m_accountIdHasBeenSet = true;
136 m_accountId = std::forward<AccountIdT>(value);
137 }
138 template <typename AccountIdT = Aws::String>
139 Ami& WithAccountId(AccountIdT&& value) {
140 SetAccountId(std::forward<AccountIdT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_region;
146
147 Aws::String m_image;
148
149 Aws::String m_name;
150
151 Aws::String m_description;
152
153 ImageState m_state;
154
155 Aws::String m_accountId;
156 bool m_regionHasBeenSet = false;
157 bool m_imageHasBeenSet = false;
158 bool m_nameHasBeenSet = false;
159 bool m_descriptionHasBeenSet = false;
160 bool m_stateHasBeenSet = false;
161 bool m_accountIdHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace imagebuilder
166} // namespace Aws
Ami & WithState(StateT &&value)
Definition Ami.h:121
bool StateHasBeenSet() const
Definition Ami.h:114
const Aws::String & GetImage() const
Definition Ami.h:57
Ami & WithDescription(DescriptionT &&value)
Definition Ami.h:102
bool AccountIdHasBeenSet() const
Definition Ami.h:132
Ami & WithImage(ImageT &&value)
Definition Ami.h:65
AWS_IMAGEBUILDER_API Ami & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RegionHasBeenSet() const
Definition Ami.h:40
Ami & WithAccountId(AccountIdT &&value)
Definition Ami.h:139
void SetAccountId(AccountIdT &&value)
Definition Ami.h:134
void SetImage(ImageT &&value)
Definition Ami.h:60
Ami & WithName(NameT &&value)
Definition Ami.h:83
const Aws::String & GetRegion() const
Definition Ami.h:39
Ami & WithRegion(RegionT &&value)
Definition Ami.h:47
void SetDescription(DescriptionT &&value)
Definition Ami.h:97
const Aws::String & GetAccountId() const
Definition Ami.h:131
AWS_IMAGEBUILDER_API Ami(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Ami.h:75
void SetState(StateT &&value)
Definition Ami.h:116
const ImageState & GetState() const
Definition Ami.h:113
void SetRegion(RegionT &&value)
Definition Ami.h:42
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ImageHasBeenSet() const
Definition Ami.h:58
AWS_IMAGEBUILDER_API Ami()=default
const Aws::String & GetDescription() const
Definition Ami.h:94
void SetName(NameT &&value)
Definition Ami.h:78
bool NameHasBeenSet() const
Definition Ami.h:76
bool DescriptionHasBeenSet() const
Definition Ami.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue