/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The reason for an AutoScalingPolicyStatus change.See
* Also:
AWS
* API Reference
The code indicating the reason for the change in
* status.USER_REQUEST
indicates that the scaling policy status was
* changed by a user. PROVISION_FAILURE
indicates that the status
* change was because the policy failed to provision. CLEANUP_FAILURE
* indicates an error.
The code indicating the reason for the change in
* status.USER_REQUEST
indicates that the scaling policy status was
* changed by a user. PROVISION_FAILURE
indicates that the status
* change was because the policy failed to provision. CLEANUP_FAILURE
* indicates an error.
The code indicating the reason for the change in
* status.USER_REQUEST
indicates that the scaling policy status was
* changed by a user. PROVISION_FAILURE
indicates that the status
* change was because the policy failed to provision. CLEANUP_FAILURE
* indicates an error.
The code indicating the reason for the change in
* status.USER_REQUEST
indicates that the scaling policy status was
* changed by a user. PROVISION_FAILURE
indicates that the status
* change was because the policy failed to provision. CLEANUP_FAILURE
* indicates an error.
The code indicating the reason for the change in
* status.USER_REQUEST
indicates that the scaling policy status was
* changed by a user. PROVISION_FAILURE
indicates that the status
* change was because the policy failed to provision. CLEANUP_FAILURE
* indicates an error.
The code indicating the reason for the change in
* status.USER_REQUEST
indicates that the scaling policy status was
* changed by a user. PROVISION_FAILURE
indicates that the status
* change was because the policy failed to provision. CLEANUP_FAILURE
* indicates an error.
A friendly, more verbose message that accompanies an automatic scaling policy * state change.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *A friendly, more verbose message that accompanies an automatic scaling policy * state change.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *A friendly, more verbose message that accompanies an automatic scaling policy * state change.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *A friendly, more verbose message that accompanies an automatic scaling policy * state change.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *A friendly, more verbose message that accompanies an automatic scaling policy * state change.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *A friendly, more verbose message that accompanies an automatic scaling policy * state change.
*/ inline AutoScalingPolicyStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *A friendly, more verbose message that accompanies an automatic scaling policy * state change.
*/ inline AutoScalingPolicyStateChangeReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *A friendly, more verbose message that accompanies an automatic scaling policy * state change.
*/ inline AutoScalingPolicyStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;} private: AutoScalingPolicyStateChangeReasonCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws