AWS SDK for C++  0.14.3
AWS SDK for C++
Layer.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecr/ECR_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ECR
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Layer();
41  Layer(const Aws::Utils::Json::JsonValue& jsonValue);
42  Layer& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
49 
53  inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
54 
58  inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
59 
63  inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); }
64 
68  inline Layer& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
69 
73  inline Layer& WithLayerDigest(Aws::String&& value) { SetLayerDigest(value); return *this;}
74 
78  inline Layer& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
79 
84  inline const LayerAvailability& GetLayerAvailability() const{ return m_layerAvailability; }
85 
90  inline void SetLayerAvailability(const LayerAvailability& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = value; }
91 
96  inline void SetLayerAvailability(LayerAvailability&& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = value; }
97 
102  inline Layer& WithLayerAvailability(const LayerAvailability& value) { SetLayerAvailability(value); return *this;}
103 
108  inline Layer& WithLayerAvailability(LayerAvailability&& value) { SetLayerAvailability(value); return *this;}
109 
113  inline long long GetLayerSize() const{ return m_layerSize; }
114 
118  inline void SetLayerSize(long long value) { m_layerSizeHasBeenSet = true; m_layerSize = value; }
119 
123  inline Layer& WithLayerSize(long long value) { SetLayerSize(value); return *this;}
124 
125  private:
126  Aws::String m_layerDigest;
127  bool m_layerDigestHasBeenSet;
128  LayerAvailability m_layerAvailability;
129  bool m_layerAvailabilityHasBeenSet;
130  long long m_layerSize;
131  bool m_layerSizeHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace ECR
136 } // namespace Aws
Layer & WithLayerDigest(const Aws::String &value)
Definition: Layer.h:68
long long GetLayerSize() const
Definition: Layer.h:113
const Aws::String & GetLayerDigest() const
Definition: Layer.h:48
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:37
void SetLayerDigest(const char *value)
Definition: Layer.h:63
Layer & WithLayerAvailability(LayerAvailability &&value)
Definition: Layer.h:108
Layer & WithLayerAvailability(const LayerAvailability &value)
Definition: Layer.h:102
void SetLayerDigest(const Aws::String &value)
Definition: Layer.h:53
void SetLayerDigest(Aws::String &&value)
Definition: Layer.h:58
Layer & WithLayerDigest(const char *value)
Definition: Layer.h:78
Layer & WithLayerDigest(Aws::String &&value)
Definition: Layer.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLayerAvailability(const LayerAvailability &value)
Definition: Layer.h:90
void SetLayerAvailability(LayerAvailability &&value)
Definition: Layer.h:96
Layer & WithLayerSize(long long value)
Definition: Layer.h:123
void SetLayerSize(long long value)
Definition: Layer.h:118
const LayerAvailability & GetLayerAvailability() const
Definition: Layer.h:84
JSON (JavaScript Object Notation).