AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DatasetContentStatus.h
1
6#pragma once
7#include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
8#include <aws/iotanalytics/model/DatasetContentState.h>
9#include <aws/core/utils/memory/stl/AWSString.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 IoTAnalytics
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTANALYTICS_API DatasetContentStatus();
37 AWS_IOTANALYTICS_API DatasetContentStatus(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const DatasetContentState& GetState() const{ return m_state; }
48 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
49 inline void SetState(const DatasetContentState& value) { m_stateHasBeenSet = true; m_state = value; }
50 inline void SetState(DatasetContentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
51 inline DatasetContentStatus& WithState(const DatasetContentState& value) { SetState(value); return *this;}
52 inline DatasetContentStatus& WithState(DatasetContentState&& value) { SetState(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetReason() const{ return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
62 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
63 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
64 inline DatasetContentStatus& WithReason(const Aws::String& value) { SetReason(value); return *this;}
65 inline DatasetContentStatus& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
66 inline DatasetContentStatus& WithReason(const char* value) { SetReason(value); return *this;}
68 private:
69
70 DatasetContentState m_state;
71 bool m_stateHasBeenSet = false;
72
73 Aws::String m_reason;
74 bool m_reasonHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace IoTAnalytics
79} // namespace Aws
AWS_IOTANALYTICS_API DatasetContentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTANALYTICS_API DatasetContentStatus(Aws::Utils::Json::JsonView jsonValue)
DatasetContentStatus & WithReason(const char *value)
const DatasetContentState & GetState() const
DatasetContentStatus & WithReason(Aws::String &&value)
void SetState(const DatasetContentState &value)
DatasetContentStatus & WithState(DatasetContentState &&value)
AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
DatasetContentStatus & WithState(const DatasetContentState &value)
DatasetContentStatus & WithReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue