AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FailureException.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DynamoDB
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DYNAMODB_API FailureException() = default;
36 AWS_DYNAMODB_API FailureException(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetExceptionName() const { return m_exceptionName; }
46 inline bool ExceptionNameHasBeenSet() const { return m_exceptionNameHasBeenSet; }
47 template<typename ExceptionNameT = Aws::String>
48 void SetExceptionName(ExceptionNameT&& value) { m_exceptionNameHasBeenSet = true; m_exceptionName = std::forward<ExceptionNameT>(value); }
49 template<typename ExceptionNameT = Aws::String>
50 FailureException& WithExceptionName(ExceptionNameT&& value) { SetExceptionName(std::forward<ExceptionNameT>(value)); return *this;}
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) { m_exceptionDescriptionHasBeenSet = true; m_exceptionDescription = std::forward<ExceptionDescriptionT>(value); }
61 template<typename ExceptionDescriptionT = Aws::String>
62 FailureException& WithExceptionDescription(ExceptionDescriptionT&& value) { SetExceptionDescription(std::forward<ExceptionDescriptionT>(value)); return *this;}
64 private:
65
66 Aws::String m_exceptionName;
67 bool m_exceptionNameHasBeenSet = false;
68
69 Aws::String m_exceptionDescription;
70 bool m_exceptionDescriptionHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace DynamoDB
75} // 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