AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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