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

Contains information about a grant.

See Also:

AWS API * Reference

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

The grantee.

*/ inline const Grantee& GetGrantee() const{ return m_grantee; } /** *

The grantee.

*/ inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; } /** *

The grantee.

*/ inline void SetGrantee(const Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; } /** *

The grantee.

*/ inline void SetGrantee(Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); } /** *

The grantee.

*/ inline Grant& WithGrantee(const Grantee& value) { SetGrantee(value); return *this;} /** *

The grantee.

*/ inline Grant& WithGrantee(Grantee&& value) { SetGrantee(std::move(value)); return *this;} /** *

Specifies the permission given to the grantee.

*/ inline const Permission& GetPermission() const{ return m_permission; } /** *

Specifies the permission given to the grantee.

*/ inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; } /** *

Specifies the permission given to the grantee.

*/ inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; } /** *

Specifies the permission given to the grantee.

*/ inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); } /** *

Specifies the permission given to the grantee.

*/ inline Grant& WithPermission(const Permission& value) { SetPermission(value); return *this;} /** *

Specifies the permission given to the grantee.

*/ inline Grant& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;} private: Grantee m_grantee; bool m_granteeHasBeenSet = false; Permission m_permission; bool m_permissionHasBeenSet = false; }; } // namespace Model } // namespace Glacier } // namespace Aws