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-lightsail/source/model/UnauthenticatedException.cpp

105 lines
1.8 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/lightsail/model/UnauthenticatedException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Lightsail
{
namespace Model
{
UnauthenticatedException::UnauthenticatedException() :
m_codeHasBeenSet(false),
m_docsHasBeenSet(false),
m_messageHasBeenSet(false),
m_tipHasBeenSet(false)
{
}
UnauthenticatedException::UnauthenticatedException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_docsHasBeenSet(false),
m_messageHasBeenSet(false),
m_tipHasBeenSet(false)
{
*this = jsonValue;
}
UnauthenticatedException& UnauthenticatedException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("code"))
{
m_code = jsonValue.GetString("code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("docs"))
{
m_docs = jsonValue.GetString("docs");
m_docsHasBeenSet = true;
}
if(jsonValue.ValueExists("message"))
{
m_message = jsonValue.GetString("message");
m_messageHasBeenSet = true;
}
if(jsonValue.ValueExists("tip"))
{
m_tip = jsonValue.GetString("tip");
m_tipHasBeenSet = true;
}
return *this;
}
JsonValue UnauthenticatedException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("code", m_code);
}
if(m_docsHasBeenSet)
{
payload.WithString("docs", m_docs);
}
if(m_messageHasBeenSet)
{
payload.WithString("message", m_message);
}
if(m_tipHasBeenSet)
{
payload.WithString("tip", m_tip);
}
return payload;
}
} // namespace Model
} // namespace Lightsail
} // namespace Aws