feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appmesh/AppMesh_EXPORTS.h>
#include <aws/appmesh/model/GrpcGatewayRouteAction.h>
#include <aws/appmesh/model/GrpcGatewayRouteMatch.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppMesh
{
namespace Model
{
/**
* <p>An object that represents a gRPC gateway route.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/GrpcGatewayRoute">AWS
* API Reference</a></p>
*/
class AWS_APPMESH_API GrpcGatewayRoute
{
public:
GrpcGatewayRoute();
GrpcGatewayRoute(Aws::Utils::Json::JsonView jsonValue);
GrpcGatewayRoute& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An object that represents the action to take if a match is determined.</p>
*/
inline const GrpcGatewayRouteAction& GetAction() const{ return m_action; }
/**
* <p>An object that represents the action to take if a match is determined.</p>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* <p>An object that represents the action to take if a match is determined.</p>
*/
inline void SetAction(const GrpcGatewayRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* <p>An object that represents the action to take if a match is determined.</p>
*/
inline void SetAction(GrpcGatewayRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* <p>An object that represents the action to take if a match is determined.</p>
*/
inline GrpcGatewayRoute& WithAction(const GrpcGatewayRouteAction& value) { SetAction(value); return *this;}
/**
* <p>An object that represents the action to take if a match is determined.</p>
*/
inline GrpcGatewayRoute& WithAction(GrpcGatewayRouteAction&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline const GrpcGatewayRouteMatch& GetMatch() const{ return m_match; }
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline void SetMatch(const GrpcGatewayRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline void SetMatch(GrpcGatewayRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline GrpcGatewayRoute& WithMatch(const GrpcGatewayRouteMatch& value) { SetMatch(value); return *this;}
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline GrpcGatewayRoute& WithMatch(GrpcGatewayRouteMatch&& value) { SetMatch(std::move(value)); return *this;}
private:
GrpcGatewayRouteAction m_action;
bool m_actionHasBeenSet;
GrpcGatewayRouteMatch m_match;
bool m_matchHasBeenSet;
};
} // namespace Model
} // namespace AppMesh
} // namespace Aws