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/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/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 ECR
23{
24namespace Model
25{
26
32 class Layer
33 {
34 public:
35 AWS_ECR_API Layer();
36 AWS_ECR_API Layer(Aws::Utils::Json::JsonView jsonValue);
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 ECR
109} // namespace Aws
const Aws::String & GetMediaType() const
Definition Layer.h:83
AWS_ECR_API Layer(Aws::Utils::Json::JsonView jsonValue)
bool MediaTypeHasBeenSet() const
Definition Layer.h:84
bool LayerSizeHasBeenSet() const
Definition Layer.h:72
const Aws::String & GetLayerDigest() const
Definition Layer.h:45
Layer & WithMediaType(const Aws::String &value)
Definition Layer.h:88
void SetLayerDigest(const char *value)
Definition Layer.h:49
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLayerAvailability(LayerAvailability &&value)
Definition Layer.h:62
bool LayerAvailabilityHasBeenSet() const
Definition Layer.h:60
Layer & WithLayerDigest(const Aws::String &value)
Definition Layer.h:50
bool LayerDigestHasBeenSet() const
Definition Layer.h:46
Layer & WithLayerAvailability(LayerAvailability &&value)
Definition Layer.h:64
Layer & WithMediaType(const char *value)
Definition Layer.h:90
Layer & WithLayerDigest(const char *value)
Definition Layer.h:52
void SetMediaType(const char *value)
Definition Layer.h:87
Layer & WithMediaType(Aws::String &&value)
Definition Layer.h:89
long long GetLayerSize() const
Definition Layer.h:71
void SetLayerDigest(const Aws::String &value)
Definition Layer.h:47
void SetMediaType(Aws::String &&value)
Definition Layer.h:86
const LayerAvailability & GetLayerAvailability() const
Definition Layer.h:59
void SetLayerDigest(Aws::String &&value)
Definition Layer.h:48
Layer & WithLayerDigest(Aws::String &&value)
Definition Layer.h:51
Layer & WithLayerSize(long long value)
Definition Layer.h:74
void SetLayerSize(long long value)
Definition Layer.h:73
void SetMediaType(const Aws::String &value)
Definition Layer.h:85
void SetLayerAvailability(const LayerAvailability &value)
Definition Layer.h:61
Layer & WithLayerAvailability(const LayerAvailability &value)
Definition Layer.h:63
AWS_ECR_API Layer & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue