AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvalidInputException.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/InvalidInputErrorCode.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:
36 AWS_INSPECTOR_API InvalidInputException();
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 InvalidInputException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline InvalidInputException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline InvalidInputException& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
60 inline const InvalidInputErrorCode& GetErrorCode() const{ return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(const InvalidInputErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63 inline void SetErrorCode(InvalidInputErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
64 inline InvalidInputException& WithErrorCode(const InvalidInputErrorCode& value) { SetErrorCode(value); return *this;}
65 inline InvalidInputException& WithErrorCode(InvalidInputErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
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 InvalidInputException& WithCanRetry(bool value) { SetCanRetry(value); return *this;}
77 private:
78
79 Aws::String m_message;
80 bool m_messageHasBeenSet = false;
81
82 InvalidInputErrorCode m_errorCode;
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 InvalidInputException & operator=(Aws::Utils::Json::JsonView jsonValue)
InvalidInputException & WithMessage(const Aws::String &value)
InvalidInputException & WithErrorCode(InvalidInputErrorCode &&value)
InvalidInputException & WithMessage(Aws::String &&value)
InvalidInputException & WithErrorCode(const InvalidInputErrorCode &value)
void SetErrorCode(InvalidInputErrorCode &&value)
InvalidInputException & WithCanRetry(bool value)
const InvalidInputErrorCode & GetErrorCode() const
AWS_INSPECTOR_API InvalidInputException(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(const InvalidInputErrorCode &value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
InvalidInputException & WithMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue