AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UserStackAssociationError.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/UserStackAssociation.h>
9#include <aws/appstream/model/UserStackAssociationErrorCode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppStream {
22namespace Model {
23
31 public:
32 AWS_APPSTREAM_API UserStackAssociationError() = default;
35 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const UserStackAssociation& GetUserStackAssociation() const { return m_userStackAssociation; }
42 inline bool UserStackAssociationHasBeenSet() const { return m_userStackAssociationHasBeenSet; }
43 template <typename UserStackAssociationT = UserStackAssociation>
44 void SetUserStackAssociation(UserStackAssociationT&& value) {
45 m_userStackAssociationHasBeenSet = true;
46 m_userStackAssociation = std::forward<UserStackAssociationT>(value);
47 }
48 template <typename UserStackAssociationT = UserStackAssociation>
49 UserStackAssociationError& WithUserStackAssociation(UserStackAssociationT&& value) {
50 SetUserStackAssociation(std::forward<UserStackAssociationT>(value));
51 return *this;
52 }
54
56
60 inline UserStackAssociationErrorCode GetErrorCode() const { return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
63 m_errorCodeHasBeenSet = true;
64 m_errorCode = value;
65 }
67 SetErrorCode(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
78 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
79 template <typename ErrorMessageT = Aws::String>
80 void SetErrorMessage(ErrorMessageT&& value) {
81 m_errorMessageHasBeenSet = true;
82 m_errorMessage = std::forward<ErrorMessageT>(value);
83 }
84 template <typename ErrorMessageT = Aws::String>
86 SetErrorMessage(std::forward<ErrorMessageT>(value));
87 return *this;
88 }
90 private:
91 UserStackAssociation m_userStackAssociation;
92
94
95 Aws::String m_errorMessage;
96 bool m_userStackAssociationHasBeenSet = false;
97 bool m_errorCodeHasBeenSet = false;
98 bool m_errorMessageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace AppStream
103} // namespace Aws
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorCode(UserStackAssociationErrorCode value)
const UserStackAssociation & GetUserStackAssociation() const
void SetUserStackAssociation(UserStackAssociationT &&value)
AWS_APPSTREAM_API UserStackAssociationError()=default
AWS_APPSTREAM_API UserStackAssociationError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API UserStackAssociationError & operator=(Aws::Utils::Json::JsonView jsonValue)
UserStackAssociationError & WithErrorCode(UserStackAssociationErrorCode value)
UserStackAssociationError & WithUserStackAssociation(UserStackAssociationT &&value)
UserStackAssociationError & WithErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue