This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-glacier/source/model/VaultLockPolicy.cpp

60 lines
981 B
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/glacier/model/VaultLockPolicy.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
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