/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents types of timeouts. See Also:
AWS
* API Reference
An object that represents an idle timeout. An idle timeout bounds the amount * of time that a connection may be idle. The default value is none.
*/ inline const Duration& GetIdle() const{ return m_idle; } /** *An object that represents an idle timeout. An idle timeout bounds the amount * of time that a connection may be idle. The default value is none.
*/ inline bool IdleHasBeenSet() const { return m_idleHasBeenSet; } /** *An object that represents an idle timeout. An idle timeout bounds the amount * of time that a connection may be idle. The default value is none.
*/ inline void SetIdle(const Duration& value) { m_idleHasBeenSet = true; m_idle = value; } /** *An object that represents an idle timeout. An idle timeout bounds the amount * of time that a connection may be idle. The default value is none.
*/ inline void SetIdle(Duration&& value) { m_idleHasBeenSet = true; m_idle = std::move(value); } /** *An object that represents an idle timeout. An idle timeout bounds the amount * of time that a connection may be idle. The default value is none.
*/ inline GrpcTimeout& WithIdle(const Duration& value) { SetIdle(value); return *this;} /** *An object that represents an idle timeout. An idle timeout bounds the amount * of time that a connection may be idle. The default value is none.
*/ inline GrpcTimeout& WithIdle(Duration&& value) { SetIdle(std::move(value)); return *this;} /** *An object that represents a per request timeout. The default value is 15 * seconds. If you set a higher timeout, then make sure that the higher value is * set for each App Mesh resource in a conversation. For example, if a virtual node * backend uses a virtual router provider to route to another virtual node, then * the timeout should be greater than 15 seconds for the source and destination * virtual node and the route.
*/ inline const Duration& GetPerRequest() const{ return m_perRequest; } /** *An object that represents a per request timeout. The default value is 15 * seconds. If you set a higher timeout, then make sure that the higher value is * set for each App Mesh resource in a conversation. For example, if a virtual node * backend uses a virtual router provider to route to another virtual node, then * the timeout should be greater than 15 seconds for the source and destination * virtual node and the route.
*/ inline bool PerRequestHasBeenSet() const { return m_perRequestHasBeenSet; } /** *An object that represents a per request timeout. The default value is 15 * seconds. If you set a higher timeout, then make sure that the higher value is * set for each App Mesh resource in a conversation. For example, if a virtual node * backend uses a virtual router provider to route to another virtual node, then * the timeout should be greater than 15 seconds for the source and destination * virtual node and the route.
*/ inline void SetPerRequest(const Duration& value) { m_perRequestHasBeenSet = true; m_perRequest = value; } /** *An object that represents a per request timeout. The default value is 15 * seconds. If you set a higher timeout, then make sure that the higher value is * set for each App Mesh resource in a conversation. For example, if a virtual node * backend uses a virtual router provider to route to another virtual node, then * the timeout should be greater than 15 seconds for the source and destination * virtual node and the route.
*/ inline void SetPerRequest(Duration&& value) { m_perRequestHasBeenSet = true; m_perRequest = std::move(value); } /** *An object that represents a per request timeout. The default value is 15 * seconds. If you set a higher timeout, then make sure that the higher value is * set for each App Mesh resource in a conversation. For example, if a virtual node * backend uses a virtual router provider to route to another virtual node, then * the timeout should be greater than 15 seconds for the source and destination * virtual node and the route.
*/ inline GrpcTimeout& WithPerRequest(const Duration& value) { SetPerRequest(value); return *this;} /** *An object that represents a per request timeout. The default value is 15 * seconds. If you set a higher timeout, then make sure that the higher value is * set for each App Mesh resource in a conversation. For example, if a virtual node * backend uses a virtual router provider to route to another virtual node, then * the timeout should be greater than 15 seconds for the source and destination * virtual node and the route.
*/ inline GrpcTimeout& WithPerRequest(Duration&& value) { SetPerRequest(std::move(value)); return *this;} private: Duration m_idle; bool m_idleHasBeenSet = false; Duration m_perRequest; bool m_perRequestHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws