/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the status of a Spot Instance request.See Also:
* AWS
* API Reference
The status code. For a list of status codes, see Spot * request status codes in the Amazon EC2 User Guide for Linux * Instances.
*/ inline const Aws::String& GetCode() const{ return m_code; } /** *The status code. For a list of status codes, see Spot * request status codes in the Amazon EC2 User Guide for Linux * Instances.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The status code. For a list of status codes, see Spot * request status codes in the Amazon EC2 User Guide for Linux * Instances.
*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *The status code. For a list of status codes, see Spot * request status codes in the Amazon EC2 User Guide for Linux * Instances.
*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The status code. For a list of status codes, see Spot * request status codes in the Amazon EC2 User Guide for Linux * Instances.
*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *The status code. For a list of status codes, see Spot * request status codes in the Amazon EC2 User Guide for Linux * Instances.
*/ inline SpotInstanceStatus& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *The status code. For a list of status codes, see Spot * request status codes in the Amazon EC2 User Guide for Linux * Instances.
*/ inline SpotInstanceStatus& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *The status code. For a list of status codes, see Spot * request status codes in the Amazon EC2 User Guide for Linux * Instances.
*/ inline SpotInstanceStatus& WithCode(const char* value) { SetCode(value); return *this;} /** *The description for the status code.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The description for the status code.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The description for the status code.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The description for the status code.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The description for the status code.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The description for the status code.
*/ inline SpotInstanceStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The description for the status code.
*/ inline SpotInstanceStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The description for the status code.
*/ inline SpotInstanceStatus& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The date and time of the most recent status update, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *The date and time of the most recent status update, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; } /** *The date and time of the most recent status update, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; } /** *The date and time of the most recent status update, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); } /** *The date and time of the most recent status update, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline SpotInstanceStatus& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *The date and time of the most recent status update, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline SpotInstanceStatus& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Utils::DateTime m_updateTime; bool m_updateTimeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws