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

Contains the vault lock policy.

See Also:

AWS * API Reference

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

The vault lock policy.

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

The vault lock policy.

*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *

The vault lock policy.

*/ inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } /** *

The vault lock policy.

*/ inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *

The vault lock policy.

*/ inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } /** *

The vault lock policy.

*/ inline VaultLockPolicy& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

The vault lock policy.

*/ inline VaultLockPolicy& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *

The vault lock policy.

*/ inline VaultLockPolicy& WithPolicy(const char* value) { SetPolicy(value); return *this;} private: Aws::String m_policy; bool m_policyHasBeenSet = false; }; } // namespace Model } // namespace Glacier } // namespace Aws