/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides status change reason details for the instance fleet. The instance fleet configuration is available only in Amazon EMR releases
* 4.8.0 and later, excluding 5.0.x versions.See Also:
AWS
* API Reference
A code corresponding to the reason the state change occurred.
*/ inline const InstanceFleetStateChangeReasonCode& GetCode() const{ return m_code; } /** *A code corresponding to the reason the state change occurred.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *A code corresponding to the reason the state change occurred.
*/ inline void SetCode(const InstanceFleetStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *A code corresponding to the reason the state change occurred.
*/ inline void SetCode(InstanceFleetStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *A code corresponding to the reason the state change occurred.
*/ inline InstanceFleetStateChangeReason& WithCode(const InstanceFleetStateChangeReasonCode& value) { SetCode(value); return *this;} /** *A code corresponding to the reason the state change occurred.
*/ inline InstanceFleetStateChangeReason& WithCode(InstanceFleetStateChangeReasonCode&& value) { SetCode(std::move(value)); return *this;} /** *An explanatory message.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *An explanatory message.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *An explanatory message.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *An explanatory message.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *An explanatory message.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *An explanatory message.
*/ inline InstanceFleetStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *An explanatory message.
*/ inline InstanceFleetStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *An explanatory message.
*/ inline InstanceFleetStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;} private: InstanceFleetStateChangeReasonCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws