AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceImageMetadata.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/InstanceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/InstanceState.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/ImageMetadata.h>
15#include <aws/ec2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_EC2_API InstanceImageMetadata();
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
54 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
55 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
56 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
57 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
58 inline InstanceImageMetadata& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
59 inline InstanceImageMetadata& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
60 inline InstanceImageMetadata& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
62
64
67 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
68 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
69 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
70 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
71 inline InstanceImageMetadata& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
72 inline InstanceImageMetadata& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetLaunchTime() const{ return m_launchTime; }
80 inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; }
81 inline void SetLaunchTime(const Aws::Utils::DateTime& value) { m_launchTimeHasBeenSet = true; m_launchTime = value; }
82 inline void SetLaunchTime(Aws::Utils::DateTime&& value) { m_launchTimeHasBeenSet = true; m_launchTime = std::move(value); }
83 inline InstanceImageMetadata& WithLaunchTime(const Aws::Utils::DateTime& value) { SetLaunchTime(value); return *this;}
84 inline InstanceImageMetadata& WithLaunchTime(Aws::Utils::DateTime&& value) { SetLaunchTime(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
92 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
93 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
94 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
95 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
96 inline InstanceImageMetadata& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
97 inline InstanceImageMetadata& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
98 inline InstanceImageMetadata& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
100
102
105 inline const Aws::String& GetZoneId() const{ return m_zoneId; }
106 inline bool ZoneIdHasBeenSet() const { return m_zoneIdHasBeenSet; }
107 inline void SetZoneId(const Aws::String& value) { m_zoneIdHasBeenSet = true; m_zoneId = value; }
108 inline void SetZoneId(Aws::String&& value) { m_zoneIdHasBeenSet = true; m_zoneId = std::move(value); }
109 inline void SetZoneId(const char* value) { m_zoneIdHasBeenSet = true; m_zoneId.assign(value); }
110 inline InstanceImageMetadata& WithZoneId(const Aws::String& value) { SetZoneId(value); return *this;}
111 inline InstanceImageMetadata& WithZoneId(Aws::String&& value) { SetZoneId(std::move(value)); return *this;}
112 inline InstanceImageMetadata& WithZoneId(const char* value) { SetZoneId(value); return *this;}
114
116
119 inline const InstanceState& GetState() const{ return m_state; }
120 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
121 inline void SetState(const InstanceState& value) { m_stateHasBeenSet = true; m_state = value; }
122 inline void SetState(InstanceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
123 inline InstanceImageMetadata& WithState(const InstanceState& value) { SetState(value); return *this;}
124 inline InstanceImageMetadata& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;}
126
128
131 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
132 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
133 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
134 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
135 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
136 inline InstanceImageMetadata& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
137 inline InstanceImageMetadata& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
138 inline InstanceImageMetadata& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
140
142
145 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
148 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
149 inline InstanceImageMetadata& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
150 inline InstanceImageMetadata& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
151 inline InstanceImageMetadata& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
152 inline InstanceImageMetadata& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
154
156
159 inline const ImageMetadata& GetImageMetadata() const{ return m_imageMetadata; }
160 inline bool ImageMetadataHasBeenSet() const { return m_imageMetadataHasBeenSet; }
161 inline void SetImageMetadata(const ImageMetadata& value) { m_imageMetadataHasBeenSet = true; m_imageMetadata = value; }
162 inline void SetImageMetadata(ImageMetadata&& value) { m_imageMetadataHasBeenSet = true; m_imageMetadata = std::move(value); }
163 inline InstanceImageMetadata& WithImageMetadata(const ImageMetadata& value) { SetImageMetadata(value); return *this;}
164 inline InstanceImageMetadata& WithImageMetadata(ImageMetadata&& value) { SetImageMetadata(std::move(value)); return *this;}
166 private:
167
168 Aws::String m_instanceId;
169 bool m_instanceIdHasBeenSet = false;
170
171 InstanceType m_instanceType;
172 bool m_instanceTypeHasBeenSet = false;
173
174 Aws::Utils::DateTime m_launchTime;
175 bool m_launchTimeHasBeenSet = false;
176
177 Aws::String m_availabilityZone;
178 bool m_availabilityZoneHasBeenSet = false;
179
180 Aws::String m_zoneId;
181 bool m_zoneIdHasBeenSet = false;
182
183 InstanceState m_state;
184 bool m_stateHasBeenSet = false;
185
186 Aws::String m_ownerId;
187 bool m_ownerIdHasBeenSet = false;
188
189 Aws::Vector<Tag> m_tags;
190 bool m_tagsHasBeenSet = false;
191
192 ImageMetadata m_imageMetadata;
193 bool m_imageMetadataHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace EC2
198} // namespace Aws
InstanceImageMetadata & WithAvailabilityZone(const char *value)
InstanceImageMetadata & WithOwnerId(const char *value)
InstanceImageMetadata & WithOwnerId(Aws::String &&value)
InstanceImageMetadata & WithInstanceId(const char *value)
InstanceImageMetadata & WithZoneId(const Aws::String &value)
const Aws::String & GetAvailabilityZone() const
InstanceImageMetadata & WithAvailabilityZone(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
InstanceImageMetadata & WithLaunchTime(const Aws::Utils::DateTime &value)
const Aws::Vector< Tag > & GetTags() const
InstanceImageMetadata & WithTags(Aws::Vector< Tag > &&value)
void SetLaunchTime(Aws::Utils::DateTime &&value)
const ImageMetadata & GetImageMetadata() const
void SetTags(Aws::Vector< Tag > &&value)
InstanceImageMetadata & WithZoneId(const char *value)
InstanceImageMetadata & WithInstanceId(Aws::String &&value)
InstanceImageMetadata & WithAvailabilityZone(Aws::String &&value)
InstanceImageMetadata & AddTags(Tag &&value)
void SetAvailabilityZone(const Aws::String &value)
const InstanceType & GetInstanceType() const
InstanceImageMetadata & WithInstanceType(InstanceType &&value)
void SetInstanceType(const InstanceType &value)
void SetOwnerId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTags(const Aws::Vector< Tag > &value)
InstanceImageMetadata & WithZoneId(Aws::String &&value)
InstanceImageMetadata & WithState(const InstanceState &value)
void SetImageMetadata(const ImageMetadata &value)
InstanceImageMetadata & WithImageMetadata(const ImageMetadata &value)
void SetLaunchTime(const Aws::Utils::DateTime &value)
void SetZoneId(const Aws::String &value)
InstanceImageMetadata & WithState(InstanceState &&value)
InstanceImageMetadata & AddTags(const Tag &value)
InstanceImageMetadata & WithTags(const Aws::Vector< Tag > &value)
AWS_EC2_API InstanceImageMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceImageMetadata & WithImageMetadata(ImageMetadata &&value)
AWS_EC2_API InstanceImageMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceImageMetadata & WithInstanceId(const Aws::String &value)
InstanceImageMetadata & WithInstanceType(const InstanceType &value)
InstanceImageMetadata & WithOwnerId(const Aws::String &value)
const Aws::Utils::DateTime & GetLaunchTime() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceImageMetadata & WithLaunchTime(Aws::Utils::DateTime &&value)
void SetState(const InstanceState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream