AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename AssetIdT = Aws::String>
49 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
50 template<typename AssetIdT = Aws::String>
51 AssetErrorDetails& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
53
55
58 inline AssetErrorCode GetCode() const { return m_code; }
59 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
60 inline void SetCode(AssetErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
61 inline AssetErrorDetails& WithCode(AssetErrorCode value) { SetCode(value); return *this;}
63
65
68 inline const Aws::String& GetMessage() const { return m_message; }
69 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
70 template<typename MessageT = Aws::String>
71 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
72 template<typename MessageT = Aws::String>
73 AssetErrorDetails& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
75 private:
76
77 Aws::String m_assetId;
78 bool m_assetIdHasBeenSet = false;
79
81 bool m_codeHasBeenSet = false;
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace IoTSiteWise
89} // namespace Aws
AssetErrorDetails & WithAssetId(AssetIdT &&value)
AssetErrorDetails & WithMessage(MessageT &&value)
AWS_IOTSITEWISE_API AssetErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetErrorDetails & WithCode(AssetErrorCode value)
AWS_IOTSITEWISE_API AssetErrorDetails()=default
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API AssetErrorDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue