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-ssm/source/model/S3OutputLocation.cpp

90 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ssm/model/S3OutputLocation.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace SSM
{
namespace Model
{
S3OutputLocation::S3OutputLocation() :
m_outputS3RegionHasBeenSet(false),
m_outputS3BucketNameHasBeenSet(false),
m_outputS3KeyPrefixHasBeenSet(false)
{
}
S3OutputLocation::S3OutputLocation(JsonView jsonValue) :
m_outputS3RegionHasBeenSet(false),
m_outputS3BucketNameHasBeenSet(false),
m_outputS3KeyPrefixHasBeenSet(false)
{
*this = jsonValue;
}
S3OutputLocation& S3OutputLocation::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("OutputS3Region"))
{
m_outputS3Region = jsonValue.GetString("OutputS3Region");
m_outputS3RegionHasBeenSet = true;
}
if(jsonValue.ValueExists("OutputS3BucketName"))
{
m_outputS3BucketName = jsonValue.GetString("OutputS3BucketName");
m_outputS3BucketNameHasBeenSet = true;
}
if(jsonValue.ValueExists("OutputS3KeyPrefix"))
{
m_outputS3KeyPrefix = jsonValue.GetString("OutputS3KeyPrefix");
m_outputS3KeyPrefixHasBeenSet = true;
}
return *this;
}
JsonValue S3OutputLocation::Jsonize() const
{
JsonValue payload;
if(m_outputS3RegionHasBeenSet)
{
payload.WithString("OutputS3Region", m_outputS3Region);
}
if(m_outputS3BucketNameHasBeenSet)
{
payload.WithString("OutputS3BucketName", m_outputS3BucketName);
}
if(m_outputS3KeyPrefixHasBeenSet)
{
payload.WithString("OutputS3KeyPrefix", m_outputS3KeyPrefix);
}
return payload;
}
} // namespace Model
} // namespace SSM
} // namespace Aws