AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Failure.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
34 class Failure
35 {
36 public:
37 AWS_ECS_API Failure();
38 AWS_ECS_API Failure(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline Failure& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline Failure& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline Failure& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetReason() const{ return m_reason; }
62 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
63 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
64 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
65 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
66 inline Failure& WithReason(const Aws::String& value) { SetReason(value); return *this;}
67 inline Failure& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
68 inline Failure& WithReason(const char* value) { SetReason(value); return *this;}
70
72
75 inline const Aws::String& GetDetail() const{ return m_detail; }
76 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
77 inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
78 inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
79 inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
80 inline Failure& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
81 inline Failure& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;}
82 inline Failure& WithDetail(const char* value) { SetDetail(value); return *this;}
84 private:
85
86 Aws::String m_arn;
87 bool m_arnHasBeenSet = false;
88
89 Aws::String m_reason;
90 bool m_reasonHasBeenSet = false;
91
92 Aws::String m_detail;
93 bool m_detailHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ECS
98} // namespace Aws
void SetArn(Aws::String &&value)
Definition Failure.h:50
Failure & WithDetail(Aws::String &&value)
Definition Failure.h:81
void SetDetail(const char *value)
Definition Failure.h:79
Failure & WithArn(const Aws::String &value)
Definition Failure.h:52
AWS_ECS_API Failure(Aws::Utils::Json::JsonView jsonValue)
void SetReason(const char *value)
Definition Failure.h:65
Failure & WithArn(const char *value)
Definition Failure.h:54
Failure & WithReason(Aws::String &&value)
Definition Failure.h:67
bool ReasonHasBeenSet() const
Definition Failure.h:62
Failure & WithDetail(const Aws::String &value)
Definition Failure.h:80
void SetDetail(Aws::String &&value)
Definition Failure.h:78
const Aws::String & GetDetail() const
Definition Failure.h:75
const Aws::String & GetReason() const
Definition Failure.h:61
void SetReason(const Aws::String &value)
Definition Failure.h:63
void SetDetail(const Aws::String &value)
Definition Failure.h:77
AWS_ECS_API Failure & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReason(Aws::String &&value)
Definition Failure.h:64
void SetArn(const char *value)
Definition Failure.h:51
Failure & WithReason(const char *value)
Definition Failure.h:68
bool ArnHasBeenSet() const
Definition Failure.h:48
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Failure & WithReason(const Aws::String &value)
Definition Failure.h:66
void SetArn(const Aws::String &value)
Definition Failure.h:49
Failure & WithArn(Aws::String &&value)
Definition Failure.h:53
bool DetailHasBeenSet() const
Definition Failure.h:76
Failure & WithDetail(const char *value)
Definition Failure.h:82
const Aws::String & GetArn() const
Definition Failure.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue