AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ImageReferrer.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/ArtifactStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECR {
22namespace Model {
23
31 public:
32 AWS_ECR_API ImageReferrer() = default;
36
38
41 inline const Aws::String& GetDigest() const { return m_digest; }
42 inline bool DigestHasBeenSet() const { return m_digestHasBeenSet; }
43 template <typename DigestT = Aws::String>
44 void SetDigest(DigestT&& value) {
45 m_digestHasBeenSet = true;
46 m_digest = std::forward<DigestT>(value);
47 }
48 template <typename DigestT = Aws::String>
49 ImageReferrer& WithDigest(DigestT&& value) {
50 SetDigest(std::forward<DigestT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetMediaType() const { return m_mediaType; }
60 inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
61 template <typename MediaTypeT = Aws::String>
62 void SetMediaType(MediaTypeT&& value) {
63 m_mediaTypeHasBeenSet = true;
64 m_mediaType = std::forward<MediaTypeT>(value);
65 }
66 template <typename MediaTypeT = Aws::String>
67 ImageReferrer& WithMediaType(MediaTypeT&& value) {
68 SetMediaType(std::forward<MediaTypeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetArtifactType() const { return m_artifactType; }
78 inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
79 template <typename ArtifactTypeT = Aws::String>
80 void SetArtifactType(ArtifactTypeT&& value) {
81 m_artifactTypeHasBeenSet = true;
82 m_artifactType = std::forward<ArtifactTypeT>(value);
83 }
84 template <typename ArtifactTypeT = Aws::String>
85 ImageReferrer& WithArtifactType(ArtifactTypeT&& value) {
86 SetArtifactType(std::forward<ArtifactTypeT>(value));
87 return *this;
88 }
90
92
95 inline long long GetSize() const { return m_size; }
96 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
97 inline void SetSize(long long value) {
98 m_sizeHasBeenSet = true;
99 m_size = value;
100 }
101 inline ImageReferrer& WithSize(long long value) {
102 SetSize(value);
103 return *this;
104 }
106
108
111 inline const Aws::Map<Aws::String, Aws::String>& GetAnnotations() const { return m_annotations; }
112 inline bool AnnotationsHasBeenSet() const { return m_annotationsHasBeenSet; }
113 template <typename AnnotationsT = Aws::Map<Aws::String, Aws::String>>
114 void SetAnnotations(AnnotationsT&& value) {
115 m_annotationsHasBeenSet = true;
116 m_annotations = std::forward<AnnotationsT>(value);
117 }
118 template <typename AnnotationsT = Aws::Map<Aws::String, Aws::String>>
119 ImageReferrer& WithAnnotations(AnnotationsT&& value) {
120 SetAnnotations(std::forward<AnnotationsT>(value));
121 return *this;
122 }
123 template <typename AnnotationsKeyT = Aws::String, typename AnnotationsValueT = Aws::String>
124 ImageReferrer& AddAnnotations(AnnotationsKeyT&& key, AnnotationsValueT&& value) {
125 m_annotationsHasBeenSet = true;
126 m_annotations.emplace(std::forward<AnnotationsKeyT>(key), std::forward<AnnotationsValueT>(value));
127 return *this;
128 }
130
132
136 inline ArtifactStatus GetArtifactStatus() const { return m_artifactStatus; }
137 inline bool ArtifactStatusHasBeenSet() const { return m_artifactStatusHasBeenSet; }
139 m_artifactStatusHasBeenSet = true;
140 m_artifactStatus = value;
141 }
143 SetArtifactStatus(value);
144 return *this;
145 }
147 private:
148 Aws::String m_digest;
149
150 Aws::String m_mediaType;
151
152 Aws::String m_artifactType;
153
154 long long m_size{0};
155
157
158 ArtifactStatus m_artifactStatus{ArtifactStatus::NOT_SET};
159 bool m_digestHasBeenSet = false;
160 bool m_mediaTypeHasBeenSet = false;
161 bool m_artifactTypeHasBeenSet = false;
162 bool m_sizeHasBeenSet = false;
163 bool m_annotationsHasBeenSet = false;
164 bool m_artifactStatusHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace ECR
169} // namespace Aws
ImageReferrer & WithAnnotations(AnnotationsT &&value)
void SetDigest(DigestT &&value)
AWS_ECR_API ImageReferrer & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDigest() const
void SetAnnotations(AnnotationsT &&value)
ImageReferrer & WithSize(long long value)
void SetArtifactStatus(ArtifactStatus value)
const Aws::Map< Aws::String, Aws::String > & GetAnnotations() const
void SetSize(long long value)
void SetArtifactType(ArtifactTypeT &&value)
ArtifactStatus GetArtifactStatus() const
const Aws::String & GetArtifactType() const
void SetMediaType(MediaTypeT &&value)
ImageReferrer & WithDigest(DigestT &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
ImageReferrer & AddAnnotations(AnnotationsKeyT &&key, AnnotationsValueT &&value)
AWS_ECR_API ImageReferrer(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMediaType() const
AWS_ECR_API ImageReferrer()=default
ImageReferrer & WithArtifactType(ArtifactTypeT &&value)
ImageReferrer & WithArtifactStatus(ArtifactStatus value)
ImageReferrer & WithMediaType(MediaTypeT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue