90 lines
1.6 KiB
C++
90 lines
1.6 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/xray/model/GroupSummary.h>
|
|||
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|||
|
|
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
using namespace Aws::Utils::Json;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace XRay
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
GroupSummary::GroupSummary() :
|
|||
|
|
m_groupNameHasBeenSet(false),
|
|||
|
|
m_groupARNHasBeenSet(false),
|
|||
|
|
m_filterExpressionHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
GroupSummary::GroupSummary(JsonView jsonValue) :
|
|||
|
|
m_groupNameHasBeenSet(false),
|
|||
|
|
m_groupARNHasBeenSet(false),
|
|||
|
|
m_filterExpressionHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
*this = jsonValue;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
GroupSummary& GroupSummary::operator =(JsonView jsonValue)
|
|||
|
|
{
|
|||
|
|
if(jsonValue.ValueExists("GroupName"))
|
|||
|
|
{
|
|||
|
|
m_groupName = jsonValue.GetString("GroupName");
|
|||
|
|
|
|||
|
|
m_groupNameHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("GroupARN"))
|
|||
|
|
{
|
|||
|
|
m_groupARN = jsonValue.GetString("GroupARN");
|
|||
|
|
|
|||
|
|
m_groupARNHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("FilterExpression"))
|
|||
|
|
{
|
|||
|
|
m_filterExpression = jsonValue.GetString("FilterExpression");
|
|||
|
|
|
|||
|
|
m_filterExpressionHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return *this;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
JsonValue GroupSummary::Jsonize() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_groupNameHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("GroupName", m_groupName);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_groupARNHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("GroupARN", m_groupARN);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_filterExpressionHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("FilterExpression", m_filterExpression);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace XRay
|
|||
|
|
} // namespace Aws
|