60 lines
918 B
C++
60 lines
918 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/codestar/model/CodeSource.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace CodeStar
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
CodeSource::CodeSource() :
|
|
m_s3HasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
CodeSource::CodeSource(JsonView jsonValue) :
|
|
m_s3HasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
CodeSource& CodeSource::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("s3"))
|
|
{
|
|
m_s3 = jsonValue.GetObject("s3");
|
|
|
|
m_s3HasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue CodeSource::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_s3HasBeenSet)
|
|
{
|
|
payload.WithObject("s3", m_s3.Jsonize());
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace CodeStar
|
|
} // namespace Aws
|