125 lines
3.2 KiB
C++
125 lines
3.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
|
|
#include <aws/imagebuilder/model/ImageStatus.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace imagebuilder
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p> Image state shows the image status and the reason for that status.
|
|
* </p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ImageState">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_IMAGEBUILDER_API ImageState
|
|
{
|
|
public:
|
|
ImageState();
|
|
ImageState(Aws::Utils::Json::JsonView jsonValue);
|
|
ImageState& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The status of the image. </p>
|
|
*/
|
|
inline const ImageStatus& GetStatus() const{ return m_status; }
|
|
|
|
/**
|
|
* <p>The status of the image. </p>
|
|
*/
|
|
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The status of the image. </p>
|
|
*/
|
|
inline void SetStatus(const ImageStatus& value) { m_statusHasBeenSet = true; m_status = value; }
|
|
|
|
/**
|
|
* <p>The status of the image. </p>
|
|
*/
|
|
inline void SetStatus(ImageStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
|
|
|
|
/**
|
|
* <p>The status of the image. </p>
|
|
*/
|
|
inline ImageState& WithStatus(const ImageStatus& value) { SetStatus(value); return *this;}
|
|
|
|
/**
|
|
* <p>The status of the image. </p>
|
|
*/
|
|
inline ImageState& WithStatus(ImageStatus&& value) { SetStatus(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The reason for the image's status. </p>
|
|
*/
|
|
inline const Aws::String& GetReason() const{ return m_reason; }
|
|
|
|
/**
|
|
* <p>The reason for the image's status. </p>
|
|
*/
|
|
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The reason for the image's status. </p>
|
|
*/
|
|
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
|
|
|
|
/**
|
|
* <p>The reason for the image's status. </p>
|
|
*/
|
|
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
|
|
|
|
/**
|
|
* <p>The reason for the image's status. </p>
|
|
*/
|
|
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
|
|
|
|
/**
|
|
* <p>The reason for the image's status. </p>
|
|
*/
|
|
inline ImageState& WithReason(const Aws::String& value) { SetReason(value); return *this;}
|
|
|
|
/**
|
|
* <p>The reason for the image's status. </p>
|
|
*/
|
|
inline ImageState& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The reason for the image's status. </p>
|
|
*/
|
|
inline ImageState& WithReason(const char* value) { SetReason(value); return *this;}
|
|
|
|
private:
|
|
|
|
ImageStatus m_status;
|
|
bool m_statusHasBeenSet;
|
|
|
|
Aws::String m_reason;
|
|
bool m_reasonHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace imagebuilder
|
|
} // namespace Aws
|