AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImageAncestryEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API ImageAncestryEntry() = default;
32 AWS_EC2_API ImageAncestryEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
43 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
44 template <typename CreationDateT = Aws::Utils::DateTime>
45 void SetCreationDate(CreationDateT&& value) {
46 m_creationDateHasBeenSet = true;
47 m_creationDate = std::forward<CreationDateT>(value);
48 }
49 template <typename CreationDateT = Aws::Utils::DateTime>
50 ImageAncestryEntry& WithCreationDate(CreationDateT&& value) {
51 SetCreationDate(std::forward<CreationDateT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetImageId() const { return m_imageId; }
61 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
62 template <typename ImageIdT = Aws::String>
63 void SetImageId(ImageIdT&& value) {
64 m_imageIdHasBeenSet = true;
65 m_imageId = std::forward<ImageIdT>(value);
66 }
67 template <typename ImageIdT = Aws::String>
68 ImageAncestryEntry& WithImageId(ImageIdT&& value) {
69 SetImageId(std::forward<ImageIdT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetImageOwnerAlias() const { return m_imageOwnerAlias; }
81 inline bool ImageOwnerAliasHasBeenSet() const { return m_imageOwnerAliasHasBeenSet; }
82 template <typename ImageOwnerAliasT = Aws::String>
83 void SetImageOwnerAlias(ImageOwnerAliasT&& value) {
84 m_imageOwnerAliasHasBeenSet = true;
85 m_imageOwnerAlias = std::forward<ImageOwnerAliasT>(value);
86 }
87 template <typename ImageOwnerAliasT = Aws::String>
88 ImageAncestryEntry& WithImageOwnerAlias(ImageOwnerAliasT&& value) {
89 SetImageOwnerAlias(std::forward<ImageOwnerAliasT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetSourceImageId() const { return m_sourceImageId; }
99 inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
100 template <typename SourceImageIdT = Aws::String>
101 void SetSourceImageId(SourceImageIdT&& value) {
102 m_sourceImageIdHasBeenSet = true;
103 m_sourceImageId = std::forward<SourceImageIdT>(value);
104 }
105 template <typename SourceImageIdT = Aws::String>
106 ImageAncestryEntry& WithSourceImageId(SourceImageIdT&& value) {
107 SetSourceImageId(std::forward<SourceImageIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetSourceImageRegion() const { return m_sourceImageRegion; }
117 inline bool SourceImageRegionHasBeenSet() const { return m_sourceImageRegionHasBeenSet; }
118 template <typename SourceImageRegionT = Aws::String>
119 void SetSourceImageRegion(SourceImageRegionT&& value) {
120 m_sourceImageRegionHasBeenSet = true;
121 m_sourceImageRegion = std::forward<SourceImageRegionT>(value);
122 }
123 template <typename SourceImageRegionT = Aws::String>
124 ImageAncestryEntry& WithSourceImageRegion(SourceImageRegionT&& value) {
125 SetSourceImageRegion(std::forward<SourceImageRegionT>(value));
126 return *this;
127 }
129 private:
130 Aws::Utils::DateTime m_creationDate{};
131
132 Aws::String m_imageId;
133
134 Aws::String m_imageOwnerAlias;
135
136 Aws::String m_sourceImageId;
137
138 Aws::String m_sourceImageRegion;
139 bool m_creationDateHasBeenSet = false;
140 bool m_imageIdHasBeenSet = false;
141 bool m_imageOwnerAliasHasBeenSet = false;
142 bool m_sourceImageIdHasBeenSet = false;
143 bool m_sourceImageRegionHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace EC2
148} // namespace Aws
ImageAncestryEntry & WithSourceImageRegion(SourceImageRegionT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool SourceImageIdHasBeenSet() const
ImageAncestryEntry & WithCreationDate(CreationDateT &&value)
const Aws::String & GetSourceImageId() const
const Aws::String & GetImageOwnerAlias() const
bool SourceImageRegionHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool ImageIdHasBeenSet() const
AWS_EC2_API ImageAncestryEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ImageAncestryEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetImageId() const
const Aws::Utils::DateTime & GetCreationDate() const
ImageAncestryEntry & WithImageId(ImageIdT &&value)
bool CreationDateHasBeenSet() const
void SetImageId(ImageIdT &&value)
void SetImageOwnerAlias(ImageOwnerAliasT &&value)
ImageAncestryEntry & WithSourceImageId(SourceImageIdT &&value)
AWS_EC2_API ImageAncestryEntry()=default
void SetSourceImageRegion(SourceImageRegionT &&value)
ImageAncestryEntry & WithImageOwnerAlias(ImageOwnerAliasT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::String & GetSourceImageRegion() const
void SetSourceImageId(SourceImageIdT &&value)
bool ImageOwnerAliasHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream