AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ActiveDirectoryError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fsx/FSx_EXPORTS.h>
9#include <aws/fsx/model/ActiveDirectoryErrorType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FSx {
21namespace Model {
22
29 public:
30 AWS_FSX_API ActiveDirectoryError() = default;
34
36
39 inline const Aws::String& GetActiveDirectoryId() const { return m_activeDirectoryId; }
40 inline bool ActiveDirectoryIdHasBeenSet() const { return m_activeDirectoryIdHasBeenSet; }
41 template <typename ActiveDirectoryIdT = Aws::String>
42 void SetActiveDirectoryId(ActiveDirectoryIdT&& value) {
43 m_activeDirectoryIdHasBeenSet = true;
44 m_activeDirectoryId = std::forward<ActiveDirectoryIdT>(value);
45 }
46 template <typename ActiveDirectoryIdT = Aws::String>
47 ActiveDirectoryError& WithActiveDirectoryId(ActiveDirectoryIdT&& value) {
48 SetActiveDirectoryId(std::forward<ActiveDirectoryIdT>(value));
49 return *this;
50 }
52
54
57 inline ActiveDirectoryErrorType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(ActiveDirectoryErrorType value) {
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
64 SetType(value);
65 return *this;
66 }
68
70
71 inline const Aws::String& GetMessage() const { return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
73 template <typename MessageT = Aws::String>
74 void SetMessage(MessageT&& value) {
75 m_messageHasBeenSet = true;
76 m_message = std::forward<MessageT>(value);
77 }
78 template <typename MessageT = Aws::String>
79 ActiveDirectoryError& WithMessage(MessageT&& value) {
80 SetMessage(std::forward<MessageT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_activeDirectoryId;
86
88
89 Aws::String m_message;
90 bool m_activeDirectoryIdHasBeenSet = false;
91 bool m_typeHasBeenSet = false;
92 bool m_messageHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace FSx
97} // namespace Aws
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
void SetActiveDirectoryId(ActiveDirectoryIdT &&value)
const Aws::String & GetActiveDirectoryId() const
ActiveDirectoryError & WithMessage(MessageT &&value)
AWS_FSX_API ActiveDirectoryError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(ActiveDirectoryErrorType value)
AWS_FSX_API ActiveDirectoryError()=default
ActiveDirectoryErrorType GetType() const
AWS_FSX_API ActiveDirectoryError(Aws::Utils::Json::JsonView jsonValue)
ActiveDirectoryError & WithType(ActiveDirectoryErrorType value)
ActiveDirectoryError & WithActiveDirectoryId(ActiveDirectoryIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue