AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReferencedImageDetail.h
1
6#pragma once
7#include <aws/ecr-public/ECRPublic_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECRPublic
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ECRPUBLIC_API ReferencedImageDetail() = default;
39 AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetImageDigest() const { return m_imageDigest; }
47 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
48 template<typename ImageDigestT = Aws::String>
49 void SetImageDigest(ImageDigestT&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::forward<ImageDigestT>(value); }
50 template<typename ImageDigestT = Aws::String>
51 ReferencedImageDetail& WithImageDigest(ImageDigestT&& value) { SetImageDigest(std::forward<ImageDigestT>(value)); return *this;}
53
55
64 inline long long GetImageSizeInBytes() const { return m_imageSizeInBytes; }
65 inline bool ImageSizeInBytesHasBeenSet() const { return m_imageSizeInBytesHasBeenSet; }
66 inline void SetImageSizeInBytes(long long value) { m_imageSizeInBytesHasBeenSet = true; m_imageSizeInBytes = value; }
67 inline ReferencedImageDetail& WithImageSizeInBytes(long long value) { SetImageSizeInBytes(value); return *this;}
69
71
75 inline const Aws::Utils::DateTime& GetImagePushedAt() const { return m_imagePushedAt; }
76 inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
77 template<typename ImagePushedAtT = Aws::Utils::DateTime>
78 void SetImagePushedAt(ImagePushedAtT&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::forward<ImagePushedAtT>(value); }
79 template<typename ImagePushedAtT = Aws::Utils::DateTime>
80 ReferencedImageDetail& WithImagePushedAt(ImagePushedAtT&& value) { SetImagePushedAt(std::forward<ImagePushedAtT>(value)); return *this;}
82
84
87 inline const Aws::String& GetImageManifestMediaType() const { return m_imageManifestMediaType; }
88 inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
89 template<typename ImageManifestMediaTypeT = Aws::String>
90 void SetImageManifestMediaType(ImageManifestMediaTypeT&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::forward<ImageManifestMediaTypeT>(value); }
91 template<typename ImageManifestMediaTypeT = Aws::String>
92 ReferencedImageDetail& WithImageManifestMediaType(ImageManifestMediaTypeT&& value) { SetImageManifestMediaType(std::forward<ImageManifestMediaTypeT>(value)); return *this;}
94
96
99 inline const Aws::String& GetArtifactMediaType() const { return m_artifactMediaType; }
100 inline bool ArtifactMediaTypeHasBeenSet() const { return m_artifactMediaTypeHasBeenSet; }
101 template<typename ArtifactMediaTypeT = Aws::String>
102 void SetArtifactMediaType(ArtifactMediaTypeT&& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = std::forward<ArtifactMediaTypeT>(value); }
103 template<typename ArtifactMediaTypeT = Aws::String>
104 ReferencedImageDetail& WithArtifactMediaType(ArtifactMediaTypeT&& value) { SetArtifactMediaType(std::forward<ArtifactMediaTypeT>(value)); return *this;}
106 private:
107
108 Aws::String m_imageDigest;
109 bool m_imageDigestHasBeenSet = false;
110
111 long long m_imageSizeInBytes{0};
112 bool m_imageSizeInBytesHasBeenSet = false;
113
114 Aws::Utils::DateTime m_imagePushedAt{};
115 bool m_imagePushedAtHasBeenSet = false;
116
117 Aws::String m_imageManifestMediaType;
118 bool m_imageManifestMediaTypeHasBeenSet = false;
119
120 Aws::String m_artifactMediaType;
121 bool m_artifactMediaTypeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ECRPublic
126} // namespace Aws
AWS_ECRPUBLIC_API ReferencedImageDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECRPUBLIC_API ReferencedImageDetail()=default
ReferencedImageDetail & WithImagePushedAt(ImagePushedAtT &&value)
ReferencedImageDetail & WithImageManifestMediaType(ImageManifestMediaTypeT &&value)
ReferencedImageDetail & WithArtifactMediaType(ArtifactMediaTypeT &&value)
ReferencedImageDetail & WithImageSizeInBytes(long long value)
AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImageManifestMediaType(ImageManifestMediaTypeT &&value)
AWS_ECRPUBLIC_API ReferencedImageDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetImagePushedAt() const
void SetArtifactMediaType(ArtifactMediaTypeT &&value)
ReferencedImageDetail & WithImageDigest(ImageDigestT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue