AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ImageFailure.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecr/ECR_EXPORTS.h>
9#include <aws/ecr/model/ImageFailureCode.h>
10#include <aws/ecr/model/ImageIdentifier.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECR {
22namespace Model {
23
30 public:
31 AWS_ECR_API ImageFailure() = default;
35
37
40 inline const ImageIdentifier& GetImageId() const { return m_imageId; }
41 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
42 template <typename ImageIdT = ImageIdentifier>
43 void SetImageId(ImageIdT&& value) {
44 m_imageIdHasBeenSet = true;
45 m_imageId = std::forward<ImageIdT>(value);
46 }
47 template <typename ImageIdT = ImageIdentifier>
48 ImageFailure& WithImageId(ImageIdT&& value) {
49 SetImageId(std::forward<ImageIdT>(value));
50 return *this;
51 }
53
55
58 inline ImageFailureCode GetFailureCode() const { return m_failureCode; }
59 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
60 inline void SetFailureCode(ImageFailureCode value) {
61 m_failureCodeHasBeenSet = true;
62 m_failureCode = value;
63 }
65 SetFailureCode(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
75 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
76 template <typename FailureReasonT = Aws::String>
77 void SetFailureReason(FailureReasonT&& value) {
78 m_failureReasonHasBeenSet = true;
79 m_failureReason = std::forward<FailureReasonT>(value);
80 }
81 template <typename FailureReasonT = Aws::String>
82 ImageFailure& WithFailureReason(FailureReasonT&& value) {
83 SetFailureReason(std::forward<FailureReasonT>(value));
84 return *this;
85 }
87 private:
88 ImageIdentifier m_imageId;
89
91
92 Aws::String m_failureReason;
93 bool m_imageIdHasBeenSet = false;
94 bool m_failureCodeHasBeenSet = false;
95 bool m_failureReasonHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ECR
100} // namespace Aws
const ImageIdentifier & GetImageId() const
ImageFailure & WithFailureCode(ImageFailureCode value)
ImageFailure & WithFailureReason(FailureReasonT &&value)
ImageFailure & WithImageId(ImageIdT &&value)
void SetFailureCode(ImageFailureCode value)
AWS_ECR_API ImageFailure()=default
void SetImageId(ImageIdT &&value)
AWS_ECR_API ImageFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API ImageFailure(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFailureReason() const
ImageFailureCode GetFailureCode() const
void SetFailureReason(FailureReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue