/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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), m_insightsConfigurationHasBeenSet(false) { } GroupSummary::GroupSummary(JsonView jsonValue) : m_groupNameHasBeenSet(false), m_groupARNHasBeenSet(false), m_filterExpressionHasBeenSet(false), m_insightsConfigurationHasBeenSet(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; } if(jsonValue.ValueExists("InsightsConfiguration")) { m_insightsConfiguration = jsonValue.GetObject("InsightsConfiguration"); m_insightsConfigurationHasBeenSet = 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); } if(m_insightsConfigurationHasBeenSet) { payload.WithObject("InsightsConfiguration", m_insightsConfiguration.Jsonize()); } return payload; } } // namespace Model } // namespace XRay } // namespace Aws