AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Layer.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/ecr-public/model/LayerAvailability.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
32 class Layer
33 {
34 public:
35 AWS_ECRPUBLIC_API Layer();
36 AWS_ECRPUBLIC_API Layer(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ECRPUBLIC_API Layer& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
46 inline bool LayerDigestHasBeenSet() const { return m_layerDigestHasBeenSet; }
47 inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
48 inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = std::move(value); }
49 inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); }
50 inline Layer& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
51 inline Layer& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;}
52 inline Layer& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
54
56
59 inline const LayerAvailability& GetLayerAvailability() const{ return m_layerAvailability; }
60 inline bool LayerAvailabilityHasBeenSet() const { return m_layerAvailabilityHasBeenSet; }
61 inline void SetLayerAvailability(const LayerAvailability& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = value; }
62 inline void SetLayerAvailability(LayerAvailability&& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = std::move(value); }
63 inline Layer& WithLayerAvailability(const LayerAvailability& value) { SetLayerAvailability(value); return *this;}
64 inline Layer& WithLayerAvailability(LayerAvailability&& value) { SetLayerAvailability(std::move(value)); return *this;}
66
68
71 inline long long GetLayerSize() const{ return m_layerSize; }
72 inline bool LayerSizeHasBeenSet() const { return m_layerSizeHasBeenSet; }
73 inline void SetLayerSize(long long value) { m_layerSizeHasBeenSet = true; m_layerSize = value; }
74 inline Layer& WithLayerSize(long long value) { SetLayerSize(value); return *this;}
76
78
83 inline const Aws::String& GetMediaType() const{ return m_mediaType; }
84 inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
85 inline void SetMediaType(const Aws::String& value) { m_mediaTypeHasBeenSet = true; m_mediaType = value; }
86 inline void SetMediaType(Aws::String&& value) { m_mediaTypeHasBeenSet = true; m_mediaType = std::move(value); }
87 inline void SetMediaType(const char* value) { m_mediaTypeHasBeenSet = true; m_mediaType.assign(value); }
88 inline Layer& WithMediaType(const Aws::String& value) { SetMediaType(value); return *this;}
89 inline Layer& WithMediaType(Aws::String&& value) { SetMediaType(std::move(value)); return *this;}
90 inline Layer& WithMediaType(const char* value) { SetMediaType(value); return *this;}
92 private:
93
94 Aws::String m_layerDigest;
95 bool m_layerDigestHasBeenSet = false;
96
97 LayerAvailability m_layerAvailability;
98 bool m_layerAvailabilityHasBeenSet = false;
99
100 long long m_layerSize;
101 bool m_layerSizeHasBeenSet = false;
102
103 Aws::String m_mediaType;
104 bool m_mediaTypeHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ECRPublic
109} // namespace Aws
Layer & WithLayerDigest(const char *value)
Definition Layer.h:52
const Aws::String & GetLayerDigest() const
Definition Layer.h:45
bool LayerSizeHasBeenSet() const
Definition Layer.h:72
bool MediaTypeHasBeenSet() const
Definition Layer.h:84
AWS_ECRPUBLIC_API Layer & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECRPUBLIC_API Layer(Aws::Utils::Json::JsonView jsonValue)
Layer & WithMediaType(const char *value)
Definition Layer.h:90
Layer & WithLayerAvailability(LayerAvailability &&value)
Definition Layer.h:64
Layer & WithLayerAvailability(const LayerAvailability &value)
Definition Layer.h:63
Layer & WithLayerDigest(const Aws::String &value)
Definition Layer.h:50
bool LayerDigestHasBeenSet() const
Definition Layer.h:46
AWS_ECRPUBLIC_API Layer()
Layer & WithMediaType(const Aws::String &value)
Definition Layer.h:88
void SetMediaType(const char *value)
Definition Layer.h:87
void SetMediaType(const Aws::String &value)
Definition Layer.h:85
Layer & WithLayerDigest(Aws::String &&value)
Definition Layer.h:51
AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLayerDigest(Aws::String &&value)
Definition Layer.h:48
void SetLayerAvailability(const LayerAvailability &value)
Definition Layer.h:61
const LayerAvailability & GetLayerAvailability() const
Definition Layer.h:59
Layer & WithLayerSize(long long value)
Definition Layer.h:74
void SetLayerAvailability(LayerAvailability &&value)
Definition Layer.h:62
void SetLayerSize(long long value)
Definition Layer.h:73
void SetLayerDigest(const char *value)
Definition Layer.h:49
long long GetLayerSize() const
Definition Layer.h:71
void SetLayerDigest(const Aws::String &value)
Definition Layer.h:47
Layer & WithMediaType(Aws::String &&value)
Definition Layer.h:89
const Aws::String & GetMediaType() const
Definition Layer.h:83
void SetMediaType(Aws::String &&value)
Definition Layer.h:86
bool LayerAvailabilityHasBeenSet() const
Definition Layer.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue