AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
ImageWatermark.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
29 public:
30 AWS_EC2_API ImageWatermark() = default;
31 AWS_EC2_API ImageWatermark(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
44 inline const Aws::String& GetWatermarkKey() const { return m_watermarkKey; }
45 inline bool WatermarkKeyHasBeenSet() const { return m_watermarkKeyHasBeenSet; }
46 template <typename WatermarkKeyT = Aws::String>
47 void SetWatermarkKey(WatermarkKeyT&& value) {
48 m_watermarkKeyHasBeenSet = true;
49 m_watermarkKey = std::forward<WatermarkKeyT>(value);
50 }
51 template <typename WatermarkKeyT = Aws::String>
52 ImageWatermark& WithWatermarkKey(WatermarkKeyT&& value) {
53 SetWatermarkKey(std::forward<WatermarkKeyT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetSourceImageRegion() const { return m_sourceImageRegion; }
63 inline bool SourceImageRegionHasBeenSet() const { return m_sourceImageRegionHasBeenSet; }
64 template <typename SourceImageRegionT = Aws::String>
65 void SetSourceImageRegion(SourceImageRegionT&& value) {
66 m_sourceImageRegionHasBeenSet = true;
67 m_sourceImageRegion = std::forward<SourceImageRegionT>(value);
68 }
69 template <typename SourceImageRegionT = Aws::String>
70 ImageWatermark& WithSourceImageRegion(SourceImageRegionT&& value) {
71 SetSourceImageRegion(std::forward<SourceImageRegionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetSourceImageId() const { return m_sourceImageId; }
81 inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
82 template <typename SourceImageIdT = Aws::String>
83 void SetSourceImageId(SourceImageIdT&& value) {
84 m_sourceImageIdHasBeenSet = true;
85 m_sourceImageId = std::forward<SourceImageIdT>(value);
86 }
87 template <typename SourceImageIdT = Aws::String>
88 ImageWatermark& WithSourceImageId(SourceImageIdT&& value) {
89 SetSourceImageId(std::forward<SourceImageIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Utils::DateTime& GetSourceImageCreationTime() const { return m_sourceImageCreationTime; }
100 inline bool SourceImageCreationTimeHasBeenSet() const { return m_sourceImageCreationTimeHasBeenSet; }
101 template <typename SourceImageCreationTimeT = Aws::Utils::DateTime>
102 void SetSourceImageCreationTime(SourceImageCreationTimeT&& value) {
103 m_sourceImageCreationTimeHasBeenSet = true;
104 m_sourceImageCreationTime = std::forward<SourceImageCreationTimeT>(value);
105 }
106 template <typename SourceImageCreationTimeT = Aws::Utils::DateTime>
107 ImageWatermark& WithSourceImageCreationTime(SourceImageCreationTimeT&& value) {
108 SetSourceImageCreationTime(std::forward<SourceImageCreationTimeT>(value));
109 return *this;
110 }
112
114
119 inline const Aws::Utils::DateTime& GetWatermarkCreationTime() const { return m_watermarkCreationTime; }
120 inline bool WatermarkCreationTimeHasBeenSet() const { return m_watermarkCreationTimeHasBeenSet; }
121 template <typename WatermarkCreationTimeT = Aws::Utils::DateTime>
122 void SetWatermarkCreationTime(WatermarkCreationTimeT&& value) {
123 m_watermarkCreationTimeHasBeenSet = true;
124 m_watermarkCreationTime = std::forward<WatermarkCreationTimeT>(value);
125 }
126 template <typename WatermarkCreationTimeT = Aws::Utils::DateTime>
127 ImageWatermark& WithWatermarkCreationTime(WatermarkCreationTimeT&& value) {
128 SetWatermarkCreationTime(std::forward<WatermarkCreationTimeT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_watermarkKey;
134
135 Aws::String m_sourceImageRegion;
136
137 Aws::String m_sourceImageId;
138
139 Aws::Utils::DateTime m_sourceImageCreationTime{};
140
141 Aws::Utils::DateTime m_watermarkCreationTime{};
142 bool m_watermarkKeyHasBeenSet = false;
143 bool m_sourceImageRegionHasBeenSet = false;
144 bool m_sourceImageIdHasBeenSet = false;
145 bool m_sourceImageCreationTimeHasBeenSet = false;
146 bool m_watermarkCreationTimeHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
ImageWatermark & WithWatermarkCreationTime(WatermarkCreationTimeT &&value)
const Aws::String & GetSourceImageId() const
ImageWatermark & WithSourceImageRegion(SourceImageRegionT &&value)
ImageWatermark & WithWatermarkKey(WatermarkKeyT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetWatermarkCreationTime(WatermarkCreationTimeT &&value)
ImageWatermark & WithSourceImageCreationTime(SourceImageCreationTimeT &&value)
AWS_EC2_API ImageWatermark()=default
const Aws::String & GetSourceImageRegion() const
void SetSourceImageId(SourceImageIdT &&value)
const Aws::Utils::DateTime & GetWatermarkCreationTime() const
const Aws::String & GetWatermarkKey() const
void SetSourceImageCreationTime(SourceImageCreationTimeT &&value)
const Aws::Utils::DateTime & GetSourceImageCreationTime() const
AWS_EC2_API ImageWatermark & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetWatermarkKey(WatermarkKeyT &&value)
ImageWatermark & WithSourceImageId(SourceImageIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSourceImageRegion(SourceImageRegionT &&value)
AWS_EC2_API ImageWatermark(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream