/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The details of the step state change reason.See Also:
AWS
* API Reference
The programmable code for the state change reason. Note: Currently, the * service provides no code for the state change.
*/ inline const StepStateChangeReasonCode& GetCode() const{ return m_code; } /** *The programmable code for the state change reason. Note: Currently, the * service provides no code for the state change.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The programmable code for the state change reason. Note: Currently, the * service provides no code for the state change.
*/ inline void SetCode(const StepStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *The programmable code for the state change reason. Note: Currently, the * service provides no code for the state change.
*/ inline void SetCode(StepStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The programmable code for the state change reason. Note: Currently, the * service provides no code for the state change.
*/ inline StepStateChangeReason& WithCode(const StepStateChangeReasonCode& value) { SetCode(value); return *this;} /** *The programmable code for the state change reason. Note: Currently, the * service provides no code for the state change.
*/ inline StepStateChangeReason& WithCode(StepStateChangeReasonCode&& value) { SetCode(std::move(value)); return *this;} /** *The descriptive message for the state change reason.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The descriptive message for the state change reason.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The descriptive message for the state change reason.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The descriptive message for the state change reason.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The descriptive message for the state change reason.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The descriptive message for the state change reason.
*/ inline StepStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The descriptive message for the state change reason.
*/ inline StepStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The descriptive message for the state change reason.
*/ inline StepStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;} private: StepStateChangeReasonCode m_code; bool m_codeHasBeenSet; Aws::String m_message; bool m_messageHasBeenSet; }; } // namespace Model } // namespace EMR } // namespace Aws