AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceError.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_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 OpsWorks
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_OPSWORKS_API ServiceError();
35 AWS_OPSWORKS_API ServiceError(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetServiceErrorId() const{ return m_serviceErrorId; }
45 inline bool ServiceErrorIdHasBeenSet() const { return m_serviceErrorIdHasBeenSet; }
46 inline void SetServiceErrorId(const Aws::String& value) { m_serviceErrorIdHasBeenSet = true; m_serviceErrorId = value; }
47 inline void SetServiceErrorId(Aws::String&& value) { m_serviceErrorIdHasBeenSet = true; m_serviceErrorId = std::move(value); }
48 inline void SetServiceErrorId(const char* value) { m_serviceErrorIdHasBeenSet = true; m_serviceErrorId.assign(value); }
49 inline ServiceError& WithServiceErrorId(const Aws::String& value) { SetServiceErrorId(value); return *this;}
50 inline ServiceError& WithServiceErrorId(Aws::String&& value) { SetServiceErrorId(std::move(value)); return *this;}
51 inline ServiceError& WithServiceErrorId(const char* value) { SetServiceErrorId(value); return *this;}
53
55
58 inline const Aws::String& GetStackId() const{ return m_stackId; }
59 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
60 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
61 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
62 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
63 inline ServiceError& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
64 inline ServiceError& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
65 inline ServiceError& WithStackId(const char* value) { SetStackId(value); return *this;}
67
69
72 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
73 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
74 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
75 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
76 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
77 inline ServiceError& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
78 inline ServiceError& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
79 inline ServiceError& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
81
83
86 inline const Aws::String& GetType() const{ return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
89 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
90 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
91 inline ServiceError& WithType(const Aws::String& value) { SetType(value); return *this;}
92 inline ServiceError& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
93 inline ServiceError& WithType(const char* value) { SetType(value); return *this;}
95
97
100 inline const Aws::String& GetMessage() const{ return m_message; }
101 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
102 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
103 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
104 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
105 inline ServiceError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
106 inline ServiceError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
107 inline ServiceError& WithMessage(const char* value) { SetMessage(value); return *this;}
109
111
114 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
115 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
116 inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
117 inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
118 inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
119 inline ServiceError& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
120 inline ServiceError& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
121 inline ServiceError& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
123 private:
124
125 Aws::String m_serviceErrorId;
126 bool m_serviceErrorIdHasBeenSet = false;
127
128 Aws::String m_stackId;
129 bool m_stackIdHasBeenSet = false;
130
131 Aws::String m_instanceId;
132 bool m_instanceIdHasBeenSet = false;
133
134 Aws::String m_type;
135 bool m_typeHasBeenSet = false;
136
137 Aws::String m_message;
138 bool m_messageHasBeenSet = false;
139
140 Aws::String m_createdAt;
141 bool m_createdAtHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace OpsWorks
146} // namespace Aws
void SetInstanceId(Aws::String &&value)
void SetServiceErrorId(Aws::String &&value)
void SetCreatedAt(const char *value)
const Aws::String & GetCreatedAt() const
void SetServiceErrorId(const char *value)
void SetType(const Aws::String &value)
void SetStackId(const char *value)
const Aws::String & GetType() const
void SetStackId(const Aws::String &value)
AWS_OPSWORKS_API ServiceError(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(const Aws::String &value)
void SetInstanceId(const char *value)
ServiceError & WithType(const char *value)
ServiceError & WithStackId(const Aws::String &value)
ServiceError & WithStackId(Aws::String &&value)
ServiceError & WithMessage(const char *value)
void SetType(Aws::String &&value)
void SetStackId(Aws::String &&value)
const Aws::String & GetServiceErrorId() const
ServiceError & WithType(Aws::String &&value)
void SetServiceErrorId(const Aws::String &value)
ServiceError & WithCreatedAt(const Aws::String &value)
void SetMessage(const char *value)
void SetType(const char *value)
void SetMessage(Aws::String &&value)
void SetCreatedAt(Aws::String &&value)
ServiceError & WithServiceErrorId(Aws::String &&value)
ServiceError & WithInstanceId(const Aws::String &value)
const Aws::String & GetInstanceId() const
ServiceError & WithCreatedAt(Aws::String &&value)
ServiceError & WithServiceErrorId(const Aws::String &value)
ServiceError & WithMessage(Aws::String &&value)
ServiceError & WithInstanceId(Aws::String &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceError & WithMessage(const Aws::String &value)
ServiceError & WithType(const Aws::String &value)
const Aws::String & GetStackId() const
void SetInstanceId(const Aws::String &value)
ServiceError & WithInstanceId(const char *value)
AWS_OPSWORKS_API ServiceError & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceError & WithServiceErrorId(const char *value)
ServiceError & WithCreatedAt(const char *value)
void SetCreatedAt(const Aws::String &value)
ServiceError & WithStackId(const char *value)
const Aws::String & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue