AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
48 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
49 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
50 inline Ami& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
51 inline Ami& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
52 inline Ami& WithRegion(const char* value) { SetRegion(value); return *this;}
54
56
59 inline const Aws::String& GetImage() const{ return m_image; }
60 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
61 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
62 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
63 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
64 inline Ami& WithImage(const Aws::String& value) { SetImage(value); return *this;}
65 inline Ami& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
66 inline Ami& WithImage(const char* value) { SetImage(value); return *this;}
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline Ami& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline Ami& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline Ami& WithName(const char* value) { SetName(value); return *this;}
82
84
88 inline const Aws::String& GetDescription() const{ return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
92 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
93 inline Ami& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
94 inline Ami& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
95 inline Ami& WithDescription(const char* value) { SetDescription(value); return *this;}
97
99
100 inline const ImageState& GetState() const{ return m_state; }
101 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
102 inline void SetState(const ImageState& value) { m_stateHasBeenSet = true; m_state = value; }
103 inline void SetState(ImageState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
104 inline Ami& WithState(const ImageState& value) { SetState(value); return *this;}
105 inline Ami& WithState(ImageState&& value) { SetState(std::move(value)); return *this;}
107
109
112 inline const Aws::String& GetAccountId() const{ return m_accountId; }
113 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
114 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
115 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
116 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
117 inline Ami& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
118 inline Ami& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
119 inline Ami& WithAccountId(const char* value) { SetAccountId(value); return *this;}
121 private:
122
123 Aws::String m_region;
124 bool m_regionHasBeenSet = false;
125
126 Aws::String m_image;
127 bool m_imageHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Aws::String m_description;
133 bool m_descriptionHasBeenSet = false;
134
135 ImageState m_state;
136 bool m_stateHasBeenSet = false;
137
138 Aws::String m_accountId;
139 bool m_accountIdHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace imagebuilder
144} // namespace Aws
void SetAccountId(const Aws::String &value)
Definition Ami.h:114
void SetState(const ImageState &value)
Definition Ami.h:102
AWS_IMAGEBUILDER_API Ami()
bool StateHasBeenSet() const
Definition Ami.h:101
const Aws::String & GetImage() const
Definition Ami.h:59
Ami & WithName(const Aws::String &value)
Definition Ami.h:78
Ami & WithImage(Aws::String &&value)
Definition Ami.h:65
Ami & WithDescription(const char *value)
Definition Ami.h:95
Ami & WithState(ImageState &&value)
Definition Ami.h:105
Ami & WithImage(const Aws::String &value)
Definition Ami.h:64
bool AccountIdHasBeenSet() const
Definition Ami.h:113
Ami & WithDescription(Aws::String &&value)
Definition Ami.h:94
Ami & WithRegion(const Aws::String &value)
Definition Ami.h:50
AWS_IMAGEBUILDER_API Ami & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImage(const char *value)
Definition Ami.h:63
void SetRegion(Aws::String &&value)
Definition Ami.h:48
Ami & WithName(const char *value)
Definition Ami.h:80
bool RegionHasBeenSet() const
Definition Ami.h:46
void SetState(ImageState &&value)
Definition Ami.h:103
const Aws::String & GetRegion() const
Definition Ami.h:45
Ami & WithAccountId(Aws::String &&value)
Definition Ami.h:118
void SetDescription(const char *value)
Definition Ami.h:92
Ami & WithAccountId(const Aws::String &value)
Definition Ami.h:117
Ami & WithRegion(const char *value)
Definition Ami.h:52
void SetAccountId(const char *value)
Definition Ami.h:116
Ami & WithDescription(const Aws::String &value)
Definition Ami.h:93
const Aws::String & GetAccountId() const
Definition Ami.h:112
Ami & WithImage(const char *value)
Definition Ami.h:66
Ami & WithAccountId(const char *value)
Definition Ami.h:119
AWS_IMAGEBUILDER_API Ami(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Ami.h:73
void SetName(const Aws::String &value)
Definition Ami.h:75
void SetImage(const Aws::String &value)
Definition Ami.h:61
Ami & WithRegion(Aws::String &&value)
Definition Ami.h:51
void SetAccountId(Aws::String &&value)
Definition Ami.h:115
const ImageState & GetState() const
Definition Ami.h:100
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Ami & WithName(Aws::String &&value)
Definition Ami.h:79
void SetRegion(const char *value)
Definition Ami.h:49
bool ImageHasBeenSet() const
Definition Ami.h:60
void SetImage(Aws::String &&value)
Definition Ami.h:62
void SetDescription(Aws::String &&value)
Definition Ami.h:91
void SetName(Aws::String &&value)
Definition Ami.h:76
void SetDescription(const Aws::String &value)
Definition Ami.h:90
void SetRegion(const Aws::String &value)
Definition Ami.h:47
const Aws::String & GetDescription() const
Definition Ami.h:88
void SetName(const char *value)
Definition Ami.h:77
bool NameHasBeenSet() const
Definition Ami.h:74
bool DescriptionHasBeenSet() const
Definition Ami.h:89
Ami & WithState(const ImageState &value)
Definition Ami.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue