AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
47 inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
48 inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
49 inline ResourceError& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
50 inline ResourceError& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;}
51 inline ResourceError& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
53
55
58 inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; }
59 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
60 inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
61 inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); }
62 inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); }
63 inline ResourceError& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;}
64 inline ResourceError& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(std::move(value)); return *this;}
65 inline ResourceError& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;}
67
69
72 inline const Aws::String& GetReason() const{ return m_reason; }
73 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
74 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
75 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
76 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
77 inline ResourceError& WithReason(const Aws::String& value) { SetReason(value); return *this;}
78 inline ResourceError& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
79 inline ResourceError& WithReason(const char* value) { SetReason(value); return *this;}
81 private:
82
83 Aws::String m_logicalResourceId;
84 bool m_logicalResourceIdHasBeenSet = false;
85
86 Aws::String m_physicalResourceId;
87 bool m_physicalResourceIdHasBeenSet = false;
88
89 Aws::String m_reason;
90 bool m_reasonHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace ResilienceHub
95} // namespace Aws
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceError & WithLogicalResourceId(const char *value)
ResourceError & WithPhysicalResourceId(const Aws::String &value)
void SetPhysicalResourceId(const char *value)
ResourceError & WithLogicalResourceId(const Aws::String &value)
const Aws::String & GetPhysicalResourceId() const
AWS_RESILIENCEHUB_API ResourceError & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceError & WithReason(Aws::String &&value)
const Aws::String & GetLogicalResourceId() const
void SetLogicalResourceId(Aws::String &&value)
const Aws::String & GetReason() const
ResourceError & WithReason(const Aws::String &value)
AWS_RESILIENCEHUB_API ResourceError()
ResourceError & WithPhysicalResourceId(Aws::String &&value)
ResourceError & WithLogicalResourceId(Aws::String &&value)
AWS_RESILIENCEHUB_API ResourceError(Aws::Utils::Json::JsonView jsonValue)
void SetPhysicalResourceId(Aws::String &&value)
void SetLogicalResourceId(const Aws::String &value)
void SetReason(const Aws::String &value)
ResourceError & WithPhysicalResourceId(const char *value)
ResourceError & WithReason(const char *value)
void SetReason(Aws::String &&value)
void SetLogicalResourceId(const char *value)
void SetPhysicalResourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue