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-ecr/source/model/InvalidLayerPartException.cpp

122 lines
2.4 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ecr/model/InvalidLayerPartException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ECR
{
namespace Model
{
InvalidLayerPartException::InvalidLayerPartException() :
m_registryIdHasBeenSet(false),
m_repositoryNameHasBeenSet(false),
m_uploadIdHasBeenSet(false),
m_lastValidByteReceived(0),
m_lastValidByteReceivedHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
InvalidLayerPartException::InvalidLayerPartException(JsonView jsonValue) :
m_registryIdHasBeenSet(false),
m_repositoryNameHasBeenSet(false),
m_uploadIdHasBeenSet(false),
m_lastValidByteReceived(0),
m_lastValidByteReceivedHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
InvalidLayerPartException& InvalidLayerPartException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("registryId"))
{
m_registryId = jsonValue.GetString("registryId");
m_registryIdHasBeenSet = true;
}
if(jsonValue.ValueExists("repositoryName"))
{
m_repositoryName = jsonValue.GetString("repositoryName");
m_repositoryNameHasBeenSet = true;
}
if(jsonValue.ValueExists("uploadId"))
{
m_uploadId = jsonValue.GetString("uploadId");
m_uploadIdHasBeenSet = true;
}
if(jsonValue.ValueExists("lastValidByteReceived"))
{
m_lastValidByteReceived = jsonValue.GetInt64("lastValidByteReceived");
m_lastValidByteReceivedHasBeenSet = true;
}
if(jsonValue.ValueExists("message"))
{
m_message = jsonValue.GetString("message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue InvalidLayerPartException::Jsonize() const
{
JsonValue payload;
if(m_registryIdHasBeenSet)
{
payload.WithString("registryId", m_registryId);
}
if(m_repositoryNameHasBeenSet)
{
payload.WithString("repositoryName", m_repositoryName);
}
if(m_uploadIdHasBeenSet)
{
payload.WithString("uploadId", m_uploadId);
}
if(m_lastValidByteReceivedHasBeenSet)
{
payload.WithInt64("lastValidByteReceived", m_lastValidByteReceived);
}
if(m_messageHasBeenSet)
{
payload.WithString("message", m_message);
}
return payload;
}
} // namespace Model
} // namespace ECR
} // namespace Aws