/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Backup::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; PutBackupVaultLockConfigurationRequest::PutBackupVaultLockConfigurationRequest() : m_backupVaultNameHasBeenSet(false), m_minRetentionDays(0), m_minRetentionDaysHasBeenSet(false), m_maxRetentionDays(0), m_maxRetentionDaysHasBeenSet(false), m_changeableForDays(0), m_changeableForDaysHasBeenSet(false) { } Aws::String PutBackupVaultLockConfigurationRequest::SerializePayload() const { JsonValue payload; if(m_minRetentionDaysHasBeenSet) { payload.WithInt64("MinRetentionDays", m_minRetentionDays); } if(m_maxRetentionDaysHasBeenSet) { payload.WithInt64("MaxRetentionDays", m_maxRetentionDays); } if(m_changeableForDaysHasBeenSet) { payload.WithInt64("ChangeableForDays", m_changeableForDays); } return payload.View().WriteReadable(); }