AWS SDK for C++  1.9.103
AWS SDK for C++
Layer.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECR
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Layer();
39 
40 
44  inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
45 
49  inline bool LayerDigestHasBeenSet() const { return m_layerDigestHasBeenSet; }
50 
54  inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
55 
59  inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = std::move(value); }
60 
64  inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); }
65 
69  inline Layer& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
70 
74  inline Layer& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;}
75 
79  inline Layer& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
80 
81 
85  inline const LayerAvailability& GetLayerAvailability() const{ return m_layerAvailability; }
86 
90  inline bool LayerAvailabilityHasBeenSet() const { return m_layerAvailabilityHasBeenSet; }
91 
95  inline void SetLayerAvailability(const LayerAvailability& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = value; }
96 
100  inline void SetLayerAvailability(LayerAvailability&& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = std::move(value); }
101 
105  inline Layer& WithLayerAvailability(const LayerAvailability& value) { SetLayerAvailability(value); return *this;}
106 
110  inline Layer& WithLayerAvailability(LayerAvailability&& value) { SetLayerAvailability(std::move(value)); return *this;}
111 
112 
116  inline long long GetLayerSize() const{ return m_layerSize; }
117 
121  inline bool LayerSizeHasBeenSet() const { return m_layerSizeHasBeenSet; }
122 
126  inline void SetLayerSize(long long value) { m_layerSizeHasBeenSet = true; m_layerSize = value; }
127 
131  inline Layer& WithLayerSize(long long value) { SetLayerSize(value); return *this;}
132 
133 
139  inline const Aws::String& GetMediaType() const{ return m_mediaType; }
140 
146  inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
147 
153  inline void SetMediaType(const Aws::String& value) { m_mediaTypeHasBeenSet = true; m_mediaType = value; }
154 
160  inline void SetMediaType(Aws::String&& value) { m_mediaTypeHasBeenSet = true; m_mediaType = std::move(value); }
161 
167  inline void SetMediaType(const char* value) { m_mediaTypeHasBeenSet = true; m_mediaType.assign(value); }
168 
174  inline Layer& WithMediaType(const Aws::String& value) { SetMediaType(value); return *this;}
175 
181  inline Layer& WithMediaType(Aws::String&& value) { SetMediaType(std::move(value)); return *this;}
182 
188  inline Layer& WithMediaType(const char* value) { SetMediaType(value); return *this;}
189 
190  private:
191 
192  Aws::String m_layerDigest;
193  bool m_layerDigestHasBeenSet;
194 
195  LayerAvailability m_layerAvailability;
196  bool m_layerAvailabilityHasBeenSet;
197 
198  long long m_layerSize;
199  bool m_layerSizeHasBeenSet;
200 
201  Aws::String m_mediaType;
202  bool m_mediaTypeHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace ECR
207 } // namespace Aws
Aws::ECR::Model::Layer::operator=
Layer & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::Layer::MediaTypeHasBeenSet
bool MediaTypeHasBeenSet() const
Definition: Layer.h:146
Aws::ECR::Model::Layer::WithMediaType
Layer & WithMediaType(const char *value)
Definition: Layer.h:188
Aws::ECR::Model::Layer::GetLayerDigest
const Aws::String & GetLayerDigest() const
Definition: Layer.h:44
Aws::ECR::Model::Layer::WithLayerDigest
Layer & WithLayerDigest(const char *value)
Definition: Layer.h:79
Aws::ECR::Model::Layer::LayerDigestHasBeenSet
bool LayerDigestHasBeenSet() const
Definition: Layer.h:49
Aws::ECR::Model::Layer::SetMediaType
void SetMediaType(const Aws::String &value)
Definition: Layer.h:153
Aws::ECR::Model::Layer::Layer
Layer(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::Layer::WithLayerDigest
Layer & WithLayerDigest(Aws::String &&value)
Definition: Layer.h:74
Aws::ECR::Model::Layer::WithLayerSize
Layer & WithLayerSize(long long value)
Definition: Layer.h:131
Aws::ECR::Model::Layer::SetLayerSize
void SetLayerSize(long long value)
Definition: Layer.h:126
Aws::ECR::Model::Layer::SetLayerAvailability
void SetLayerAvailability(const LayerAvailability &value)
Definition: Layer.h:95
Aws::ECR::Model::Layer::SetLayerAvailability
void SetLayerAvailability(LayerAvailability &&value)
Definition: Layer.h:100
Aws::ECR::Model::Layer::Layer
Layer()
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::Layer::WithMediaType
Layer & WithMediaType(Aws::String &&value)
Definition: Layer.h:181
Aws::ECR::Model::LayerAvailability
LayerAvailability
Definition: LayerAvailability.h:17
ECR_EXPORTS.h
Aws::ECR::Model::Layer::LayerSizeHasBeenSet
bool LayerSizeHasBeenSet() const
Definition: Layer.h:121
Aws::ECR::Model::Layer::WithLayerDigest
Layer & WithLayerDigest(const Aws::String &value)
Definition: Layer.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::Layer::SetMediaType
void SetMediaType(const char *value)
Definition: Layer.h:167
Aws::ECR::Model::Layer::GetLayerAvailability
const LayerAvailability & GetLayerAvailability() const
Definition: Layer.h:85
Aws::ECR::Model::Layer::WithMediaType
Layer & WithMediaType(const Aws::String &value)
Definition: Layer.h:174
LayerAvailability.h
Aws::ECR::Model::Layer::LayerAvailabilityHasBeenSet
bool LayerAvailabilityHasBeenSet() const
Definition: Layer.h:90
Aws::ECR::Model::Layer::SetMediaType
void SetMediaType(Aws::String &&value)
Definition: Layer.h:160
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::Layer::GetLayerSize
long long GetLayerSize() const
Definition: Layer.h:116
Aws::ECR::Model::Layer::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECR::Model::Layer::WithLayerAvailability
Layer & WithLayerAvailability(LayerAvailability &&value)
Definition: Layer.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::Layer::SetLayerDigest
void SetLayerDigest(const char *value)
Definition: Layer.h:64
Aws::ECR::Model::Layer
Definition: Layer.h:33
Aws::ECR::Model::Layer::WithLayerAvailability
Layer & WithLayerAvailability(const LayerAvailability &value)
Definition: Layer.h:105
Aws::ECR::Model::Layer::GetMediaType
const Aws::String & GetMediaType() const
Definition: Layer.h:139
Aws::ECR::Model::Layer::SetLayerDigest
void SetLayerDigest(const Aws::String &value)
Definition: Layer.h:54
Aws::ECR::Model::Layer::SetLayerDigest
void SetLayerDigest(Aws::String &&value)
Definition: Layer.h:59