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-dataexchange/source/model/ExportAssetToSignedUrlRequestDetails.cpp

90 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/ExportAssetToSignedUrlRequestDetails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DataExchange
{
namespace Model
{
ExportAssetToSignedUrlRequestDetails::ExportAssetToSignedUrlRequestDetails() :
m_assetIdHasBeenSet(false),
m_dataSetIdHasBeenSet(false),
m_revisionIdHasBeenSet(false)
{
}
ExportAssetToSignedUrlRequestDetails::ExportAssetToSignedUrlRequestDetails(JsonView jsonValue) :
m_assetIdHasBeenSet(false),
m_dataSetIdHasBeenSet(false),
m_revisionIdHasBeenSet(false)
{
*this = jsonValue;
}
ExportAssetToSignedUrlRequestDetails& ExportAssetToSignedUrlRequestDetails::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("AssetId"))
{
m_assetId = jsonValue.GetString("AssetId");
m_assetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("DataSetId"))
{
m_dataSetId = jsonValue.GetString("DataSetId");
m_dataSetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("RevisionId"))
{
m_revisionId = jsonValue.GetString("RevisionId");
m_revisionIdHasBeenSet = true;
}
return *this;
}
JsonValue ExportAssetToSignedUrlRequestDetails::Jsonize() const
{
JsonValue payload;
if(m_assetIdHasBeenSet)
{
payload.WithString("AssetId", m_assetId);
}
if(m_dataSetIdHasBeenSet)
{
payload.WithString("DataSetId", m_dataSetId);
}
if(m_revisionIdHasBeenSet)
{
payload.WithString("RevisionId", m_revisionId);
}
return payload;
}
} // namespace Model
} // namespace DataExchange
} // namespace Aws