AWS SDK for C++  1.9.47
AWS SDK for C++
Failure.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetArn() const{ return m_arn; }
47 
51  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 
56  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 
61  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
62 
66  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 
71  inline Failure& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 
76  inline Failure& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 
81  inline Failure& WithArn(const char* value) { SetArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetReason() const{ return m_reason; }
88 
92  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
93 
97  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
98 
102  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
103 
107  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
108 
112  inline Failure& WithReason(const Aws::String& value) { SetReason(value); return *this;}
113 
117  inline Failure& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
118 
122  inline Failure& WithReason(const char* value) { SetReason(value); return *this;}
123 
124 
128  inline const Aws::String& GetDetail() const{ return m_detail; }
129 
133  inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
134 
138  inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
139 
143  inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
144 
148  inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
149 
153  inline Failure& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
154 
158  inline Failure& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;}
159 
163  inline Failure& WithDetail(const char* value) { SetDetail(value); return *this;}
164 
165  private:
166 
167  Aws::String m_arn;
168  bool m_arnHasBeenSet;
169 
170  Aws::String m_reason;
171  bool m_reasonHasBeenSet;
172 
173  Aws::String m_detail;
174  bool m_detailHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace ECS
179 } // namespace Aws
Aws::ECS::Model::Failure::SetArn
void SetArn(const Aws::String &value)
Definition: Failure.h:56
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Failure::SetDetail
void SetDetail(const Aws::String &value)
Definition: Failure.h:138
Aws::ECS::Model::Failure::WithDetail
Failure & WithDetail(Aws::String &&value)
Definition: Failure.h:158
Aws::ECS::Model::Failure::WithArn
Failure & WithArn(const Aws::String &value)
Definition: Failure.h:71
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Failure::Failure
Failure()
Aws::ECS::Model::Failure::WithReason
Failure & WithReason(Aws::String &&value)
Definition: Failure.h:117
Aws::ECS::Model::Failure::SetArn
void SetArn(const char *value)
Definition: Failure.h:66
Aws::ECS::Model::Failure::GetArn
const Aws::String & GetArn() const
Definition: Failure.h:46
Aws::ECS::Model::Failure::WithReason
Failure & WithReason(const Aws::String &value)
Definition: Failure.h:112
Aws::ECS::Model::Failure::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Failure::Failure
Failure(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Failure::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: Failure.h:92
Aws::ECS::Model::Failure::SetDetail
void SetDetail(Aws::String &&value)
Definition: Failure.h:143
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::Failure::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Failure.h:51
Aws::ECS::Model::Failure::SetReason
void SetReason(const char *value)
Definition: Failure.h:107
Aws::ECS::Model::Failure::operator=
Failure & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Failure::SetDetail
void SetDetail(const char *value)
Definition: Failure.h:148
Aws::ECS::Model::Failure::WithArn
Failure & WithArn(const char *value)
Definition: Failure.h:81
Aws::ECS::Model::Failure::WithDetail
Failure & WithDetail(const char *value)
Definition: Failure.h:163
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Failure::SetReason
void SetReason(const Aws::String &value)
Definition: Failure.h:97
Aws::ECS::Model::Failure
Definition: Failure.h:35
Aws::ECS::Model::Failure::WithDetail
Failure & WithDetail(const Aws::String &value)
Definition: Failure.h:153
Aws::ECS::Model::Failure::WithReason
Failure & WithReason(const char *value)
Definition: Failure.h:122
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::Failure::DetailHasBeenSet
bool DetailHasBeenSet() const
Definition: Failure.h:133
Aws::ECS::Model::Failure::SetReason
void SetReason(Aws::String &&value)
Definition: Failure.h:102
Aws::ECS::Model::Failure::GetDetail
const Aws::String & GetDetail() const
Definition: Failure.h:128
Aws::ECS::Model::Failure::SetArn
void SetArn(Aws::String &&value)
Definition: Failure.h:61
ECS_EXPORTS.h
Aws::ECS::Model::Failure::GetReason
const Aws::String & GetReason() const
Definition: Failure.h:87
Aws::ECS::Model::Failure::WithArn
Failure & WithArn(Aws::String &&value)
Definition: Failure.h:76