/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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