AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvalidCrossAccountRoleException.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/model/InvalidCrossAccountRoleErrorCode.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 Inspector
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMessage() const{ return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
50 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
51 inline InvalidCrossAccountRoleException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline InvalidCrossAccountRoleException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline InvalidCrossAccountRoleException& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
60 inline const InvalidCrossAccountRoleErrorCode& GetErrorCode() const{ return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(const InvalidCrossAccountRoleErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63 inline void SetErrorCode(InvalidCrossAccountRoleErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
67
69
72 inline bool GetCanRetry() const{ return m_canRetry; }
73 inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; }
74 inline void SetCanRetry(bool value) { m_canRetryHasBeenSet = true; m_canRetry = value; }
75 inline InvalidCrossAccountRoleException& WithCanRetry(bool value) { SetCanRetry(value); return *this;}
77 private:
78
79 Aws::String m_message;
80 bool m_messageHasBeenSet = false;
81
83 bool m_errorCodeHasBeenSet = false;
84
85 bool m_canRetry;
86 bool m_canRetryHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Inspector
91} // namespace Aws
AWS_INSPECTOR_API InvalidCrossAccountRoleException & operator=(Aws::Utils::Json::JsonView jsonValue)
InvalidCrossAccountRoleException & WithErrorCode(const InvalidCrossAccountRoleErrorCode &value)
AWS_INSPECTOR_API InvalidCrossAccountRoleException(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(const InvalidCrossAccountRoleErrorCode &value)
InvalidCrossAccountRoleException & WithMessage(const char *value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const InvalidCrossAccountRoleErrorCode & GetErrorCode() const
InvalidCrossAccountRoleException & WithMessage(const Aws::String &value)
InvalidCrossAccountRoleException & WithErrorCode(InvalidCrossAccountRoleErrorCode &&value)
InvalidCrossAccountRoleException & WithMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue