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