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-quicksight/source/model/TemplateAlias.cpp

92 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/quicksight/model/TemplateAlias.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
{
TemplateAlias::TemplateAlias() :
m_aliasNameHasBeenSet(false),
m_arnHasBeenSet(false),
m_templateVersionNumber(0),
m_templateVersionNumberHasBeenSet(false)
{
}
TemplateAlias::TemplateAlias(JsonView jsonValue) :
m_aliasNameHasBeenSet(false),
m_arnHasBeenSet(false),
m_templateVersionNumber(0),
m_templateVersionNumberHasBeenSet(false)
{
*this = jsonValue;
}
TemplateAlias& TemplateAlias::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("AliasName"))
{
m_aliasName = jsonValue.GetString("AliasName");
m_aliasNameHasBeenSet = true;
}
if(jsonValue.ValueExists("Arn"))
{
m_arn = jsonValue.GetString("Arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("TemplateVersionNumber"))
{
m_templateVersionNumber = jsonValue.GetInt64("TemplateVersionNumber");
m_templateVersionNumberHasBeenSet = true;
}
return *this;
}
JsonValue TemplateAlias::Jsonize() const
{
JsonValue payload;
if(m_aliasNameHasBeenSet)
{
payload.WithString("AliasName", m_aliasName);
}
if(m_arnHasBeenSet)
{
payload.WithString("Arn", m_arn);
}
if(m_templateVersionNumberHasBeenSet)
{
payload.WithInt64("TemplateVersionNumber", m_templateVersionNumber);
}
return payload;
}
} // namespace Model
} // namespace QuickSight
} // namespace Aws