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-mediaconnect/source/model/Output.cpp

214 lines
4.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediaconnect/model/Output.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaConnect
{
namespace Model
{
Output::Output() :
m_dataTransferSubscriberFeePercent(0),
m_dataTransferSubscriberFeePercentHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_destinationHasBeenSet(false),
m_encryptionHasBeenSet(false),
m_entitlementArnHasBeenSet(false),
m_mediaLiveInputArnHasBeenSet(false),
m_nameHasBeenSet(false),
m_outputArnHasBeenSet(false),
m_port(0),
m_portHasBeenSet(false),
m_transportHasBeenSet(false),
m_vpcInterfaceAttachmentHasBeenSet(false)
{
}
Output::Output(JsonView jsonValue) :
m_dataTransferSubscriberFeePercent(0),
m_dataTransferSubscriberFeePercentHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_destinationHasBeenSet(false),
m_encryptionHasBeenSet(false),
m_entitlementArnHasBeenSet(false),
m_mediaLiveInputArnHasBeenSet(false),
m_nameHasBeenSet(false),
m_outputArnHasBeenSet(false),
m_port(0),
m_portHasBeenSet(false),
m_transportHasBeenSet(false),
m_vpcInterfaceAttachmentHasBeenSet(false)
{
*this = jsonValue;
}
Output& Output::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("dataTransferSubscriberFeePercent"))
{
m_dataTransferSubscriberFeePercent = jsonValue.GetInteger("dataTransferSubscriberFeePercent");
m_dataTransferSubscriberFeePercentHasBeenSet = true;
}
if(jsonValue.ValueExists("description"))
{
m_description = jsonValue.GetString("description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("destination"))
{
m_destination = jsonValue.GetString("destination");
m_destinationHasBeenSet = true;
}
if(jsonValue.ValueExists("encryption"))
{
m_encryption = jsonValue.GetObject("encryption");
m_encryptionHasBeenSet = true;
}
if(jsonValue.ValueExists("entitlementArn"))
{
m_entitlementArn = jsonValue.GetString("entitlementArn");
m_entitlementArnHasBeenSet = true;
}
if(jsonValue.ValueExists("mediaLiveInputArn"))
{
m_mediaLiveInputArn = jsonValue.GetString("mediaLiveInputArn");
m_mediaLiveInputArnHasBeenSet = true;
}
if(jsonValue.ValueExists("name"))
{
m_name = jsonValue.GetString("name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("outputArn"))
{
m_outputArn = jsonValue.GetString("outputArn");
m_outputArnHasBeenSet = true;
}
if(jsonValue.ValueExists("port"))
{
m_port = jsonValue.GetInteger("port");
m_portHasBeenSet = true;
}
if(jsonValue.ValueExists("transport"))
{
m_transport = jsonValue.GetObject("transport");
m_transportHasBeenSet = true;
}
if(jsonValue.ValueExists("vpcInterfaceAttachment"))
{
m_vpcInterfaceAttachment = jsonValue.GetObject("vpcInterfaceAttachment");
m_vpcInterfaceAttachmentHasBeenSet = true;
}
return *this;
}
JsonValue Output::Jsonize() const
{
JsonValue payload;
if(m_dataTransferSubscriberFeePercentHasBeenSet)
{
payload.WithInteger("dataTransferSubscriberFeePercent", m_dataTransferSubscriberFeePercent);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("description", m_description);
}
if(m_destinationHasBeenSet)
{
payload.WithString("destination", m_destination);
}
if(m_encryptionHasBeenSet)
{
payload.WithObject("encryption", m_encryption.Jsonize());
}
if(m_entitlementArnHasBeenSet)
{
payload.WithString("entitlementArn", m_entitlementArn);
}
if(m_mediaLiveInputArnHasBeenSet)
{
payload.WithString("mediaLiveInputArn", m_mediaLiveInputArn);
}
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_outputArnHasBeenSet)
{
payload.WithString("outputArn", m_outputArn);
}
if(m_portHasBeenSet)
{
payload.WithInteger("port", m_port);
}
if(m_transportHasBeenSet)
{
payload.WithObject("transport", m_transport.Jsonize());
}
if(m_vpcInterfaceAttachmentHasBeenSet)
{
payload.WithObject("vpcInterfaceAttachment", m_vpcInterfaceAttachment.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace MediaConnect
} // namespace Aws