AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceError.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ResilienceHub
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_RESILIENCEHUB_API ResourceError() = default;
35 AWS_RESILIENCEHUB_API ResourceError(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUB_API ResourceError& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
45 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
46 template<typename LogicalResourceIdT = Aws::String>
47 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
48 template<typename LogicalResourceIdT = Aws::String>
49 ResourceError& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
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) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
60 template<typename PhysicalResourceIdT = Aws::String>
61 ResourceError& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetReason() const { return m_reason; }
69 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
70 template<typename ReasonT = Aws::String>
71 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
72 template<typename ReasonT = Aws::String>
73 ResourceError& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
75 private:
76
77 Aws::String m_logicalResourceId;
78 bool m_logicalResourceIdHasBeenSet = false;
79
80 Aws::String m_physicalResourceId;
81 bool m_physicalResourceIdHasBeenSet = false;
82
83 Aws::String m_reason;
84 bool m_reasonHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace ResilienceHub
89} // 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