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-public/ECRPublic_EXPORTS.h>
8#include <aws/ecr-public/model/ImageIdentifier.h>
9#include <aws/ecr-public/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 ECRPublic
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ECRPUBLIC_API ImageFailure();
38 AWS_ECRPUBLIC_API ImageFailure(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ECRPUBLIC_API ImageFailure& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
48 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
49 inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
50 inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
51 inline ImageFailure& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
52 inline ImageFailure& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
54
56
59 inline const ImageFailureCode& GetFailureCode() const{ return m_failureCode; }
60 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
61 inline void SetFailureCode(const ImageFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
62 inline void SetFailureCode(ImageFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
63 inline ImageFailure& WithFailureCode(const ImageFailureCode& value) { SetFailureCode(value); return *this;}
64 inline ImageFailure& WithFailureCode(ImageFailureCode&& value) { SetFailureCode(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
72 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
73 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
74 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
75 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
76 inline ImageFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
77 inline ImageFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
78 inline ImageFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
80 private:
81
82 ImageIdentifier m_imageId;
83 bool m_imageIdHasBeenSet = false;
84
85 ImageFailureCode m_failureCode;
86 bool m_failureCodeHasBeenSet = false;
87
88 Aws::String m_failureReason;
89 bool m_failureReasonHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ECRPublic
94} // namespace Aws
AWS_ECRPUBLIC_API ImageFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFailureCode(const ImageFailureCode &value)
ImageFailure & WithFailureCode(ImageFailureCode &&value)
void SetImageId(const ImageIdentifier &value)
ImageFailure & WithFailureCode(const ImageFailureCode &value)
AWS_ECRPUBLIC_API ImageFailure(Aws::Utils::Json::JsonView jsonValue)
AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFailureReason(const char *value)
ImageFailure & WithImageId(const ImageIdentifier &value)
const ImageFailureCode & GetFailureCode() const
ImageFailure & WithFailureReason(const Aws::String &value)
void SetImageId(ImageIdentifier &&value)
void SetFailureReason(Aws::String &&value)
ImageFailure & WithFailureReason(Aws::String &&value)
void SetFailureCode(ImageFailureCode &&value)
void SetFailureReason(const Aws::String &value)
ImageFailure & WithFailureReason(const char *value)
const ImageIdentifier & GetImageId() const
ImageFailure & WithImageId(ImageIdentifier &&value)
const Aws::String & GetFailureReason() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue