AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorDetail.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_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 Greengrass
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GREENGRASS_API ErrorDetail();
35 AWS_GREENGRASS_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GREENGRASS_API ErrorDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetDetailedErrorCode() const{ return m_detailedErrorCode; }
45 inline bool DetailedErrorCodeHasBeenSet() const { return m_detailedErrorCodeHasBeenSet; }
46 inline void SetDetailedErrorCode(const Aws::String& value) { m_detailedErrorCodeHasBeenSet = true; m_detailedErrorCode = value; }
47 inline void SetDetailedErrorCode(Aws::String&& value) { m_detailedErrorCodeHasBeenSet = true; m_detailedErrorCode = std::move(value); }
48 inline void SetDetailedErrorCode(const char* value) { m_detailedErrorCodeHasBeenSet = true; m_detailedErrorCode.assign(value); }
49 inline ErrorDetail& WithDetailedErrorCode(const Aws::String& value) { SetDetailedErrorCode(value); return *this;}
50 inline ErrorDetail& WithDetailedErrorCode(Aws::String&& value) { SetDetailedErrorCode(std::move(value)); return *this;}
51 inline ErrorDetail& WithDetailedErrorCode(const char* value) { SetDetailedErrorCode(value); return *this;}
53
55
58 inline const Aws::String& GetDetailedErrorMessage() const{ return m_detailedErrorMessage; }
59 inline bool DetailedErrorMessageHasBeenSet() const { return m_detailedErrorMessageHasBeenSet; }
60 inline void SetDetailedErrorMessage(const Aws::String& value) { m_detailedErrorMessageHasBeenSet = true; m_detailedErrorMessage = value; }
61 inline void SetDetailedErrorMessage(Aws::String&& value) { m_detailedErrorMessageHasBeenSet = true; m_detailedErrorMessage = std::move(value); }
62 inline void SetDetailedErrorMessage(const char* value) { m_detailedErrorMessageHasBeenSet = true; m_detailedErrorMessage.assign(value); }
63 inline ErrorDetail& WithDetailedErrorMessage(const Aws::String& value) { SetDetailedErrorMessage(value); return *this;}
64 inline ErrorDetail& WithDetailedErrorMessage(Aws::String&& value) { SetDetailedErrorMessage(std::move(value)); return *this;}
65 inline ErrorDetail& WithDetailedErrorMessage(const char* value) { SetDetailedErrorMessage(value); return *this;}
67 private:
68
69 Aws::String m_detailedErrorCode;
70 bool m_detailedErrorCodeHasBeenSet = false;
71
72 Aws::String m_detailedErrorMessage;
73 bool m_detailedErrorMessageHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Greengrass
78} // namespace Aws
void SetDetailedErrorCode(Aws::String &&value)
Definition ErrorDetail.h:47
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASS_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue)
ErrorDetail & WithDetailedErrorCode(const char *value)
Definition ErrorDetail.h:51
AWS_GREENGRASS_API ErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDetailedErrorMessage(const Aws::String &value)
Definition ErrorDetail.h:60
ErrorDetail & WithDetailedErrorCode(Aws::String &&value)
Definition ErrorDetail.h:50
void SetDetailedErrorCode(const char *value)
Definition ErrorDetail.h:48
ErrorDetail & WithDetailedErrorMessage(const char *value)
Definition ErrorDetail.h:65
ErrorDetail & WithDetailedErrorCode(const Aws::String &value)
Definition ErrorDetail.h:49
const Aws::String & GetDetailedErrorMessage() const
Definition ErrorDetail.h:58
const Aws::String & GetDetailedErrorCode() const
Definition ErrorDetail.h:44
void SetDetailedErrorCode(const Aws::String &value)
Definition ErrorDetail.h:46
AWS_GREENGRASS_API ErrorDetail()
void SetDetailedErrorMessage(Aws::String &&value)
Definition ErrorDetail.h:61
void SetDetailedErrorMessage(const char *value)
Definition ErrorDetail.h:62
ErrorDetail & WithDetailedErrorMessage(Aws::String &&value)
Definition ErrorDetail.h:64
ErrorDetail & WithDetailedErrorMessage(const Aws::String &value)
Definition ErrorDetail.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue