AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TcpTimeout.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/Duration.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppMesh {
20namespace Model {
21
28 public:
29 AWS_APPMESH_API TcpTimeout() = default;
30 AWS_APPMESH_API TcpTimeout(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APPMESH_API TcpTimeout& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Duration& GetIdle() const { return m_idle; }
40 inline bool IdleHasBeenSet() const { return m_idleHasBeenSet; }
41 template <typename IdleT = Duration>
42 void SetIdle(IdleT&& value) {
43 m_idleHasBeenSet = true;
44 m_idle = std::forward<IdleT>(value);
45 }
46 template <typename IdleT = Duration>
47 TcpTimeout& WithIdle(IdleT&& value) {
48 SetIdle(std::forward<IdleT>(value));
49 return *this;
50 }
52 private:
53 Duration m_idle;
54 bool m_idleHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace AppMesh
59} // namespace Aws
const Duration & GetIdle() const
Definition TcpTimeout.h:39
TcpTimeout & WithIdle(IdleT &&value)
Definition TcpTimeout.h:47
void SetIdle(IdleT &&value)
Definition TcpTimeout.h:42
AWS_APPMESH_API TcpTimeout & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API TcpTimeout()=default
AWS_APPMESH_API TcpTimeout(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue