/** * 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 permissions for a connection alias. Connection aliases are used * for cross-Region redirection. For more information, see * Cross-Region Redirection for Amazon WorkSpaces.

See Also:

* AWS * API Reference

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

The identifier of the Amazon Web Services account that the connection alias * is shared with.

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

The identifier of the Amazon Web Services account that the connection alias * is shared with.

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

The identifier of the Amazon Web Services account that the connection alias * is shared with.

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

The identifier of the Amazon Web Services account that the connection alias * is 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 the connection alias * is shared with.

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

The identifier of the Amazon Web Services account that the connection alias * is shared with.

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

The identifier of the Amazon Web Services account that the connection alias * is shared with.

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

The identifier of the Amazon Web Services account that the connection alias * is shared with.

*/ inline ConnectionAliasPermission& WithSharedAccountId(const char* value) { SetSharedAccountId(value); return *this;} /** *

Indicates whether the specified Amazon Web Services account is allowed to * associate the connection alias with a directory.

*/ inline bool GetAllowAssociation() const{ return m_allowAssociation; } /** *

Indicates whether the specified Amazon Web Services account is allowed to * associate the connection alias with a directory.

*/ inline bool AllowAssociationHasBeenSet() const { return m_allowAssociationHasBeenSet; } /** *

Indicates whether the specified Amazon Web Services account is allowed to * associate the connection alias with a directory.

*/ inline void SetAllowAssociation(bool value) { m_allowAssociationHasBeenSet = true; m_allowAssociation = value; } /** *

Indicates whether the specified Amazon Web Services account is allowed to * associate the connection alias with a directory.

*/ inline ConnectionAliasPermission& WithAllowAssociation(bool value) { SetAllowAssociation(value); return *this;} private: Aws::String m_sharedAccountId; bool m_sharedAccountIdHasBeenSet = false; bool m_allowAssociation; bool m_allowAssociationHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws