AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ServiceErrorIdT = Aws::String>
47 void SetServiceErrorId(ServiceErrorIdT&& value) { m_serviceErrorIdHasBeenSet = true; m_serviceErrorId = std::forward<ServiceErrorIdT>(value); }
48 template<typename ServiceErrorIdT = Aws::String>
49 ServiceError& WithServiceErrorId(ServiceErrorIdT&& value) { SetServiceErrorId(std::forward<ServiceErrorIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetStackId() const { return m_stackId; }
57 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
58 template<typename StackIdT = Aws::String>
59 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
60 template<typename StackIdT = Aws::String>
61 ServiceError& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
69 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
70 template<typename InstanceIdT = Aws::String>
71 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
72 template<typename InstanceIdT = Aws::String>
73 ServiceError& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 template<typename TypeT = Aws::String>
83 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
84 template<typename TypeT = Aws::String>
85 ServiceError& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
87
89
92 inline const Aws::String& GetMessage() const { return m_message; }
93 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
94 template<typename MessageT = Aws::String>
95 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
96 template<typename MessageT = Aws::String>
97 ServiceError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
99
101
104 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
105 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
106 template<typename CreatedAtT = Aws::String>
107 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
108 template<typename CreatedAtT = Aws::String>
109 ServiceError& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
111 private:
112
113 Aws::String m_serviceErrorId;
114 bool m_serviceErrorIdHasBeenSet = false;
115
116 Aws::String m_stackId;
117 bool m_stackIdHasBeenSet = false;
118
119 Aws::String m_instanceId;
120 bool m_instanceIdHasBeenSet = false;
121
122 Aws::String m_type;
123 bool m_typeHasBeenSet = false;
124
125 Aws::String m_message;
126 bool m_messageHasBeenSet = false;
127
128 Aws::String m_createdAt;
129 bool m_createdAtHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace OpsWorks
134} // namespace Aws
ServiceError & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetCreatedAt() const
void SetMessage(MessageT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetType() const
AWS_OPSWORKS_API ServiceError(Aws::Utils::Json::JsonView jsonValue)
ServiceError & WithStackId(StackIdT &&value)
const Aws::String & GetServiceErrorId() const
void SetInstanceId(InstanceIdT &&value)
const Aws::String & GetInstanceId() const
ServiceError & WithServiceErrorId(ServiceErrorIdT &&value)
void SetServiceErrorId(ServiceErrorIdT &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPSWORKS_API ServiceError()=default
const Aws::String & GetStackId() const
AWS_OPSWORKS_API ServiceError & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceError & WithInstanceId(InstanceIdT &&value)
ServiceError & WithMessage(MessageT &&value)
void SetStackId(StackIdT &&value)
const Aws::String & GetMessage() const
ServiceError & WithType(TypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue