/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The state of the dataset contents and the reason they are in this
* state.See Also:
AWS
* API Reference
The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, * or FAILED.
*/ inline const DatasetContentState& GetState() const{ return m_state; } /** *The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, * or FAILED.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, * or FAILED.
*/ inline void SetState(const DatasetContentState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, * or FAILED.
*/ inline void SetState(DatasetContentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, * or FAILED.
*/ inline DatasetContentStatus& WithState(const DatasetContentState& value) { SetState(value); return *this;} /** *The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, * or FAILED.
*/ inline DatasetContentStatus& WithState(DatasetContentState&& value) { SetState(std::move(value)); return *this;} /** *The reason the dataset contents are in this state.
*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *The reason the dataset contents are in this state.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *The reason the dataset contents are in this state.
*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *The reason the dataset contents are in this state.
*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *The reason the dataset contents are in this state.
*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *The reason the dataset contents are in this state.
*/ inline DatasetContentStatus& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *The reason the dataset contents are in this state.
*/ inline DatasetContentStatus& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *The reason the dataset contents are in this state.
*/ inline DatasetContentStatus& WithReason(const char* value) { SetReason(value); return *this;} private: DatasetContentState m_state; bool m_stateHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws