/** * 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 AppStream { namespace Model { /** *

Describes the permissions for an image.

See Also:

AWS * API Reference

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

Indicates whether the image can be used for a fleet.

*/ inline bool GetAllowFleet() const{ return m_allowFleet; } /** *

Indicates whether the image can be used for a fleet.

*/ inline bool AllowFleetHasBeenSet() const { return m_allowFleetHasBeenSet; } /** *

Indicates whether the image can be used for a fleet.

*/ inline void SetAllowFleet(bool value) { m_allowFleetHasBeenSet = true; m_allowFleet = value; } /** *

Indicates whether the image can be used for a fleet.

*/ inline ImagePermissions& WithAllowFleet(bool value) { SetAllowFleet(value); return *this;} /** *

Indicates whether the image can be used for an image builder.

*/ inline bool GetAllowImageBuilder() const{ return m_allowImageBuilder; } /** *

Indicates whether the image can be used for an image builder.

*/ inline bool AllowImageBuilderHasBeenSet() const { return m_allowImageBuilderHasBeenSet; } /** *

Indicates whether the image can be used for an image builder.

*/ inline void SetAllowImageBuilder(bool value) { m_allowImageBuilderHasBeenSet = true; m_allowImageBuilder = value; } /** *

Indicates whether the image can be used for an image builder.

*/ inline ImagePermissions& WithAllowImageBuilder(bool value) { SetAllowImageBuilder(value); return *this;} private: bool m_allowFleet; bool m_allowFleetHasBeenSet = false; bool m_allowImageBuilder; bool m_allowImageBuilderHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws