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/KinesisStreamsInputDescription.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/kinesisanalyticsv2/model/KinesisStreamsInputDescription.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
{
KinesisStreamsInputDescription::KinesisStreamsInputDescription() :
m_resourceARNHasBeenSet(false),
m_roleARNHasBeenSet(false)
{
}
KinesisStreamsInputDescription::KinesisStreamsInputDescription(JsonView jsonValue) :
m_resourceARNHasBeenSet(false),
m_roleARNHasBeenSet(false)
{
*this = jsonValue;
}
KinesisStreamsInputDescription& KinesisStreamsInputDescription::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ResourceARN"))
{
m_resourceARN = jsonValue.GetString("ResourceARN");
m_resourceARNHasBeenSet = true;
}
if(jsonValue.ValueExists("RoleARN"))
{
m_roleARN = jsonValue.GetString("RoleARN");
m_roleARNHasBeenSet = true;
}
return *this;
}
JsonValue KinesisStreamsInputDescription::Jsonize() const
{
JsonValue payload;
if(m_resourceARNHasBeenSet)
{
payload.WithString("ResourceARN", m_resourceARN);
}
if(m_roleARNHasBeenSet)
{
payload.WithString("RoleARN", m_roleARN);
}
return payload;
}
} // namespace Model
} // namespace KinesisAnalyticsV2
} // namespace Aws