AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
CapacityTaskFailure.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/outposts/Outposts_EXPORTS.h>
9#include <aws/outposts/model/CapacityTaskFailureType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Outposts {
21namespace Model {
22
29 public:
30 AWS_OUTPOSTS_API CapacityTaskFailure() = default;
33 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetReason() const { return m_reason; }
40 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
41 template <typename ReasonT = Aws::String>
42 void SetReason(ReasonT&& value) {
43 m_reasonHasBeenSet = true;
44 m_reason = std::forward<ReasonT>(value);
45 }
46 template <typename ReasonT = Aws::String>
47 CapacityTaskFailure& WithReason(ReasonT&& value) {
48 SetReason(std::forward<ReasonT>(value));
49 return *this;
50 }
52
54
57 inline CapacityTaskFailureType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(CapacityTaskFailureType value) {
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
64 SetType(value);
65 return *this;
66 }
68 private:
69 Aws::String m_reason;
70
72 bool m_reasonHasBeenSet = false;
73 bool m_typeHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Outposts
78} // 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