AWS SDK for C++  1.9.153
AWS SDK for C++
AssetErrorDetails.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoTSiteWise
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetAssetId() const{ return m_assetId; }
46 
50  inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
51 
55  inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
56 
60  inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
61 
65  inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
66 
70  inline AssetErrorDetails& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
71 
75  inline AssetErrorDetails& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
76 
80  inline AssetErrorDetails& WithAssetId(const char* value) { SetAssetId(value); return *this;}
81 
82 
86  inline const AssetErrorCode& GetCode() const{ return m_code; }
87 
91  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
92 
96  inline void SetCode(const AssetErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
97 
101  inline void SetCode(AssetErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
102 
106  inline AssetErrorDetails& WithCode(const AssetErrorCode& value) { SetCode(value); return *this;}
107 
111  inline AssetErrorDetails& WithCode(AssetErrorCode&& value) { SetCode(std::move(value)); return *this;}
112 
113 
117  inline const Aws::String& GetMessage() const{ return m_message; }
118 
122  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
123 
127  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
128 
132  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
133 
137  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
138 
142  inline AssetErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
143 
147  inline AssetErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
148 
152  inline AssetErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
153 
154  private:
155 
156  Aws::String m_assetId;
157  bool m_assetIdHasBeenSet;
158 
159  AssetErrorCode m_code;
160  bool m_codeHasBeenSet;
161 
162  Aws::String m_message;
163  bool m_messageHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace IoTSiteWise
168 } // namespace Aws
Aws::IoTSiteWise::Model::AssetErrorDetails::SetCode
void SetCode(AssetErrorCode &&value)
Definition: AssetErrorDetails.h:101
AssetErrorCode.h
Aws::IoTSiteWise::Model::AssetErrorDetails::WithAssetId
AssetErrorDetails & WithAssetId(Aws::String &&value)
Definition: AssetErrorDetails.h:75
Aws::IoTSiteWise::Model::AssetErrorDetails::SetMessage
void SetMessage(Aws::String &&value)
Definition: AssetErrorDetails.h:132
Aws::IoTSiteWise::Model::AssetErrorDetails::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: AssetErrorDetails.h:122
Aws::IoTSiteWise::Model::AssetErrorDetails::WithAssetId
AssetErrorDetails & WithAssetId(const char *value)
Definition: AssetErrorDetails.h:80
Aws::IoTSiteWise::Model::AssetErrorDetails::GetCode
const AssetErrorCode & GetCode() const
Definition: AssetErrorDetails.h:86
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AssetErrorDetails::WithCode
AssetErrorDetails & WithCode(AssetErrorCode &&value)
Definition: AssetErrorDetails.h:111
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AssetErrorDetails::AssetIdHasBeenSet
bool AssetIdHasBeenSet() const
Definition: AssetErrorDetails.h:50
Aws::IoTSiteWise::Model::AssetErrorDetails
Definition: AssetErrorDetails.h:34
Aws::IoTSiteWise::Model::AssetErrorDetails::WithCode
AssetErrorDetails & WithCode(const AssetErrorCode &value)
Definition: AssetErrorDetails.h:106
Aws::IoTSiteWise::Model::AssetErrorDetails::WithAssetId
AssetErrorDetails & WithAssetId(const Aws::String &value)
Definition: AssetErrorDetails.h:70
Aws::IoTSiteWise::Model::AssetErrorDetails::AssetErrorDetails
AssetErrorDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetErrorDetails::AssetErrorDetails
AssetErrorDetails()
Aws::IoTSiteWise::Model::AssetErrorDetails::SetMessage
void SetMessage(const Aws::String &value)
Definition: AssetErrorDetails.h:127
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::AssetErrorDetails::SetAssetId
void SetAssetId(const Aws::String &value)
Definition: AssetErrorDetails.h:55
Aws::IoTSiteWise::Model::AssetErrorDetails::SetAssetId
void SetAssetId(const char *value)
Definition: AssetErrorDetails.h:65
Aws::IoTSiteWise::Model::AssetErrorDetails::GetAssetId
const Aws::String & GetAssetId() const
Definition: AssetErrorDetails.h:45
Aws::IoTSiteWise::Model::AssetErrorDetails::SetMessage
void SetMessage(const char *value)
Definition: AssetErrorDetails.h:137
Aws::IoTSiteWise::Model::AssetErrorDetails::WithMessage
AssetErrorDetails & WithMessage(const char *value)
Definition: AssetErrorDetails.h:152
Aws::IoTSiteWise::Model::AssetErrorCode
AssetErrorCode
Definition: AssetErrorCode.h:17
Aws::IoTSiteWise::Model::AssetErrorDetails::SetCode
void SetCode(const AssetErrorCode &value)
Definition: AssetErrorDetails.h:96
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetErrorDetails::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: AssetErrorDetails.h:91
Aws::IoTSiteWise::Model::AssetErrorDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::AssetErrorDetails::GetMessage
const Aws::String & GetMessage() const
Definition: AssetErrorDetails.h:117
Aws::IoTSiteWise::Model::AssetErrorDetails::operator=
AssetErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetErrorDetails::WithMessage
AssetErrorDetails & WithMessage(const Aws::String &value)
Definition: AssetErrorDetails.h:142
Aws::IoTSiteWise::Model::AssetErrorDetails::WithMessage
AssetErrorDetails & WithMessage(Aws::String &&value)
Definition: AssetErrorDetails.h:147
Aws::IoTSiteWise::Model::AssetErrorDetails::SetAssetId
void SetAssetId(Aws::String &&value)
Definition: AssetErrorDetails.h:60