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-iot/source/model/StreamSummary.cpp

107 lines
1.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/StreamSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT
{
namespace Model
{
StreamSummary::StreamSummary() :
m_streamIdHasBeenSet(false),
m_streamArnHasBeenSet(false),
m_streamVersion(0),
m_streamVersionHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
}
StreamSummary::StreamSummary(JsonView jsonValue) :
m_streamIdHasBeenSet(false),
m_streamArnHasBeenSet(false),
m_streamVersion(0),
m_streamVersionHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
*this = jsonValue;
}
StreamSummary& StreamSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("streamId"))
{
m_streamId = jsonValue.GetString("streamId");
m_streamIdHasBeenSet = true;
}
if(jsonValue.ValueExists("streamArn"))
{
m_streamArn = jsonValue.GetString("streamArn");
m_streamArnHasBeenSet = true;
}
if(jsonValue.ValueExists("streamVersion"))
{
m_streamVersion = jsonValue.GetInteger("streamVersion");
m_streamVersionHasBeenSet = true;
}
if(jsonValue.ValueExists("description"))
{
m_description = jsonValue.GetString("description");
m_descriptionHasBeenSet = true;
}
return *this;
}
JsonValue StreamSummary::Jsonize() const
{
JsonValue payload;
if(m_streamIdHasBeenSet)
{
payload.WithString("streamId", m_streamId);
}
if(m_streamArnHasBeenSet)
{
payload.WithString("streamArn", m_streamArn);
}
if(m_streamVersionHasBeenSet)
{
payload.WithInteger("streamVersion", m_streamVersion);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("description", m_description);
}
return payload;
}
} // namespace Model
} // namespace IoT
} // namespace Aws