AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/signin/Signin_EXPORTS.h>
9#include <aws/signin/model/OAuth2ErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Signin {
21namespace Model {
22
31 public:
32 AWS_SIGNIN_API ConflictException() = default;
35 AWS_SIGNIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline OAuth2ErrorCode GetError() const { return m_error; }
42 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
43 inline void SetError(OAuth2ErrorCode value) {
44 m_errorHasBeenSet = true;
45 m_error = value;
46 }
48 SetError(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetMessage() const { return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 template <typename MessageT = Aws::String>
61 void SetMessage(MessageT&& value) {
62 m_messageHasBeenSet = true;
63 m_message = std::forward<MessageT>(value);
64 }
65 template <typename MessageT = Aws::String>
66 ConflictException& WithMessage(MessageT&& value) {
67 SetMessage(std::forward<MessageT>(value));
68 return *this;
69 }
71 private:
73
74 Aws::String m_message;
75 bool m_errorHasBeenSet = false;
76 bool m_messageHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Signin
81} // namespace Aws
AWS_SIGNIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SIGNIN_API ConflictException()=default
ConflictException & WithError(OAuth2ErrorCode value)
AWS_SIGNIN_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithMessage(MessageT &&value)
void SetError(OAuth2ErrorCode value)
AWS_SIGNIN_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue