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

Output for GetVaultAccessPolicy.

See Also:

AWS * API Reference

*/ class AWS_GLACIER_API GetVaultAccessPolicyResult { public: GetVaultAccessPolicyResult(); GetVaultAccessPolicyResult(const Aws::AmazonWebServiceResult& result); GetVaultAccessPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains the returned vault access policy as a JSON string.

*/ inline const VaultAccessPolicy& GetPolicy() const{ return m_policy; } /** *

Contains the returned vault access policy as a JSON string.

*/ inline void SetPolicy(const VaultAccessPolicy& value) { m_policy = value; } /** *

Contains the returned vault access policy as a JSON string.

*/ inline void SetPolicy(VaultAccessPolicy&& value) { m_policy = std::move(value); } /** *

Contains the returned vault access policy as a JSON string.

*/ inline GetVaultAccessPolicyResult& WithPolicy(const VaultAccessPolicy& value) { SetPolicy(value); return *this;} /** *

Contains the returned vault access policy as a JSON string.

*/ inline GetVaultAccessPolicyResult& WithPolicy(VaultAccessPolicy&& value) { SetPolicy(std::move(value)); return *this;} private: VaultAccessPolicy m_policy; }; } // namespace Model } // namespace Glacier } // namespace Aws