AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityTaskFailure.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/model/CapacityTaskFailureType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Outposts
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_OUTPOSTS_API CapacityTaskFailure();
38 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetReason() const{ return m_reason; }
46 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
47 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
48 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
49 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
50 inline CapacityTaskFailure& WithReason(const Aws::String& value) { SetReason(value); return *this;}
51 inline CapacityTaskFailure& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
52 inline CapacityTaskFailure& WithReason(const char* value) { SetReason(value); return *this;}
54
56
59 inline const CapacityTaskFailureType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const CapacityTaskFailureType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(CapacityTaskFailureType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline CapacityTaskFailure& WithType(const CapacityTaskFailureType& value) { SetType(value); return *this;}
64 inline CapacityTaskFailure& WithType(CapacityTaskFailureType&& value) { SetType(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_reason;
69 bool m_reasonHasBeenSet = false;
70
72 bool m_typeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Outposts
77} // namespace Aws
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(const Aws::String &value)
CapacityTaskFailure & WithType(const CapacityTaskFailureType &value)
CapacityTaskFailure & WithReason(Aws::String &&value)
const CapacityTaskFailureType & GetType() const
CapacityTaskFailure & WithReason(const char *value)
void SetType(CapacityTaskFailureType &&value)
AWS_OUTPOSTS_API CapacityTaskFailure(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API CapacityTaskFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(const CapacityTaskFailureType &value)
CapacityTaskFailure & WithReason(const Aws::String &value)
CapacityTaskFailure & WithType(CapacityTaskFailureType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue