AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ReasonT = Aws::String>
48 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
49 template<typename ReasonT = Aws::String>
50 CapacityTaskFailure& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
52
54
57 inline CapacityTaskFailureType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(CapacityTaskFailureType value) { m_typeHasBeenSet = true; m_type = value; }
60 inline CapacityTaskFailure& WithType(CapacityTaskFailureType value) { SetType(value); return *this;}
62 private:
63
64 Aws::String m_reason;
65 bool m_reasonHasBeenSet = false;
66
68 bool m_typeHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Outposts
73} // namespace Aws
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
CapacityTaskFailureType GetType() const
CapacityTaskFailure & WithType(CapacityTaskFailureType value)
void SetType(CapacityTaskFailureType value)
AWS_OUTPOSTS_API CapacityTaskFailure(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API CapacityTaskFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
CapacityTaskFailure & WithReason(ReasonT &&value)
AWS_OUTPOSTS_API CapacityTaskFailure()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue