AWS SDK for C++  1.9.103
AWS SDK for C++
LayerFailure.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 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
46 
50  inline bool LayerDigestHasBeenSet() const { return m_layerDigestHasBeenSet; }
51 
55  inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
56 
60  inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = std::move(value); }
61 
65  inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); }
66 
70  inline LayerFailure& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
71 
75  inline LayerFailure& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;}
76 
80  inline LayerFailure& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
81 
82 
86  inline const LayerFailureCode& GetFailureCode() const{ return m_failureCode; }
87 
91  inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
92 
96  inline void SetFailureCode(const LayerFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
97 
101  inline void SetFailureCode(LayerFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
102 
106  inline LayerFailure& WithFailureCode(const LayerFailureCode& value) { SetFailureCode(value); return *this;}
107 
111  inline LayerFailure& WithFailureCode(LayerFailureCode&& value) { SetFailureCode(std::move(value)); return *this;}
112 
113 
117  inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
118 
122  inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
123 
127  inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
128 
132  inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
133 
137  inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
138 
142  inline LayerFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
143 
147  inline LayerFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
148 
152  inline LayerFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
153 
154  private:
155 
156  Aws::String m_layerDigest;
157  bool m_layerDigestHasBeenSet;
158 
159  LayerFailureCode m_failureCode;
160  bool m_failureCodeHasBeenSet;
161 
162  Aws::String m_failureReason;
163  bool m_failureReasonHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace ECR
168 } // namespace Aws
Aws::ECR::Model::LayerFailure::WithFailureReason
LayerFailure & WithFailureReason(const char *value)
Definition: LayerFailure.h:152
Aws::ECR::Model::LayerFailure::SetFailureCode
void SetFailureCode(const LayerFailureCode &value)
Definition: LayerFailure.h:96
Aws::ECR::Model::LayerFailure::SetLayerDigest
void SetLayerDigest(const char *value)
Definition: LayerFailure.h:65
Aws::ECR::Model::LayerFailure::WithFailureCode
LayerFailure & WithFailureCode(LayerFailureCode &&value)
Definition: LayerFailure.h:111
Aws::ECR::Model::LayerFailure
Definition: LayerFailure.h:34
Aws::ECR::Model::LayerFailure::SetLayerDigest
void SetLayerDigest(const Aws::String &value)
Definition: LayerFailure.h:55
Aws::ECR::Model::LayerFailure::SetLayerDigest
void SetLayerDigest(Aws::String &&value)
Definition: LayerFailure.h:60
Aws::ECR::Model::LayerFailure::SetFailureCode
void SetFailureCode(LayerFailureCode &&value)
Definition: LayerFailure.h:101
Aws::ECR::Model::LayerFailure::LayerFailure
LayerFailure(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::LayerFailure::WithFailureReason
LayerFailure & WithFailureReason(Aws::String &&value)
Definition: LayerFailure.h:147
Aws::ECR::Model::LayerFailure::SetFailureReason
void SetFailureReason(const Aws::String &value)
Definition: LayerFailure.h:127
Aws::ECR::Model::LayerFailure::operator=
LayerFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::LayerFailure::SetFailureReason
void SetFailureReason(const char *value)
Definition: LayerFailure.h:137
Aws::ECR::Model::LayerFailure::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECR::Model::LayerFailure::WithLayerDigest
LayerFailure & WithLayerDigest(Aws::String &&value)
Definition: LayerFailure.h:75
LayerFailureCode.h
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::LayerFailure::LayerDigestHasBeenSet
bool LayerDigestHasBeenSet() const
Definition: LayerFailure.h:50
ECR_EXPORTS.h
Aws::ECR::Model::LayerFailure::GetLayerDigest
const Aws::String & GetLayerDigest() const
Definition: LayerFailure.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ECR::Model::LayerFailure::GetFailureCode
const LayerFailureCode & GetFailureCode() const
Definition: LayerFailure.h:86
Aws::ECR::Model::LayerFailure::WithFailureCode
LayerFailure & WithFailureCode(const LayerFailureCode &value)
Definition: LayerFailure.h:106
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECR::Model::LayerFailure::FailureReasonHasBeenSet
bool FailureReasonHasBeenSet() const
Definition: LayerFailure.h:122
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::LayerFailure::WithFailureReason
LayerFailure & WithFailureReason(const Aws::String &value)
Definition: LayerFailure.h:142
Aws::ECR::Model::LayerFailure::WithLayerDigest
LayerFailure & WithLayerDigest(const Aws::String &value)
Definition: LayerFailure.h:70
Aws::ECR::Model::LayerFailure::LayerFailure
LayerFailure()
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::LayerFailure::SetFailureReason
void SetFailureReason(Aws::String &&value)
Definition: LayerFailure.h:132
Aws::ECR::Model::LayerFailure::GetFailureReason
const Aws::String & GetFailureReason() const
Definition: LayerFailure.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::LayerFailure::FailureCodeHasBeenSet
bool FailureCodeHasBeenSet() const
Definition: LayerFailure.h:91
Aws::ECR::Model::LayerFailureCode
LayerFailureCode
Definition: LayerFailureCode.h:17
Aws::ECR::Model::LayerFailure::WithLayerDigest
LayerFailure & WithLayerDigest(const char *value)
Definition: LayerFailure.h:80