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-appmesh/source/model/GrpcGatewayRoute.cpp

75 lines
1.2 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/appmesh/model/GrpcGatewayRoute.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace AppMesh
{
namespace Model
{
GrpcGatewayRoute::GrpcGatewayRoute() :
m_actionHasBeenSet(false),
m_matchHasBeenSet(false)
{
}
GrpcGatewayRoute::GrpcGatewayRoute(JsonView jsonValue) :
m_actionHasBeenSet(false),
m_matchHasBeenSet(false)
{
*this = jsonValue;
}
GrpcGatewayRoute& GrpcGatewayRoute::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("action"))
{
m_action = jsonValue.GetObject("action");
m_actionHasBeenSet = true;
}
if(jsonValue.ValueExists("match"))
{
m_match = jsonValue.GetObject("match");
m_matchHasBeenSet = true;
}
return *this;
}
JsonValue GrpcGatewayRoute::Jsonize() const
{
JsonValue payload;
if(m_actionHasBeenSet)
{
payload.WithObject("action", m_action.Jsonize());
}
if(m_matchHasBeenSet)
{
payload.WithObject("match", m_match.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace AppMesh
} // namespace Aws