/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains settings for the Systems Manager agent on your build
* instance.See Also:
AWS
* API Reference
Controls whether the Systems Manager agent is removed from your final build * image, prior to creating the new AMI. If this is set to true, then the agent is * removed from the final image. If it's set to false, then the agent is left in, * so that it is included in the new AMI. The default value is false.
*/ inline bool GetUninstallAfterBuild() const{ return m_uninstallAfterBuild; } /** *Controls whether the Systems Manager agent is removed from your final build * image, prior to creating the new AMI. If this is set to true, then the agent is * removed from the final image. If it's set to false, then the agent is left in, * so that it is included in the new AMI. The default value is false.
*/ inline bool UninstallAfterBuildHasBeenSet() const { return m_uninstallAfterBuildHasBeenSet; } /** *Controls whether the Systems Manager agent is removed from your final build * image, prior to creating the new AMI. If this is set to true, then the agent is * removed from the final image. If it's set to false, then the agent is left in, * so that it is included in the new AMI. The default value is false.
*/ inline void SetUninstallAfterBuild(bool value) { m_uninstallAfterBuildHasBeenSet = true; m_uninstallAfterBuild = value; } /** *Controls whether the Systems Manager agent is removed from your final build * image, prior to creating the new AMI. If this is set to true, then the agent is * removed from the final image. If it's set to false, then the agent is left in, * so that it is included in the new AMI. The default value is false.
*/ inline SystemsManagerAgent& WithUninstallAfterBuild(bool value) { SetUninstallAfterBuild(value); return *this;} private: bool m_uninstallAfterBuild; bool m_uninstallAfterBuildHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws