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-kinesisanalyticsv2/source/model/S3ApplicationCodeLocationDescription.cpp

90 lines
1.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kinesisanalyticsv2/model/S3ApplicationCodeLocationDescription.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace KinesisAnalyticsV2
{
namespace Model
{
S3ApplicationCodeLocationDescription::S3ApplicationCodeLocationDescription() :
m_bucketARNHasBeenSet(false),
m_fileKeyHasBeenSet(false),
m_objectVersionHasBeenSet(false)
{
}
S3ApplicationCodeLocationDescription::S3ApplicationCodeLocationDescription(JsonView jsonValue) :
m_bucketARNHasBeenSet(false),
m_fileKeyHasBeenSet(false),
m_objectVersionHasBeenSet(false)
{
*this = jsonValue;
}
S3ApplicationCodeLocationDescription& S3ApplicationCodeLocationDescription::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("BucketARN"))
{
m_bucketARN = jsonValue.GetString("BucketARN");
m_bucketARNHasBeenSet = true;
}
if(jsonValue.ValueExists("FileKey"))
{
m_fileKey = jsonValue.GetString("FileKey");
m_fileKeyHasBeenSet = true;
}
if(jsonValue.ValueExists("ObjectVersion"))
{
m_objectVersion = jsonValue.GetString("ObjectVersion");
m_objectVersionHasBeenSet = true;
}
return *this;
}
JsonValue S3ApplicationCodeLocationDescription::Jsonize() const
{
JsonValue payload;
if(m_bucketARNHasBeenSet)
{
payload.WithString("BucketARN", m_bucketARN);
}
if(m_fileKeyHasBeenSet)
{
payload.WithString("FileKey", m_fileKey);
}
if(m_objectVersionHasBeenSet)
{
payload.WithString("ObjectVersion", m_objectVersion);
}
return payload;
}
} // namespace Model
} // namespace KinesisAnalyticsV2
} // namespace Aws