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-route53resolver/source/model/IpAddressUpdate.cpp

90 lines
1.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/route53resolver/model/IpAddressUpdate.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Route53Resolver
{
namespace Model
{
IpAddressUpdate::IpAddressUpdate() :
m_ipIdHasBeenSet(false),
m_subnetIdHasBeenSet(false),
m_ipHasBeenSet(false)
{
}
IpAddressUpdate::IpAddressUpdate(JsonView jsonValue) :
m_ipIdHasBeenSet(false),
m_subnetIdHasBeenSet(false),
m_ipHasBeenSet(false)
{
*this = jsonValue;
}
IpAddressUpdate& IpAddressUpdate::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("IpId"))
{
m_ipId = jsonValue.GetString("IpId");
m_ipIdHasBeenSet = true;
}
if(jsonValue.ValueExists("SubnetId"))
{
m_subnetId = jsonValue.GetString("SubnetId");
m_subnetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Ip"))
{
m_ip = jsonValue.GetString("Ip");
m_ipHasBeenSet = true;
}
return *this;
}
JsonValue IpAddressUpdate::Jsonize() const
{
JsonValue payload;
if(m_ipIdHasBeenSet)
{
payload.WithString("IpId", m_ipId);
}
if(m_subnetIdHasBeenSet)
{
payload.WithString("SubnetId", m_subnetId);
}
if(m_ipHasBeenSet)
{
payload.WithString("Ip", m_ip);
}
return payload;
}
} // namespace Model
} // namespace Route53Resolver
} // namespace Aws