AWS SDK for C++  1.9.108
AWS SDK for C++
AccessDeniedForDependencyException.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Organizations
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
45 
46  inline const Aws::String& GetMessage() const{ return m_message; }
47 
48 
49  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
50 
51 
52  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
53 
54 
55  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
56 
57 
58  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
59 
60 
61  inline AccessDeniedForDependencyException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
62 
63 
64  inline AccessDeniedForDependencyException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
65 
66 
67  inline AccessDeniedForDependencyException& WithMessage(const char* value) { SetMessage(value); return *this;}
68 
69 
70 
71  inline const AccessDeniedForDependencyExceptionReason& GetReason() const{ return m_reason; }
72 
73 
74  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
75 
76 
77  inline void SetReason(const AccessDeniedForDependencyExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
78 
79 
80  inline void SetReason(AccessDeniedForDependencyExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
81 
82 
83  inline AccessDeniedForDependencyException& WithReason(const AccessDeniedForDependencyExceptionReason& value) { SetReason(value); return *this;}
84 
85 
86  inline AccessDeniedForDependencyException& WithReason(AccessDeniedForDependencyExceptionReason&& value) { SetReason(std::move(value)); return *this;}
87 
88  private:
89 
90  Aws::String m_message;
91  bool m_messageHasBeenSet;
92 
94  bool m_reasonHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace Organizations
99 } // namespace Aws
Aws::Organizations::Model::AccessDeniedForDependencyException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: AccessDeniedForDependencyException.h:49
Aws::Organizations::Model::AccessDeniedForDependencyException::WithMessage
AccessDeniedForDependencyException & WithMessage(const char *value)
Definition: AccessDeniedForDependencyException.h:67
Aws::Organizations::Model::AccessDeniedForDependencyException::AccessDeniedForDependencyException
AccessDeniedForDependencyException(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::AccessDeniedForDependencyException::WithReason
AccessDeniedForDependencyException & WithReason(AccessDeniedForDependencyExceptionReason &&value)
Definition: AccessDeniedForDependencyException.h:86
Aws::Organizations::Model::AccessDeniedForDependencyException::operator=
AccessDeniedForDependencyException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::AccessDeniedForDependencyException::SetReason
void SetReason(AccessDeniedForDependencyExceptionReason &&value)
Definition: AccessDeniedForDependencyException.h:80
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::AccessDeniedForDependencyException::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: AccessDeniedForDependencyException.h:74
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::AccessDeniedForDependencyException::GetMessage
const Aws::String & GetMessage() const
Definition: AccessDeniedForDependencyException.h:46
Aws::Organizations::Model::AccessDeniedForDependencyExceptionReason
AccessDeniedForDependencyExceptionReason
Definition: AccessDeniedForDependencyExceptionReason.h:17
Aws::Organizations::Model::AccessDeniedForDependencyException::WithMessage
AccessDeniedForDependencyException & WithMessage(const Aws::String &value)
Definition: AccessDeniedForDependencyException.h:61
AccessDeniedForDependencyExceptionReason.h
Aws::Organizations::Model::AccessDeniedForDependencyException::SetMessage
void SetMessage(Aws::String &&value)
Definition: AccessDeniedForDependencyException.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::AccessDeniedForDependencyException::SetMessage
void SetMessage(const char *value)
Definition: AccessDeniedForDependencyException.h:58
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::AccessDeniedForDependencyException
Definition: AccessDeniedForDependencyException.h:37
Aws::Organizations::Model::AccessDeniedForDependencyException::SetReason
void SetReason(const AccessDeniedForDependencyExceptionReason &value)
Definition: AccessDeniedForDependencyException.h:77
Organizations_EXPORTS.h
Aws::Organizations::Model::AccessDeniedForDependencyException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::AccessDeniedForDependencyException::WithMessage
AccessDeniedForDependencyException & WithMessage(Aws::String &&value)
Definition: AccessDeniedForDependencyException.h:64
Aws::Organizations::Model::AccessDeniedForDependencyException::GetReason
const AccessDeniedForDependencyExceptionReason & GetReason() const
Definition: AccessDeniedForDependencyException.h:71
Aws::Organizations::Model::AccessDeniedForDependencyException::WithReason
AccessDeniedForDependencyException & WithReason(const AccessDeniedForDependencyExceptionReason &value)
Definition: AccessDeniedForDependencyException.h:83
Aws::Organizations::Model::AccessDeniedForDependencyException::AccessDeniedForDependencyException
AccessDeniedForDependencyException()
Aws::Organizations::Model::AccessDeniedForDependencyException::SetMessage
void SetMessage(const Aws::String &value)
Definition: AccessDeniedForDependencyException.h:52