AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ResourceError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ResilienceHub {
20namespace Model {
21
28 public:
29 AWS_RESILIENCEHUB_API ResourceError() = default;
30 AWS_RESILIENCEHUB_API ResourceError(Aws::Utils::Json::JsonView jsonValue);
31 AWS_RESILIENCEHUB_API ResourceError& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
39 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
40 template <typename LogicalResourceIdT = Aws::String>
41 void SetLogicalResourceId(LogicalResourceIdT&& value) {
42 m_logicalResourceIdHasBeenSet = true;
43 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
44 }
45 template <typename LogicalResourceIdT = Aws::String>
46 ResourceError& WithLogicalResourceId(LogicalResourceIdT&& value) {
47 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
57 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
58 template <typename PhysicalResourceIdT = Aws::String>
59 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
60 m_physicalResourceIdHasBeenSet = true;
61 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
62 }
63 template <typename PhysicalResourceIdT = Aws::String>
64 ResourceError& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
65 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetReason() const { return m_reason; }
75 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
76 template <typename ReasonT = Aws::String>
77 void SetReason(ReasonT&& value) {
78 m_reasonHasBeenSet = true;
79 m_reason = std::forward<ReasonT>(value);
80 }
81 template <typename ReasonT = Aws::String>
82 ResourceError& WithReason(ReasonT&& value) {
83 SetReason(std::forward<ReasonT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_logicalResourceId;
89
90 Aws::String m_physicalResourceId;
91
92 Aws::String m_reason;
93 bool m_logicalResourceIdHasBeenSet = false;
94 bool m_physicalResourceIdHasBeenSet = false;
95 bool m_reasonHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ResilienceHub
100} // namespace Aws
ResourceError & WithLogicalResourceId(LogicalResourceIdT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPhysicalResourceId() const
AWS_RESILIENCEHUB_API ResourceError & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogicalResourceId() const
const Aws::String & GetReason() const
AWS_RESILIENCEHUB_API ResourceError()=default
ResourceError & WithPhysicalResourceId(PhysicalResourceIdT &&value)
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
AWS_RESILIENCEHUB_API ResourceError(Aws::Utils::Json::JsonView jsonValue)
void SetLogicalResourceId(LogicalResourceIdT &&value)
ResourceError & WithReason(ReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue