AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StorageGatewayError.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace StorageGateway
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_STORAGEGATEWAY_API StorageGatewayError();
39 AWS_STORAGEGATEWAY_API StorageGatewayError(Aws::Utils::Json::JsonView jsonValue);
40 AWS_STORAGEGATEWAY_API StorageGatewayError& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
49 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
50 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
51 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
52 inline StorageGatewayError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
53 inline StorageGatewayError& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
55
57
60 inline const Aws::Map<Aws::String, Aws::String>& GetErrorDetails() const{ return m_errorDetails; }
61 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
62 inline void SetErrorDetails(const Aws::Map<Aws::String, Aws::String>& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
63 inline void SetErrorDetails(Aws::Map<Aws::String, Aws::String>&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
66 inline StorageGatewayError& AddErrorDetails(const Aws::String& key, const Aws::String& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.emplace(key, value); return *this; }
67 inline StorageGatewayError& AddErrorDetails(Aws::String&& key, const Aws::String& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.emplace(std::move(key), value); return *this; }
68 inline StorageGatewayError& AddErrorDetails(const Aws::String& key, Aws::String&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.emplace(key, std::move(value)); return *this; }
69 inline StorageGatewayError& AddErrorDetails(Aws::String&& key, Aws::String&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.emplace(std::move(key), std::move(value)); return *this; }
70 inline StorageGatewayError& AddErrorDetails(const char* key, Aws::String&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.emplace(key, std::move(value)); return *this; }
71 inline StorageGatewayError& AddErrorDetails(Aws::String&& key, const char* value) { m_errorDetailsHasBeenSet = true; m_errorDetails.emplace(std::move(key), value); return *this; }
72 inline StorageGatewayError& AddErrorDetails(const char* key, const char* value) { m_errorDetailsHasBeenSet = true; m_errorDetails.emplace(key, value); return *this; }
74 private:
75
76 ErrorCode m_errorCode;
77 bool m_errorCodeHasBeenSet = false;
78
80 bool m_errorDetailsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace StorageGateway
85} // namespace Aws
AWS_STORAGEGATEWAY_API StorageGatewayError(Aws::Utils::Json::JsonView jsonValue)
StorageGatewayError & AddErrorDetails(const Aws::String &key, Aws::String &&value)
StorageGatewayError & WithErrorDetails(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetErrorDetails() const
StorageGatewayError & WithErrorCode(ErrorCode &&value)
AWS_STORAGEGATEWAY_API StorageGatewayError & operator=(Aws::Utils::Json::JsonView jsonValue)
StorageGatewayError & WithErrorCode(const ErrorCode &value)
StorageGatewayError & AddErrorDetails(Aws::String &&key, const char *value)
StorageGatewayError & WithErrorDetails(Aws::Map< Aws::String, Aws::String > &&value)
StorageGatewayError & AddErrorDetails(const char *key, Aws::String &&value)
StorageGatewayError & AddErrorDetails(const char *key, const char *value)
StorageGatewayError & AddErrorDetails(Aws::String &&key, Aws::String &&value)
void SetErrorDetails(const Aws::Map< Aws::String, Aws::String > &value)
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorDetails(Aws::Map< Aws::String, Aws::String > &&value)
StorageGatewayError & AddErrorDetails(Aws::String &&key, const Aws::String &value)
StorageGatewayError & AddErrorDetails(const Aws::String &key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue