AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
110 inline const ImageState& GetState() const { return m_state; }
111 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
112 template <typename StateT = ImageState>
113 void SetState(StateT&& value) {
114 m_stateHasBeenSet = true;
115 m_state = std::forward<StateT>(value);
116 }
117 template <typename StateT = ImageState>
118 Ami& WithState(StateT&& value) {
119 SetState(std::forward<StateT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetAccountId() const { return m_accountId; }
129 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
130 template <typename AccountIdT = Aws::String>
131 void SetAccountId(AccountIdT&& value) {
132 m_accountIdHasBeenSet = true;
133 m_accountId = std::forward<AccountIdT>(value);
134 }
135 template <typename AccountIdT = Aws::String>
136 Ami& WithAccountId(AccountIdT&& value) {
137 SetAccountId(std::forward<AccountIdT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_region;
143
144 Aws::String m_image;
145
146 Aws::String m_name;
147
148 Aws::String m_description;
149
150 ImageState m_state;
151
152 Aws::String m_accountId;
153 bool m_regionHasBeenSet = false;
154 bool m_imageHasBeenSet = false;
155 bool m_nameHasBeenSet = false;
156 bool m_descriptionHasBeenSet = false;
157 bool m_stateHasBeenSet = false;
158 bool m_accountIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace imagebuilder
163} // namespace Aws
Ami & WithState(StateT &&value)
Definition Ami.h:118
bool StateHasBeenSet() const
Definition Ami.h:111
const Aws::String & GetImage() const
Definition Ami.h:57
Ami & WithDescription(DescriptionT &&value)
Definition Ami.h:102
bool AccountIdHasBeenSet() const
Definition Ami.h:129
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:136
void SetAccountId(AccountIdT &&value)
Definition Ami.h:131
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:128
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:113
const ImageState & GetState() const
Definition Ami.h:110
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