/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppMesh { namespace Model { /** *

An object that represents types of timeouts.

See Also:

AWS * API Reference

*/ class TcpTimeout { public: AWS_APPMESH_API TcpTimeout(); AWS_APPMESH_API TcpTimeout(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API TcpTimeout& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 TcpTimeout& 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 TcpTimeout& WithIdle(Duration&& value) { SetIdle(std::move(value)); return *this;} private: Duration m_idle; bool m_idleHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws