60 lines
1010 B
C++
60 lines
1010 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/iot/model/Destination.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
|
|
{
|
|
|
|
Destination::Destination() :
|
|
m_s3DestinationHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Destination::Destination(JsonView jsonValue) :
|
|
m_s3DestinationHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
Destination& Destination::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("s3Destination"))
|
|
{
|
|
m_s3Destination = jsonValue.GetObject("s3Destination");
|
|
|
|
m_s3DestinationHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue Destination::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_s3DestinationHasBeenSet)
|
|
{
|
|
payload.WithObject("s3Destination", m_s3Destination.Jsonize());
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace IoT
|
|
} // namespace Aws
|