AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
39
40
42
45 inline const Aws::String& GetActiveDirectoryId() const { return m_activeDirectoryId; }
46 inline bool ActiveDirectoryIdHasBeenSet() const { return m_activeDirectoryIdHasBeenSet; }
47 template<typename ActiveDirectoryIdT = Aws::String>
48 void SetActiveDirectoryId(ActiveDirectoryIdT&& value) { m_activeDirectoryIdHasBeenSet = true; m_activeDirectoryId = std::forward<ActiveDirectoryIdT>(value); }
49 template<typename ActiveDirectoryIdT = Aws::String>
50 ActiveDirectoryError& WithActiveDirectoryId(ActiveDirectoryIdT&& value) { SetActiveDirectoryId(std::forward<ActiveDirectoryIdT>(value)); return *this;}
52
54
57 inline ActiveDirectoryErrorType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(ActiveDirectoryErrorType value) { m_typeHasBeenSet = true; m_type = value; }
60 inline ActiveDirectoryError& WithType(ActiveDirectoryErrorType value) { SetType(value); return *this;}
62
64
65 inline const Aws::String& GetMessage() const { return m_message; }
66 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
67 template<typename MessageT = Aws::String>
68 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
69 template<typename MessageT = Aws::String>
70 ActiveDirectoryError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
72 private:
73
74 Aws::String m_activeDirectoryId;
75 bool m_activeDirectoryIdHasBeenSet = false;
76
78 bool m_typeHasBeenSet = false;
79
80 Aws::String m_message;
81 bool m_messageHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace FSx
86} // 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