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-robomaker/source/model/S3KeyOutput.cpp

75 lines
1.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/robomaker/model/S3KeyOutput.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace RoboMaker
{
namespace Model
{
S3KeyOutput::S3KeyOutput() :
m_s3KeyHasBeenSet(false),
m_etagHasBeenSet(false)
{
}
S3KeyOutput::S3KeyOutput(JsonView jsonValue) :
m_s3KeyHasBeenSet(false),
m_etagHasBeenSet(false)
{
*this = jsonValue;
}
S3KeyOutput& S3KeyOutput::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("s3Key"))
{
m_s3Key = jsonValue.GetString("s3Key");
m_s3KeyHasBeenSet = true;
}
if(jsonValue.ValueExists("etag"))
{
m_etag = jsonValue.GetString("etag");
m_etagHasBeenSet = true;
}
return *this;
}
JsonValue S3KeyOutput::Jsonize() const
{
JsonValue payload;
if(m_s3KeyHasBeenSet)
{
payload.WithString("s3Key", m_s3Key);
}
if(m_etagHasBeenSet)
{
payload.WithString("etag", m_etag);
}
return payload;
}
} // namespace Model
} // namespace RoboMaker
} // namespace Aws