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-quicksight/source/model/DataSourceCredentials.cpp

75 lines
1.4 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/quicksight/model/DataSourceCredentials.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace QuickSight
{
namespace Model
{
DataSourceCredentials::DataSourceCredentials() :
m_credentialPairHasBeenSet(false),
m_copySourceArnHasBeenSet(false)
{
}
DataSourceCredentials::DataSourceCredentials(JsonView jsonValue) :
m_credentialPairHasBeenSet(false),
m_copySourceArnHasBeenSet(false)
{
*this = jsonValue;
}
DataSourceCredentials& DataSourceCredentials::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("CredentialPair"))
{
m_credentialPair = jsonValue.GetObject("CredentialPair");
m_credentialPairHasBeenSet = true;
}
if(jsonValue.ValueExists("CopySourceArn"))
{
m_copySourceArn = jsonValue.GetString("CopySourceArn");
m_copySourceArnHasBeenSet = true;
}
return *this;
}
JsonValue DataSourceCredentials::Jsonize() const
{
JsonValue payload;
if(m_credentialPairHasBeenSet)
{
payload.WithObject("CredentialPair", m_credentialPair.Jsonize());
}
if(m_copySourceArnHasBeenSet)
{
payload.WithString("CopySourceArn", m_copySourceArn);
}
return payload;
}
} // namespace Model
} // namespace QuickSight
} // namespace Aws