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-schemas/source/model/SearchSchemaVersionSummary.cpp

74 lines
1.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/SearchSchemaVersionSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
SearchSchemaVersionSummary::SearchSchemaVersionSummary() :
m_createdDateHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
}
SearchSchemaVersionSummary::SearchSchemaVersionSummary(JsonView jsonValue) :
m_createdDateHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
*this = jsonValue;
}
SearchSchemaVersionSummary& SearchSchemaVersionSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("CreatedDate"))
{
m_createdDate = jsonValue.GetString("CreatedDate");
m_createdDateHasBeenSet = true;
}
if(jsonValue.ValueExists("SchemaVersion"))
{
m_schemaVersion = jsonValue.GetString("SchemaVersion");
m_schemaVersionHasBeenSet = true;
}
return *this;
}
JsonValue SearchSchemaVersionSummary::Jsonize() const
{
JsonValue payload;
if(m_createdDateHasBeenSet)
{
payload.WithString("CreatedDate", m_createdDate.ToGmtString(DateFormat::ISO_8601));
}
if(m_schemaVersionHasBeenSet)
{
payload.WithString("SchemaVersion", m_schemaVersion);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws