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

Describes the Amazon Web Services accounts that have been granted permission * to use a shared image. For more information about sharing images, see * Share or Unshare a Custom WorkSpaces Image.

See Also:

AWS * API Reference

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

The identifier of the Amazon Web Services account that an image has been * shared with.

*/ inline const Aws::String& GetSharedAccountId() const{ return m_sharedAccountId; } /** *

The identifier of the Amazon Web Services account that an image has been * shared with.

*/ inline bool SharedAccountIdHasBeenSet() const { return m_sharedAccountIdHasBeenSet; } /** *

The identifier of the Amazon Web Services account that an image has been * shared with.

*/ inline void SetSharedAccountId(const Aws::String& value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId = value; } /** *

The identifier of the Amazon Web Services account that an image has been * shared with.

*/ inline void SetSharedAccountId(Aws::String&& value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId = std::move(value); } /** *

The identifier of the Amazon Web Services account that an image has been * shared with.

*/ inline void SetSharedAccountId(const char* value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId.assign(value); } /** *

The identifier of the Amazon Web Services account that an image has been * shared with.

*/ inline ImagePermission& WithSharedAccountId(const Aws::String& value) { SetSharedAccountId(value); return *this;} /** *

The identifier of the Amazon Web Services account that an image has been * shared with.

*/ inline ImagePermission& WithSharedAccountId(Aws::String&& value) { SetSharedAccountId(std::move(value)); return *this;} /** *

The identifier of the Amazon Web Services account that an image has been * shared with.

*/ inline ImagePermission& WithSharedAccountId(const char* value) { SetSharedAccountId(value); return *this;} private: Aws::String m_sharedAccountId; bool m_sharedAccountIdHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws