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-glue/source/model/ConnectionPasswordEncryption.cpp

77 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/glue/model/ConnectionPasswordEncryption.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Glue
{
namespace Model
{
ConnectionPasswordEncryption::ConnectionPasswordEncryption() :
m_returnConnectionPasswordEncrypted(false),
m_returnConnectionPasswordEncryptedHasBeenSet(false),
m_awsKmsKeyIdHasBeenSet(false)
{
}
ConnectionPasswordEncryption::ConnectionPasswordEncryption(JsonView jsonValue) :
m_returnConnectionPasswordEncrypted(false),
m_returnConnectionPasswordEncryptedHasBeenSet(false),
m_awsKmsKeyIdHasBeenSet(false)
{
*this = jsonValue;
}
ConnectionPasswordEncryption& ConnectionPasswordEncryption::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ReturnConnectionPasswordEncrypted"))
{
m_returnConnectionPasswordEncrypted = jsonValue.GetBool("ReturnConnectionPasswordEncrypted");
m_returnConnectionPasswordEncryptedHasBeenSet = true;
}
if(jsonValue.ValueExists("AwsKmsKeyId"))
{
m_awsKmsKeyId = jsonValue.GetString("AwsKmsKeyId");
m_awsKmsKeyIdHasBeenSet = true;
}
return *this;
}
JsonValue ConnectionPasswordEncryption::Jsonize() const
{
JsonValue payload;
if(m_returnConnectionPasswordEncryptedHasBeenSet)
{
payload.WithBool("ReturnConnectionPasswordEncrypted", m_returnConnectionPasswordEncrypted);
}
if(m_awsKmsKeyIdHasBeenSet)
{
payload.WithString("AwsKmsKeyId", m_awsKmsKeyId);
}
return payload;
}
} // namespace Model
} // namespace Glue
} // namespace Aws