AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetErrorDetails.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotsitewise/model/AssetErrorCode.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 IoTSiteWise
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTSITEWISE_API AssetErrorDetails();
37 AWS_IOTSITEWISE_API AssetErrorDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAssetId() const{ return m_assetId; }
47 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
48 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
49 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
50 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
51 inline AssetErrorDetails& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
52 inline AssetErrorDetails& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
53 inline AssetErrorDetails& WithAssetId(const char* value) { SetAssetId(value); return *this;}
55
57
60 inline const AssetErrorCode& GetCode() const{ return m_code; }
61 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
62 inline void SetCode(const AssetErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
63 inline void SetCode(AssetErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
64 inline AssetErrorDetails& WithCode(const AssetErrorCode& value) { SetCode(value); return *this;}
65 inline AssetErrorDetails& WithCode(AssetErrorCode&& value) { SetCode(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetMessage() const{ return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
74 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
76 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
77 inline AssetErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
78 inline AssetErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
79 inline AssetErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
81 private:
82
83 Aws::String m_assetId;
84 bool m_assetIdHasBeenSet = false;
85
86 AssetErrorCode m_code;
87 bool m_codeHasBeenSet = false;
88
89 Aws::String m_message;
90 bool m_messageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace IoTSiteWise
95} // namespace Aws
AssetErrorDetails & WithCode(const AssetErrorCode &value)
void SetMessage(const Aws::String &value)
const AssetErrorCode & GetCode() const
AssetErrorDetails & WithMessage(const char *value)
AssetErrorDetails & WithAssetId(Aws::String &&value)
void SetCode(const AssetErrorCode &value)
AWS_IOTSITEWISE_API AssetErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssetId(const Aws::String &value)
AssetErrorDetails & WithAssetId(const char *value)
AssetErrorDetails & WithMessage(Aws::String &&value)
AssetErrorDetails & WithMessage(const Aws::String &value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API AssetErrorDetails(Aws::Utils::Json::JsonView jsonValue)
AssetErrorDetails & WithAssetId(const Aws::String &value)
AssetErrorDetails & WithCode(AssetErrorCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue