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-alexaforbusiness/source/model/SkillGroup.cpp

90 lines
1.6 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/alexaforbusiness/model/SkillGroup.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace AlexaForBusiness
{
namespace Model
{
SkillGroup::SkillGroup() :
m_skillGroupArnHasBeenSet(false),
m_skillGroupNameHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
}
SkillGroup::SkillGroup(JsonView jsonValue) :
m_skillGroupArnHasBeenSet(false),
m_skillGroupNameHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
*this = jsonValue;
}
SkillGroup& SkillGroup::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("SkillGroupArn"))
{
m_skillGroupArn = jsonValue.GetString("SkillGroupArn");
m_skillGroupArnHasBeenSet = true;
}
if(jsonValue.ValueExists("SkillGroupName"))
{
m_skillGroupName = jsonValue.GetString("SkillGroupName");
m_skillGroupNameHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
return *this;
}
JsonValue SkillGroup::Jsonize() const
{
JsonValue payload;
if(m_skillGroupArnHasBeenSet)
{
payload.WithString("SkillGroupArn", m_skillGroupArn);
}
if(m_skillGroupNameHasBeenSet)
{
payload.WithString("SkillGroupName", m_skillGroupName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
return payload;
}
} // namespace Model
} // namespace AlexaForBusiness
} // namespace Aws