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

Configure image tests for your pipeline build. Tests run after building the * image, to verify that the AMI or container image is valid before distributing * it.

See Also:

AWS * API Reference

*/ class ImageTestsConfiguration { public: AWS_IMAGEBUILDER_API ImageTestsConfiguration(); AWS_IMAGEBUILDER_API ImageTestsConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API ImageTestsConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Determines if tests should run after building the image. Image Builder * defaults to enable tests to run following the image build, before image * distribution.

*/ inline bool GetImageTestsEnabled() const{ return m_imageTestsEnabled; } /** *

Determines if tests should run after building the image. Image Builder * defaults to enable tests to run following the image build, before image * distribution.

*/ inline bool ImageTestsEnabledHasBeenSet() const { return m_imageTestsEnabledHasBeenSet; } /** *

Determines if tests should run after building the image. Image Builder * defaults to enable tests to run following the image build, before image * distribution.

*/ inline void SetImageTestsEnabled(bool value) { m_imageTestsEnabledHasBeenSet = true; m_imageTestsEnabled = value; } /** *

Determines if tests should run after building the image. Image Builder * defaults to enable tests to run following the image build, before image * distribution.

*/ inline ImageTestsConfiguration& WithImageTestsEnabled(bool value) { SetImageTestsEnabled(value); return *this;} /** *

The maximum time in minutes that tests are permitted to run.

*

The timeoutMinutes attribute is not currently active. This value is * ignored.

*/ inline int GetTimeoutMinutes() const{ return m_timeoutMinutes; } /** *

The maximum time in minutes that tests are permitted to run.

*

The timeoutMinutes attribute is not currently active. This value is * ignored.

*/ inline bool TimeoutMinutesHasBeenSet() const { return m_timeoutMinutesHasBeenSet; } /** *

The maximum time in minutes that tests are permitted to run.

*

The timeoutMinutes attribute is not currently active. This value is * ignored.

*/ inline void SetTimeoutMinutes(int value) { m_timeoutMinutesHasBeenSet = true; m_timeoutMinutes = value; } /** *

The maximum time in minutes that tests are permitted to run.

*

The timeoutMinutes attribute is not currently active. This value is * ignored.

*/ inline ImageTestsConfiguration& WithTimeoutMinutes(int value) { SetTimeoutMinutes(value); return *this;} private: bool m_imageTestsEnabled; bool m_imageTestsEnabledHasBeenSet = false; int m_timeoutMinutes; bool m_timeoutMinutesHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws