AWS SDK for C++  0.12.9
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 
35  {
36  public:
37  Layer();
38  Layer(const Aws::Utils::Json::JsonValue& jsonValue);
39  Layer& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
41 
45  inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
46 
50  inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
51 
55  inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
56 
60  inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); }
61 
65  inline Layer& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
66 
70  inline Layer& WithLayerDigest(Aws::String&& value) { SetLayerDigest(value); return *this;}
71 
75  inline Layer& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
76 
81  inline const LayerAvailability& GetLayerAvailability() const{ return m_layerAvailability; }
82 
87  inline void SetLayerAvailability(const LayerAvailability& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = value; }
88 
93  inline void SetLayerAvailability(LayerAvailability&& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = value; }
94 
99  inline Layer& WithLayerAvailability(const LayerAvailability& value) { SetLayerAvailability(value); return *this;}
100 
105  inline Layer& WithLayerAvailability(LayerAvailability&& value) { SetLayerAvailability(value); return *this;}
106 
110  inline long long GetLayerSize() const{ return m_layerSize; }
111 
115  inline void SetLayerSize(long long value) { m_layerSizeHasBeenSet = true; m_layerSize = value; }
116 
120  inline Layer& WithLayerSize(long long value) { SetLayerSize(value); return *this;}
121 
122  private:
123  Aws::String m_layerDigest;
124  bool m_layerDigestHasBeenSet;
125  LayerAvailability m_layerAvailability;
126  bool m_layerAvailabilityHasBeenSet;
127  long long m_layerSize;
128  bool m_layerSizeHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace ECR
133 } // namespace Aws
Layer & WithLayerDigest(const Aws::String &value)
Definition: Layer.h:65
long long GetLayerSize() const
Definition: Layer.h:110
const Aws::String & GetLayerDigest() const
Definition: Layer.h:45
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:34
void SetLayerDigest(const char *value)
Definition: Layer.h:60
Layer & WithLayerAvailability(LayerAvailability &&value)
Definition: Layer.h:105
Layer & WithLayerAvailability(const LayerAvailability &value)
Definition: Layer.h:99
void SetLayerDigest(const Aws::String &value)
Definition: Layer.h:50
void SetLayerDigest(Aws::String &&value)
Definition: Layer.h:55
Layer & WithLayerDigest(const char *value)
Definition: Layer.h:75
Layer & WithLayerDigest(Aws::String &&value)
Definition: Layer.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLayerAvailability(const LayerAvailability &value)
Definition: Layer.h:87
void SetLayerAvailability(LayerAvailability &&value)
Definition: Layer.h:93
Layer & WithLayerSize(long long value)
Definition: Layer.h:120
void SetLayerSize(long long value)
Definition: Layer.h:115
const LayerAvailability & GetLayerAvailability() const
Definition: Layer.h:81
JSON (JavaScript Object Notation).