AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociationStateReason.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/model/AssociationErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkSpaces
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_WORKSPACES_API AssociationStateReason();
39 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AssociationErrorCode& GetErrorCode() const{ return m_errorCode; }
47 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
48 inline void SetErrorCode(const AssociationErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
49 inline void SetErrorCode(AssociationErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
50 inline AssociationStateReason& WithErrorCode(const AssociationErrorCode& value) { SetErrorCode(value); return *this;}
51 inline AssociationStateReason& WithErrorCode(AssociationErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
59 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
60 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
61 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
62 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
63 inline AssociationStateReason& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
64 inline AssociationStateReason& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
65 inline AssociationStateReason& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
67 private:
68
69 AssociationErrorCode m_errorCode;
70 bool m_errorCodeHasBeenSet = false;
71
72 Aws::String m_errorMessage;
73 bool m_errorMessageHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace WorkSpaces
78} // namespace Aws
void SetErrorCode(AssociationErrorCode &&value)
AssociationStateReason & WithErrorMessage(const char *value)
AssociationStateReason & WithErrorCode(const AssociationErrorCode &value)
AssociationStateReason & WithErrorMessage(Aws::String &&value)
const AssociationErrorCode & GetErrorCode() const
AWS_WORKSPACES_API AssociationStateReason(Aws::Utils::Json::JsonView jsonValue)
AssociationStateReason & WithErrorMessage(const Aws::String &value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AssociationStateReason & WithErrorCode(AssociationErrorCode &&value)
void SetErrorCode(const AssociationErrorCode &value)
AWS_WORKSPACES_API AssociationStateReason & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue