AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ActiveDirectoryError.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/model/ActiveDirectoryErrorType.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 FSx
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_FSX_API ActiveDirectoryError();
39
40
42
45 inline const Aws::String& GetActiveDirectoryId() const{ return m_activeDirectoryId; }
46 inline bool ActiveDirectoryIdHasBeenSet() const { return m_activeDirectoryIdHasBeenSet; }
47 inline void SetActiveDirectoryId(const Aws::String& value) { m_activeDirectoryIdHasBeenSet = true; m_activeDirectoryId = value; }
48 inline void SetActiveDirectoryId(Aws::String&& value) { m_activeDirectoryIdHasBeenSet = true; m_activeDirectoryId = std::move(value); }
49 inline void SetActiveDirectoryId(const char* value) { m_activeDirectoryIdHasBeenSet = true; m_activeDirectoryId.assign(value); }
50 inline ActiveDirectoryError& WithActiveDirectoryId(const Aws::String& value) { SetActiveDirectoryId(value); return *this;}
51 inline ActiveDirectoryError& WithActiveDirectoryId(Aws::String&& value) { SetActiveDirectoryId(std::move(value)); return *this;}
52 inline ActiveDirectoryError& WithActiveDirectoryId(const char* value) { SetActiveDirectoryId(value); return *this;}
54
56
59 inline const ActiveDirectoryErrorType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const ActiveDirectoryErrorType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(ActiveDirectoryErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline ActiveDirectoryError& WithType(const ActiveDirectoryErrorType& value) { SetType(value); return *this;}
64 inline ActiveDirectoryError& WithType(ActiveDirectoryErrorType&& value) { SetType(std::move(value)); return *this;}
66
68
69 inline const Aws::String& GetMessage() const{ return m_message; }
70 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
72 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
73 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
74 inline ActiveDirectoryError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
75 inline ActiveDirectoryError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
76 inline ActiveDirectoryError& WithMessage(const char* value) { SetMessage(value); return *this;}
78 private:
79
80 Aws::String m_activeDirectoryId;
81 bool m_activeDirectoryIdHasBeenSet = false;
82
84 bool m_typeHasBeenSet = false;
85
86 Aws::String m_message;
87 bool m_messageHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace FSx
92} // namespace Aws
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
ActiveDirectoryError & WithMessage(const Aws::String &value)
ActiveDirectoryError & WithActiveDirectoryId(Aws::String &&value)
const ActiveDirectoryErrorType & GetType() const
ActiveDirectoryError & WithActiveDirectoryId(const Aws::String &value)
const Aws::String & GetActiveDirectoryId() const
ActiveDirectoryError & WithActiveDirectoryId(const char *value)
void SetMessage(const Aws::String &value)
ActiveDirectoryError & WithMessage(const char *value)
void SetType(ActiveDirectoryErrorType &&value)
void SetActiveDirectoryId(Aws::String &&value)
AWS_FSX_API ActiveDirectoryError & operator=(Aws::Utils::Json::JsonView jsonValue)
ActiveDirectoryError & WithType(ActiveDirectoryErrorType &&value)
AWS_FSX_API ActiveDirectoryError(Aws::Utils::Json::JsonView jsonValue)
void SetActiveDirectoryId(const Aws::String &value)
void SetType(const ActiveDirectoryErrorType &value)
ActiveDirectoryError & WithMessage(Aws::String &&value)
ActiveDirectoryError & WithType(const ActiveDirectoryErrorType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue