AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
UserStackAssociationError.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppStream
24{
25namespace Model
26{
27
35 {
36 public:
41
42
46 inline const UserStackAssociation& GetUserStackAssociation() const{ return m_userStackAssociation; }
47
51 inline bool UserStackAssociationHasBeenSet() const { return m_userStackAssociationHasBeenSet; }
52
56 inline void SetUserStackAssociation(const UserStackAssociation& value) { m_userStackAssociationHasBeenSet = true; m_userStackAssociation = value; }
57
61 inline void SetUserStackAssociation(UserStackAssociation&& value) { m_userStackAssociationHasBeenSet = true; m_userStackAssociation = std::move(value); }
62
67
72
73
78 inline const UserStackAssociationErrorCode& GetErrorCode() const{ return m_errorCode; }
79
84 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
85
90 inline void SetErrorCode(const UserStackAssociationErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
91
96 inline void SetErrorCode(UserStackAssociationErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
97
103
108 inline UserStackAssociationError& WithErrorCode(UserStackAssociationErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
109
110
115 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
116
121 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
122
127 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
128
133 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
134
139 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
140
145 inline UserStackAssociationError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
146
151 inline UserStackAssociationError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
152
157 inline UserStackAssociationError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
158
159 private:
160
161 UserStackAssociation m_userStackAssociation;
162 bool m_userStackAssociationHasBeenSet = false;
163
165 bool m_errorCodeHasBeenSet = false;
166
167 Aws::String m_errorMessage;
168 bool m_errorMessageHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace AppStream
173} // namespace Aws
#define AWS_APPSTREAM_API
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
const UserStackAssociationErrorCode & GetErrorCode() const
UserStackAssociationError & WithErrorCode(UserStackAssociationErrorCode &&value)
UserStackAssociationError & WithErrorMessage(const char *value)
const UserStackAssociation & GetUserStackAssociation() const
UserStackAssociationError & WithErrorMessage(Aws::String &&value)
AWS_APPSTREAM_API UserStackAssociationError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API UserStackAssociationError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(UserStackAssociationErrorCode &&value)
UserStackAssociationError & WithErrorCode(const UserStackAssociationErrorCode &value)
UserStackAssociationError & WithErrorMessage(const Aws::String &value)
UserStackAssociationError & WithUserStackAssociation(UserStackAssociation &&value)
void SetUserStackAssociation(const UserStackAssociation &value)
UserStackAssociationError & WithUserStackAssociation(const UserStackAssociation &value)
void SetUserStackAssociation(UserStackAssociation &&value)
void SetErrorCode(const UserStackAssociationErrorCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String