/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the state of the bitstream generation process for an Amazon FPGA * image (AFI).

See Also:

AWS * API Reference

*/ class FpgaImageState { public: AWS_EC2_API FpgaImageState(); AWS_EC2_API FpgaImageState(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API FpgaImageState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The state. The following are the possible values:

  • * pending - AFI bitstream generation is in progress.

  • *

    available - The AFI is available for use.

  • * failed - AFI bitstream generation failed.

  • * unavailable - The AFI is no longer available for use.

  • *
*/ inline const FpgaImageStateCode& GetCode() const{ return m_code; } /** *

The state. The following are the possible values:

  • * pending - AFI bitstream generation is in progress.

  • *

    available - The AFI is available for use.

  • * failed - AFI bitstream generation failed.

  • * unavailable - The AFI is no longer available for use.

  • *
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The state. The following are the possible values:

  • * pending - AFI bitstream generation is in progress.

  • *

    available - The AFI is available for use.

  • * failed - AFI bitstream generation failed.

  • * unavailable - The AFI is no longer available for use.

  • *
*/ inline void SetCode(const FpgaImageStateCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The state. The following are the possible values:

  • * pending - AFI bitstream generation is in progress.

  • *

    available - The AFI is available for use.

  • * failed - AFI bitstream generation failed.

  • * unavailable - The AFI is no longer available for use.

  • *
*/ inline void SetCode(FpgaImageStateCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The state. The following are the possible values:

  • * pending - AFI bitstream generation is in progress.

  • *

    available - The AFI is available for use.

  • * failed - AFI bitstream generation failed.

  • * unavailable - The AFI is no longer available for use.

  • *
*/ inline FpgaImageState& WithCode(const FpgaImageStateCode& value) { SetCode(value); return *this;} /** *

The state. The following are the possible values:

  • * pending - AFI bitstream generation is in progress.

  • *

    available - The AFI is available for use.

  • * failed - AFI bitstream generation failed.

  • * unavailable - The AFI is no longer available for use.

  • *
*/ inline FpgaImageState& WithCode(FpgaImageStateCode&& value) { SetCode(std::move(value)); return *this;} /** *

If the state is failed, this is the error message.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

If the state is failed, this is the error message.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

If the state is failed, this is the error message.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

If the state is failed, this is the error message.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

If the state is failed, this is the error message.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

If the state is failed, this is the error message.

*/ inline FpgaImageState& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

If the state is failed, this is the error message.

*/ inline FpgaImageState& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

If the state is failed, this is the error message.

*/ inline FpgaImageState& WithMessage(const char* value) { SetMessage(value); return *this;} private: FpgaImageStateCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws