75 lines
1.4 KiB
C++
75 lines
1.4 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/quicksight/model/LogicalTableSource.h>
|
|||
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|||
|
|
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
using namespace Aws::Utils::Json;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace QuickSight
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
LogicalTableSource::LogicalTableSource() :
|
|||
|
|
m_joinInstructionHasBeenSet(false),
|
|||
|
|
m_physicalTableIdHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
LogicalTableSource::LogicalTableSource(JsonView jsonValue) :
|
|||
|
|
m_joinInstructionHasBeenSet(false),
|
|||
|
|
m_physicalTableIdHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
*this = jsonValue;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
LogicalTableSource& LogicalTableSource::operator =(JsonView jsonValue)
|
|||
|
|
{
|
|||
|
|
if(jsonValue.ValueExists("JoinInstruction"))
|
|||
|
|
{
|
|||
|
|
m_joinInstruction = jsonValue.GetObject("JoinInstruction");
|
|||
|
|
|
|||
|
|
m_joinInstructionHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("PhysicalTableId"))
|
|||
|
|
{
|
|||
|
|
m_physicalTableId = jsonValue.GetString("PhysicalTableId");
|
|||
|
|
|
|||
|
|
m_physicalTableIdHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return *this;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
JsonValue LogicalTableSource::Jsonize() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_joinInstructionHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("JoinInstruction", m_joinInstruction.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_physicalTableIdHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("PhysicalTableId", m_physicalTableId);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace QuickSight
|
|||
|
|
} // namespace Aws
|