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-appconfig/source/model/HostedConfigurationVersionSummary.cpp

122 lines
2.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/appconfig/model/HostedConfigurationVersionSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace AppConfig
{
namespace Model
{
HostedConfigurationVersionSummary::HostedConfigurationVersionSummary() :
m_applicationIdHasBeenSet(false),
m_configurationProfileIdHasBeenSet(false),
m_versionNumber(0),
m_versionNumberHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_contentTypeHasBeenSet(false)
{
}
HostedConfigurationVersionSummary::HostedConfigurationVersionSummary(JsonView jsonValue) :
m_applicationIdHasBeenSet(false),
m_configurationProfileIdHasBeenSet(false),
m_versionNumber(0),
m_versionNumberHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_contentTypeHasBeenSet(false)
{
*this = jsonValue;
}
HostedConfigurationVersionSummary& HostedConfigurationVersionSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ApplicationId"))
{
m_applicationId = jsonValue.GetString("ApplicationId");
m_applicationIdHasBeenSet = true;
}
if(jsonValue.ValueExists("ConfigurationProfileId"))
{
m_configurationProfileId = jsonValue.GetString("ConfigurationProfileId");
m_configurationProfileIdHasBeenSet = true;
}
if(jsonValue.ValueExists("VersionNumber"))
{
m_versionNumber = jsonValue.GetInteger("VersionNumber");
m_versionNumberHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("ContentType"))
{
m_contentType = jsonValue.GetString("ContentType");
m_contentTypeHasBeenSet = true;
}
return *this;
}
JsonValue HostedConfigurationVersionSummary::Jsonize() const
{
JsonValue payload;
if(m_applicationIdHasBeenSet)
{
payload.WithString("ApplicationId", m_applicationId);
}
if(m_configurationProfileIdHasBeenSet)
{
payload.WithString("ConfigurationProfileId", m_configurationProfileId);
}
if(m_versionNumberHasBeenSet)
{
payload.WithInteger("VersionNumber", m_versionNumber);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_contentTypeHasBeenSet)
{
payload.WithString("ContentType", m_contentType);
}
return payload;
}
} // namespace Model
} // namespace AppConfig
} // namespace Aws