AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FailureException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DynamoDB {
20namespace Model {
21
29 public:
30 AWS_DYNAMODB_API FailureException() = default;
31 AWS_DYNAMODB_API FailureException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetExceptionName() const { return m_exceptionName; }
40 inline bool ExceptionNameHasBeenSet() const { return m_exceptionNameHasBeenSet; }
41 template <typename ExceptionNameT = Aws::String>
42 void SetExceptionName(ExceptionNameT&& value) {
43 m_exceptionNameHasBeenSet = true;
44 m_exceptionName = std::forward<ExceptionNameT>(value);
45 }
46 template <typename ExceptionNameT = Aws::String>
47 FailureException& WithExceptionName(ExceptionNameT&& value) {
48 SetExceptionName(std::forward<ExceptionNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetExceptionDescription() const { return m_exceptionDescription; }
58 inline bool ExceptionDescriptionHasBeenSet() const { return m_exceptionDescriptionHasBeenSet; }
59 template <typename ExceptionDescriptionT = Aws::String>
60 void SetExceptionDescription(ExceptionDescriptionT&& value) {
61 m_exceptionDescriptionHasBeenSet = true;
62 m_exceptionDescription = std::forward<ExceptionDescriptionT>(value);
63 }
64 template <typename ExceptionDescriptionT = Aws::String>
65 FailureException& WithExceptionDescription(ExceptionDescriptionT&& value) {
66 SetExceptionDescription(std::forward<ExceptionDescriptionT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_exceptionName;
72
73 Aws::String m_exceptionDescription;
74 bool m_exceptionNameHasBeenSet = false;
75 bool m_exceptionDescriptionHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DynamoDB
80} // namespace Aws
FailureException & WithExceptionDescription(ExceptionDescriptionT &&value)
void SetExceptionDescription(ExceptionDescriptionT &&value)
FailureException & WithExceptionName(ExceptionNameT &&value)
const Aws::String & GetExceptionDescription() const
AWS_DYNAMODB_API FailureException()=default
AWS_DYNAMODB_API FailureException(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API FailureException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetExceptionName() const
void SetExceptionName(ExceptionNameT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue