AWS SDK for C++

AWS SDK for C++ Version 1.11.874

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
68 public:
69 AWS_ORGANIZATIONS_API HandshakeConstraintViolationException() = default;
72 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
73
75
76 inline const Aws::String& GetMessage() const { return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 template <typename MessageT = Aws::String>
79 void SetMessage(MessageT&& value) {
80 m_messageHasBeenSet = true;
81 m_message = std::forward<MessageT>(value);
82 }
83 template <typename MessageT = Aws::String>
85 SetMessage(std::forward<MessageT>(value));
86 return *this;
87 }
89
91
92 inline HandshakeConstraintViolationExceptionReason GetReason() const { return m_reason; }
93 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
95 m_reasonHasBeenSet = true;
96 m_reason = value;
97 }
99 SetReason(value);
100 return *this;
101 }
103 private:
104 Aws::String m_message;
105
107 bool m_messageHasBeenSet = false;
108 bool m_reasonHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Organizations
113} // 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