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,183 @@
/**
* 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/GrpcRouteAction.h>
#include <aws/appmesh/model/GrpcRouteMatch.h>
#include <aws/appmesh/model/GrpcRetryPolicy.h>
#include <aws/appmesh/model/GrpcTimeout.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 route type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/GrpcRoute">AWS
* API Reference</a></p>
*/
class AWS_APPMESH_API GrpcRoute
{
public:
GrpcRoute();
GrpcRoute(Aws::Utils::Json::JsonView jsonValue);
GrpcRoute& 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 GrpcRouteAction& 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 GrpcRouteAction& 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(GrpcRouteAction&& 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 GrpcRoute& WithAction(const GrpcRouteAction& value) { SetAction(value); return *this;}
/**
* <p>An object that represents the action to take if a match is determined.</p>
*/
inline GrpcRoute& WithAction(GrpcRouteAction&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline const GrpcRouteMatch& 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 GrpcRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline void SetMatch(GrpcRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline GrpcRoute& WithMatch(const GrpcRouteMatch& value) { SetMatch(value); return *this;}
/**
* <p>An object that represents the criteria for determining a request match.</p>
*/
inline GrpcRoute& WithMatch(GrpcRouteMatch&& value) { SetMatch(std::move(value)); return *this;}
/**
* <p>An object that represents a retry policy.</p>
*/
inline const GrpcRetryPolicy& GetRetryPolicy() const{ return m_retryPolicy; }
/**
* <p>An object that represents a retry policy.</p>
*/
inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
/**
* <p>An object that represents a retry policy.</p>
*/
inline void SetRetryPolicy(const GrpcRetryPolicy& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = value; }
/**
* <p>An object that represents a retry policy.</p>
*/
inline void SetRetryPolicy(GrpcRetryPolicy&& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = std::move(value); }
/**
* <p>An object that represents a retry policy.</p>
*/
inline GrpcRoute& WithRetryPolicy(const GrpcRetryPolicy& value) { SetRetryPolicy(value); return *this;}
/**
* <p>An object that represents a retry policy.</p>
*/
inline GrpcRoute& WithRetryPolicy(GrpcRetryPolicy&& value) { SetRetryPolicy(std::move(value)); return *this;}
/**
* <p>An object that represents types of timeouts. </p>
*/
inline const GrpcTimeout& GetTimeout() const{ return m_timeout; }
/**
* <p>An object that represents types of timeouts. </p>
*/
inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
/**
* <p>An object that represents types of timeouts. </p>
*/
inline void SetTimeout(const GrpcTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
/**
* <p>An object that represents types of timeouts. </p>
*/
inline void SetTimeout(GrpcTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
/**
* <p>An object that represents types of timeouts. </p>
*/
inline GrpcRoute& WithTimeout(const GrpcTimeout& value) { SetTimeout(value); return *this;}
/**
* <p>An object that represents types of timeouts. </p>
*/
inline GrpcRoute& WithTimeout(GrpcTimeout&& value) { SetTimeout(std::move(value)); return *this;}
private:
GrpcRouteAction m_action;
bool m_actionHasBeenSet;
GrpcRouteMatch m_match;
bool m_matchHasBeenSet;
GrpcRetryPolicy m_retryPolicy;
bool m_retryPolicyHasBeenSet;
GrpcTimeout m_timeout;
bool m_timeoutHasBeenSet;
};
} // namespace Model
} // namespace AppMesh
} // namespace Aws