AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserStackAssociation(const UserStackAssociation& value) { m_userStackAssociationHasBeenSet = true; m_userStackAssociation = value; }
50 inline void SetUserStackAssociation(UserStackAssociation&& value) { m_userStackAssociationHasBeenSet = true; m_userStackAssociation = std::move(value); }
54
56
60 inline const UserStackAssociationErrorCode& GetErrorCode() const{ return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(const UserStackAssociationErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63 inline void SetErrorCode(UserStackAssociationErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
65 inline UserStackAssociationError& WithErrorCode(UserStackAssociationErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
67
69
73 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
74 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
75 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
76 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
77 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
78 inline UserStackAssociationError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
79 inline UserStackAssociationError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
80 inline UserStackAssociationError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
82 private:
83
84 UserStackAssociation m_userStackAssociation;
85 bool m_userStackAssociationHasBeenSet = false;
86
88 bool m_errorCodeHasBeenSet = false;
89
90 Aws::String m_errorMessage;
91 bool m_errorMessageHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace AppStream
96} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue