AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 Failure& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetReason() const { return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 template<typename ReasonT = Aws::String>
62 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
63 template<typename ReasonT = Aws::String>
64 Failure& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDetail() const { return m_detail; }
72 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
73 template<typename DetailT = Aws::String>
74 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
75 template<typename DetailT = Aws::String>
76 Failure& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
78 private:
79
80 Aws::String m_arn;
81 bool m_arnHasBeenSet = false;
82
83 Aws::String m_reason;
84 bool m_reasonHasBeenSet = false;
85
86 Aws::String m_detail;
87 bool m_detailHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ECS
92} // namespace Aws
AWS_ECS_API Failure(Aws::Utils::Json::JsonView jsonValue)
bool ReasonHasBeenSet() const
Definition Failure.h:60
const Aws::String & GetDetail() const
Definition Failure.h:71
const Aws::String & GetReason() const
Definition Failure.h:59
void SetDetail(DetailT &&value)
Definition Failure.h:74
AWS_ECS_API Failure & operator=(Aws::Utils::Json::JsonView jsonValue)
Failure & WithDetail(DetailT &&value)
Definition Failure.h:76
bool ArnHasBeenSet() const
Definition Failure.h:48
void SetReason(ReasonT &&value)
Definition Failure.h:62
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Failure()=default
bool DetailHasBeenSet() const
Definition Failure.h:72
Failure & WithArn(ArnT &&value)
Definition Failure.h:52
const Aws::String & GetArn() const
Definition Failure.h:47
Failure & WithReason(ReasonT &&value)
Definition Failure.h:64
void SetArn(ArnT &&value)
Definition Failure.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue