AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Ami.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/ImageState.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
32 class Ami
33 {
34 public:
35 AWS_IMAGEBUILDER_API Ami() = default;
36 AWS_IMAGEBUILDER_API Ami(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IMAGEBUILDER_API Ami& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetRegion() const { return m_region; }
46 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
47 template<typename RegionT = Aws::String>
48 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
49 template<typename RegionT = Aws::String>
50 Ami& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
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) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
61 template<typename ImageT = Aws::String>
62 Ami& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
64
66
69 inline const Aws::String& GetName() const { return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 template<typename NameT = Aws::String>
72 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
73 template<typename NameT = Aws::String>
74 Ami& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
76
78
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 Ami& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
92 inline const ImageState& GetState() const { return m_state; }
93 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
94 template<typename StateT = ImageState>
95 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
96 template<typename StateT = ImageState>
97 Ami& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
99
101
104 inline const Aws::String& GetAccountId() const { return m_accountId; }
105 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
106 template<typename AccountIdT = Aws::String>
107 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
108 template<typename AccountIdT = Aws::String>
109 Ami& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
111 private:
112
113 Aws::String m_region;
114 bool m_regionHasBeenSet = false;
115
116 Aws::String m_image;
117 bool m_imageHasBeenSet = false;
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 ImageState m_state;
126 bool m_stateHasBeenSet = false;
127
128 Aws::String m_accountId;
129 bool m_accountIdHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace imagebuilder
134} // namespace Aws
Ami & WithState(StateT &&value)
Definition Ami.h:97
bool StateHasBeenSet() const
Definition Ami.h:93
const Aws::String & GetImage() const
Definition Ami.h:57
Ami & WithDescription(DescriptionT &&value)
Definition Ami.h:87
bool AccountIdHasBeenSet() const
Definition Ami.h:105
Ami & WithImage(ImageT &&value)
Definition Ami.h:62
AWS_IMAGEBUILDER_API Ami & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RegionHasBeenSet() const
Definition Ami.h:46
Ami & WithAccountId(AccountIdT &&value)
Definition Ami.h:109
void SetAccountId(AccountIdT &&value)
Definition Ami.h:107
void SetImage(ImageT &&value)
Definition Ami.h:60
Ami & WithName(NameT &&value)
Definition Ami.h:74
const Aws::String & GetRegion() const
Definition Ami.h:45
Ami & WithRegion(RegionT &&value)
Definition Ami.h:50
void SetDescription(DescriptionT &&value)
Definition Ami.h:85
const Aws::String & GetAccountId() const
Definition Ami.h:104
AWS_IMAGEBUILDER_API Ami(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Ami.h:69
void SetState(StateT &&value)
Definition Ami.h:95
const ImageState & GetState() const
Definition Ami.h:92
void SetRegion(RegionT &&value)
Definition Ami.h:48
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:82
void SetName(NameT &&value)
Definition Ami.h:72
bool NameHasBeenSet() const
Definition Ami.h:70
bool DescriptionHasBeenSet() const
Definition Ami.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue