105 lines
2.0 KiB
C++
105 lines
2.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/eks/model/InvalidParameterException.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace EKS
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
InvalidParameterException::InvalidParameterException() :
|
|
m_clusterNameHasBeenSet(false),
|
|
m_nodegroupNameHasBeenSet(false),
|
|
m_fargateProfileNameHasBeenSet(false),
|
|
m_messageHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
InvalidParameterException::InvalidParameterException(JsonView jsonValue) :
|
|
m_clusterNameHasBeenSet(false),
|
|
m_nodegroupNameHasBeenSet(false),
|
|
m_fargateProfileNameHasBeenSet(false),
|
|
m_messageHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
InvalidParameterException& InvalidParameterException::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("clusterName"))
|
|
{
|
|
m_clusterName = jsonValue.GetString("clusterName");
|
|
|
|
m_clusterNameHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("nodegroupName"))
|
|
{
|
|
m_nodegroupName = jsonValue.GetString("nodegroupName");
|
|
|
|
m_nodegroupNameHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("fargateProfileName"))
|
|
{
|
|
m_fargateProfileName = jsonValue.GetString("fargateProfileName");
|
|
|
|
m_fargateProfileNameHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("message"))
|
|
{
|
|
m_message = jsonValue.GetString("message");
|
|
|
|
m_messageHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue InvalidParameterException::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_clusterNameHasBeenSet)
|
|
{
|
|
payload.WithString("clusterName", m_clusterName);
|
|
|
|
}
|
|
|
|
if(m_nodegroupNameHasBeenSet)
|
|
{
|
|
payload.WithString("nodegroupName", m_nodegroupName);
|
|
|
|
}
|
|
|
|
if(m_fargateProfileNameHasBeenSet)
|
|
{
|
|
payload.WithString("fargateProfileName", m_fargateProfileName);
|
|
|
|
}
|
|
|
|
if(m_messageHasBeenSet)
|
|
{
|
|
payload.WithString("message", m_message);
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace EKS
|
|
} // namespace Aws
|