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-sms/source/model/UserData.cpp

60 lines
959 B
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sms/model/UserData.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace SMS
{
namespace Model
{
UserData::UserData() :
m_s3LocationHasBeenSet(false)
{
}
UserData::UserData(JsonView jsonValue) :
m_s3LocationHasBeenSet(false)
{
*this = jsonValue;
}
UserData& UserData::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("s3Location"))
{
m_s3Location = jsonValue.GetObject("s3Location");
m_s3LocationHasBeenSet = true;
}
return *this;
}
JsonValue UserData::Jsonize() const
{
JsonValue payload;
if(m_s3LocationHasBeenSet)
{
payload.WithObject("s3Location", m_s3Location.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace SMS
} // namespace Aws