/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace Glacier { namespace Model { VaultLockPolicy::VaultLockPolicy() : m_policyHasBeenSet(false) { } VaultLockPolicy::VaultLockPolicy(JsonView jsonValue) : m_policyHasBeenSet(false) { *this = jsonValue; } VaultLockPolicy& VaultLockPolicy::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Policy")) { m_policy = jsonValue.GetString("Policy"); m_policyHasBeenSet = true; } return *this; } JsonValue VaultLockPolicy::Jsonize() const { JsonValue payload; if(m_policyHasBeenSet) { payload.WithString("Policy", m_policy); } return payload; } } // namespace Model } // namespace Glacier } // namespace Aws