AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
HandshakeConstraintViolationException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/organizations/Organizations_EXPORTS.h>
9#include <aws/organizations/model/HandshakeConstraintViolationExceptionReason.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Organizations {
21namespace Model {
22
65 public:
66 AWS_ORGANIZATIONS_API HandshakeConstraintViolationException() = default;
69 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
70
72
73 inline const Aws::String& GetMessage() const { return m_message; }
74 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
75 template <typename MessageT = Aws::String>
76 void SetMessage(MessageT&& value) {
77 m_messageHasBeenSet = true;
78 m_message = std::forward<MessageT>(value);
79 }
80 template <typename MessageT = Aws::String>
82 SetMessage(std::forward<MessageT>(value));
83 return *this;
84 }
86
88
89 inline HandshakeConstraintViolationExceptionReason GetReason() const { return m_reason; }
90 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
92 m_reasonHasBeenSet = true;
93 m_reason = value;
94 }
96 SetReason(value);
97 return *this;
98 }
100 private:
101 Aws::String m_message;
102
104 bool m_messageHasBeenSet = false;
105 bool m_reasonHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Organizations
110} // namespace Aws
AWS_ORGANIZATIONS_API HandshakeConstraintViolationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
HandshakeConstraintViolationException & WithReason(HandshakeConstraintViolationExceptionReason value)
AWS_ORGANIZATIONS_API HandshakeConstraintViolationException(Aws::Utils::Json::JsonView jsonValue)
HandshakeConstraintViolationException & WithMessage(MessageT &&value)
AWS_ORGANIZATIONS_API HandshakeConstraintViolationException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue