AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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:
37 AWS_APPSTREAM_API UserStackAssociationError() = default;
40 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const UserStackAssociation& GetUserStackAssociation() const { return m_userStackAssociation; }
48 inline bool UserStackAssociationHasBeenSet() const { return m_userStackAssociationHasBeenSet; }
49 template<typename UserStackAssociationT = UserStackAssociation>
50 void SetUserStackAssociation(UserStackAssociationT&& value) { m_userStackAssociationHasBeenSet = true; m_userStackAssociation = std::forward<UserStackAssociationT>(value); }
51 template<typename UserStackAssociationT = UserStackAssociation>
52 UserStackAssociationError& WithUserStackAssociation(UserStackAssociationT&& value) { SetUserStackAssociation(std::forward<UserStackAssociationT>(value)); return *this;}
54
56
60 inline UserStackAssociationErrorCode GetErrorCode() const { return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(UserStackAssociationErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
65
67
71 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
72 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
73 template<typename ErrorMessageT = Aws::String>
74 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
75 template<typename ErrorMessageT = Aws::String>
76 UserStackAssociationError& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
78 private:
79
80 UserStackAssociation m_userStackAssociation;
81 bool m_userStackAssociationHasBeenSet = false;
82
84 bool m_errorCodeHasBeenSet = false;
85
86 Aws::String m_errorMessage;
87 bool m_errorMessageHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AppStream
92} // 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