60 lines
913 B
C++
60 lines
913 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/mediaconvert/model/Endpoint.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace MediaConvert
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
Endpoint::Endpoint() :
|
|
m_urlHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Endpoint::Endpoint(JsonView jsonValue) :
|
|
m_urlHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
Endpoint& Endpoint::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("url"))
|
|
{
|
|
m_url = jsonValue.GetString("url");
|
|
|
|
m_urlHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue Endpoint::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_urlHasBeenSet)
|
|
{
|
|
payload.WithString("url", m_url);
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace MediaConvert
|
|
} // namespace Aws
|