AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LayerFailure.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/LayerFailureCode.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
34 {
35 public:
36 AWS_ECR_API LayerFailure();
40
41
43
46 inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
47 inline bool LayerDigestHasBeenSet() const { return m_layerDigestHasBeenSet; }
48 inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
49 inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = std::move(value); }
50 inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); }
51 inline LayerFailure& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
52 inline LayerFailure& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;}
53 inline LayerFailure& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
55
57
60 inline const LayerFailureCode& GetFailureCode() const{ return m_failureCode; }
61 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
62 inline void SetFailureCode(const LayerFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
63 inline void SetFailureCode(LayerFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
64 inline LayerFailure& WithFailureCode(const LayerFailureCode& value) { SetFailureCode(value); return *this;}
65 inline LayerFailure& WithFailureCode(LayerFailureCode&& value) { SetFailureCode(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
73 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
74 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
75 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
76 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
77 inline LayerFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
78 inline LayerFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
79 inline LayerFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
81 private:
82
83 Aws::String m_layerDigest;
84 bool m_layerDigestHasBeenSet = false;
85
86 LayerFailureCode m_failureCode;
87 bool m_failureCodeHasBeenSet = false;
88
89 Aws::String m_failureReason;
90 bool m_failureReasonHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace ECR
95} // namespace Aws
void SetLayerDigest(Aws::String &&value)
LayerFailure & WithLayerDigest(const char *value)
const LayerFailureCode & GetFailureCode() const
void SetFailureCode(LayerFailureCode &&value)
LayerFailure & WithFailureCode(LayerFailureCode &&value)
void SetFailureCode(const LayerFailureCode &value)
LayerFailure & WithFailureReason(Aws::String &&value)
void SetFailureReason(const Aws::String &value)
const Aws::String & GetFailureReason() const
void SetLayerDigest(const char *value)
void SetFailureReason(Aws::String &&value)
LayerFailure & WithLayerDigest(Aws::String &&value)
const Aws::String & GetLayerDigest() const
LayerFailure & WithFailureReason(const Aws::String &value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
LayerFailure & WithFailureReason(const char *value)
LayerFailure & WithFailureCode(const LayerFailureCode &value)
void SetFailureReason(const char *value)
LayerFailure & WithLayerDigest(const Aws::String &value)
AWS_ECR_API LayerFailure(Aws::Utils::Json::JsonView jsonValue)
void SetLayerDigest(const Aws::String &value)
AWS_ECR_API LayerFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue