AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageMetadata.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ImageState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API ImageMetadata();
36 AWS_EC2_API ImageMetadata(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API ImageMetadata& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetImageId() const{ return m_imageId; }
48 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
49 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
50 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
51 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
52 inline ImageMetadata& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
53 inline ImageMetadata& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
54 inline ImageMetadata& WithImageId(const char* value) { SetImageId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline ImageMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline ImageMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline ImageMetadata& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
76 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
77 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
78 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
79 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
80 inline ImageMetadata& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
81 inline ImageMetadata& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
82 inline ImageMetadata& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
84
86
90 inline const ImageState& GetState() const{ return m_state; }
91 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
92 inline void SetState(const ImageState& value) { m_stateHasBeenSet = true; m_state = value; }
93 inline void SetState(ImageState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
94 inline ImageMetadata& WithState(const ImageState& value) { SetState(value); return *this;}
95 inline ImageMetadata& WithState(ImageState&& value) { SetState(std::move(value)); return *this;}
97
99
103 inline const Aws::String& GetImageOwnerAlias() const{ return m_imageOwnerAlias; }
104 inline bool ImageOwnerAliasHasBeenSet() const { return m_imageOwnerAliasHasBeenSet; }
105 inline void SetImageOwnerAlias(const Aws::String& value) { m_imageOwnerAliasHasBeenSet = true; m_imageOwnerAlias = value; }
106 inline void SetImageOwnerAlias(Aws::String&& value) { m_imageOwnerAliasHasBeenSet = true; m_imageOwnerAlias = std::move(value); }
107 inline void SetImageOwnerAlias(const char* value) { m_imageOwnerAliasHasBeenSet = true; m_imageOwnerAlias.assign(value); }
108 inline ImageMetadata& WithImageOwnerAlias(const Aws::String& value) { SetImageOwnerAlias(value); return *this;}
109 inline ImageMetadata& WithImageOwnerAlias(Aws::String&& value) { SetImageOwnerAlias(std::move(value)); return *this;}
110 inline ImageMetadata& WithImageOwnerAlias(const char* value) { SetImageOwnerAlias(value); return *this;}
112
114
117 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
118 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
119 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
120 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
121 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
122 inline ImageMetadata& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
123 inline ImageMetadata& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
124 inline ImageMetadata& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
126
128
132 inline const Aws::String& GetDeprecationTime() const{ return m_deprecationTime; }
133 inline bool DeprecationTimeHasBeenSet() const { return m_deprecationTimeHasBeenSet; }
134 inline void SetDeprecationTime(const Aws::String& value) { m_deprecationTimeHasBeenSet = true; m_deprecationTime = value; }
135 inline void SetDeprecationTime(Aws::String&& value) { m_deprecationTimeHasBeenSet = true; m_deprecationTime = std::move(value); }
136 inline void SetDeprecationTime(const char* value) { m_deprecationTimeHasBeenSet = true; m_deprecationTime.assign(value); }
137 inline ImageMetadata& WithDeprecationTime(const Aws::String& value) { SetDeprecationTime(value); return *this;}
138 inline ImageMetadata& WithDeprecationTime(Aws::String&& value) { SetDeprecationTime(std::move(value)); return *this;}
139 inline ImageMetadata& WithDeprecationTime(const char* value) { SetDeprecationTime(value); return *this;}
141
143
149 inline bool GetIsPublic() const{ return m_isPublic; }
150 inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; }
151 inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; }
152 inline ImageMetadata& WithIsPublic(bool value) { SetIsPublic(value); return *this;}
154 private:
155
156 Aws::String m_imageId;
157 bool m_imageIdHasBeenSet = false;
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_ownerId;
163 bool m_ownerIdHasBeenSet = false;
164
165 ImageState m_state;
166 bool m_stateHasBeenSet = false;
167
168 Aws::String m_imageOwnerAlias;
169 bool m_imageOwnerAliasHasBeenSet = false;
170
171 Aws::String m_creationDate;
172 bool m_creationDateHasBeenSet = false;
173
174 Aws::String m_deprecationTime;
175 bool m_deprecationTimeHasBeenSet = false;
176
177 bool m_isPublic;
178 bool m_isPublicHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace EC2
183} // namespace Aws
void SetImageOwnerAlias(const Aws::String &value)
AWS_EC2_API ImageMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOwnerId(Aws::String &&value)
ImageMetadata & WithName(const Aws::String &value)
ImageMetadata & WithDeprecationTime(Aws::String &&value)
const Aws::String & GetName() const
void SetImageId(const Aws::String &value)
void SetImageOwnerAlias(Aws::String &&value)
const Aws::String & GetCreationDate() const
const Aws::String & GetOwnerId() const
void SetState(ImageState &&value)
void SetCreationDate(const Aws::String &value)
ImageMetadata & WithState(ImageState &&value)
ImageMetadata & WithCreationDate(Aws::String &&value)
void SetCreationDate(const char *value)
const ImageState & GetState() const
AWS_EC2_API ImageMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetName(const Aws::String &value)
ImageMetadata & WithName(Aws::String &&value)
ImageMetadata & WithImageOwnerAlias(const Aws::String &value)
ImageMetadata & WithOwnerId(Aws::String &&value)
ImageMetadata & WithDeprecationTime(const Aws::String &value)
void SetOwnerId(const char *value)
void SetCreationDate(Aws::String &&value)
void SetImageId(const char *value)
ImageMetadata & WithImageId(Aws::String &&value)
void SetName(const char *value)
ImageMetadata & WithCreationDate(const Aws::String &value)
void SetDeprecationTime(const Aws::String &value)
const Aws::String & GetImageId() const
ImageMetadata & WithCreationDate(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetImageId(Aws::String &&value)
const Aws::String & GetDeprecationTime() const
void SetOwnerId(const Aws::String &value)
ImageMetadata & WithImageOwnerAlias(Aws::String &&value)
const Aws::String & GetImageOwnerAlias() const
void SetState(const ImageState &value)
ImageMetadata & WithImageId(const char *value)
ImageMetadata & WithOwnerId(const Aws::String &value)
ImageMetadata & WithState(const ImageState &value)
ImageMetadata & WithDeprecationTime(const char *value)
void SetName(Aws::String &&value)
ImageMetadata & WithIsPublic(bool value)
void SetDeprecationTime(const char *value)
void SetDeprecationTime(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImageMetadata & WithImageId(const Aws::String &value)
ImageMetadata & WithImageOwnerAlias(const char *value)
void SetImageOwnerAlias(const char *value)
ImageMetadata & WithOwnerId(const char *value)
ImageMetadata & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream