/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents a gRPC route type.See Also:
AWS
* API Reference
An object that represents the action to take if a match is determined.
*/ inline const GrpcRouteAction& GetAction() const{ return m_action; } /** *An object that represents the action to take if a match is determined.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *An object that represents the action to take if a match is determined.
*/ inline void SetAction(const GrpcRouteAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *An object that represents the action to take if a match is determined.
*/ inline void SetAction(GrpcRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *An object that represents the action to take if a match is determined.
*/ inline GrpcRoute& WithAction(const GrpcRouteAction& value) { SetAction(value); return *this;} /** *An object that represents the action to take if a match is determined.
*/ inline GrpcRoute& WithAction(GrpcRouteAction&& value) { SetAction(std::move(value)); return *this;} /** *An object that represents the criteria for determining a request match.
*/ inline const GrpcRouteMatch& GetMatch() const{ return m_match; } /** *An object that represents the criteria for determining a request match.
*/ inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; } /** *An object that represents the criteria for determining a request match.
*/ inline void SetMatch(const GrpcRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; } /** *An object that represents the criteria for determining a request match.
*/ inline void SetMatch(GrpcRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } /** *An object that represents the criteria for determining a request match.
*/ inline GrpcRoute& WithMatch(const GrpcRouteMatch& value) { SetMatch(value); return *this;} /** *An object that represents the criteria for determining a request match.
*/ inline GrpcRoute& WithMatch(GrpcRouteMatch&& value) { SetMatch(std::move(value)); return *this;} /** *An object that represents a retry policy.
*/ inline const GrpcRetryPolicy& GetRetryPolicy() const{ return m_retryPolicy; } /** *An object that represents a retry policy.
*/ inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; } /** *An object that represents a retry policy.
*/ inline void SetRetryPolicy(const GrpcRetryPolicy& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = value; } /** *An object that represents a retry policy.
*/ inline void SetRetryPolicy(GrpcRetryPolicy&& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = std::move(value); } /** *An object that represents a retry policy.
*/ inline GrpcRoute& WithRetryPolicy(const GrpcRetryPolicy& value) { SetRetryPolicy(value); return *this;} /** *An object that represents a retry policy.
*/ inline GrpcRoute& WithRetryPolicy(GrpcRetryPolicy&& value) { SetRetryPolicy(std::move(value)); return *this;} /** *An object that represents types of timeouts.
*/ inline const GrpcTimeout& GetTimeout() const{ return m_timeout; } /** *An object that represents types of timeouts.
*/ inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; } /** *An object that represents types of timeouts.
*/ inline void SetTimeout(const GrpcTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; } /** *An object that represents types of timeouts.
*/ inline void SetTimeout(GrpcTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); } /** *An object that represents types of timeouts.
*/ inline GrpcRoute& WithTimeout(const GrpcTimeout& value) { SetTimeout(value); return *this;} /** *An object that represents types of timeouts.
*/ inline GrpcRoute& WithTimeout(GrpcTimeout&& value) { SetTimeout(std::move(value)); return *this;} private: GrpcRouteAction m_action; bool m_actionHasBeenSet = false; GrpcRouteMatch m_match; bool m_matchHasBeenSet = false; GrpcRetryPolicy m_retryPolicy; bool m_retryPolicyHasBeenSet = false; GrpcTimeout m_timeout; bool m_timeoutHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws