/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents an HTTP or HTTP/2 route type.See
* Also:
AWS
* API Reference
An object that represents the action to take if a match is determined.
*/ inline const HttpRouteAction& 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 HttpRouteAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *An object that represents the action to take if a match is determined.
*/ inline void SetAction(HttpRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *An object that represents the action to take if a match is determined.
*/ inline HttpRoute& WithAction(const HttpRouteAction& value) { SetAction(value); return *this;} /** *An object that represents the action to take if a match is determined.
*/ inline HttpRoute& WithAction(HttpRouteAction&& value) { SetAction(std::move(value)); return *this;} /** *An object that represents the criteria for determining a request match.
*/ inline const HttpRouteMatch& 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 HttpRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; } /** *An object that represents the criteria for determining a request match.
*/ inline void SetMatch(HttpRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } /** *An object that represents the criteria for determining a request match.
*/ inline HttpRoute& WithMatch(const HttpRouteMatch& value) { SetMatch(value); return *this;} /** *An object that represents the criteria for determining a request match.
*/ inline HttpRoute& WithMatch(HttpRouteMatch&& value) { SetMatch(std::move(value)); return *this;} /** *An object that represents a retry policy.
*/ inline const HttpRetryPolicy& 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 HttpRetryPolicy& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = value; } /** *An object that represents a retry policy.
*/ inline void SetRetryPolicy(HttpRetryPolicy&& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = std::move(value); } /** *An object that represents a retry policy.
*/ inline HttpRoute& WithRetryPolicy(const HttpRetryPolicy& value) { SetRetryPolicy(value); return *this;} /** *An object that represents a retry policy.
*/ inline HttpRoute& WithRetryPolicy(HttpRetryPolicy&& value) { SetRetryPolicy(std::move(value)); return *this;} /** *An object that represents types of timeouts.
*/ inline const HttpTimeout& 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 HttpTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; } /** *An object that represents types of timeouts.
*/ inline void SetTimeout(HttpTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); } /** *An object that represents types of timeouts.
*/ inline HttpRoute& WithTimeout(const HttpTimeout& value) { SetTimeout(value); return *this;} /** *An object that represents types of timeouts.
*/ inline HttpRoute& WithTimeout(HttpTimeout&& value) { SetTimeout(std::move(value)); return *this;} private: HttpRouteAction m_action; bool m_actionHasBeenSet = false; HttpRouteMatch m_match; bool m_matchHasBeenSet = false; HttpRetryPolicy m_retryPolicy; bool m_retryPolicyHasBeenSet = false; HttpTimeout m_timeout; bool m_timeoutHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws