AWS SDK for C++  1.9.159
AWS SDK for C++
TcpTimeout.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppMesh
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
44  inline const Duration& GetIdle() const{ return m_idle; }
45 
50  inline bool IdleHasBeenSet() const { return m_idleHasBeenSet; }
51 
56  inline void SetIdle(const Duration& value) { m_idleHasBeenSet = true; m_idle = value; }
57 
62  inline void SetIdle(Duration&& value) { m_idleHasBeenSet = true; m_idle = std::move(value); }
63 
68  inline TcpTimeout& WithIdle(const Duration& value) { SetIdle(value); return *this;}
69 
74  inline TcpTimeout& WithIdle(Duration&& value) { SetIdle(std::move(value)); return *this;}
75 
76  private:
77 
78  Duration m_idle;
79  bool m_idleHasBeenSet;
80  };
81 
82 } // namespace Model
83 } // namespace AppMesh
84 } // namespace Aws
Aws::AppMesh::Model::TcpTimeout::WithIdle
TcpTimeout & WithIdle(const Duration &value)
Definition: TcpTimeout.h:68
Aws::AppMesh::Model::TcpTimeout::TcpTimeout
TcpTimeout(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::TcpTimeout::TcpTimeout
TcpTimeout()
AppMesh_EXPORTS.h
Aws::AppMesh::Model::TcpTimeout::SetIdle
void SetIdle(const Duration &value)
Definition: TcpTimeout.h:56
Aws::AppMesh::Model::TcpTimeout::WithIdle
TcpTimeout & WithIdle(Duration &&value)
Definition: TcpTimeout.h:74
Aws::AppMesh::Model::TcpTimeout::IdleHasBeenSet
bool IdleHasBeenSet() const
Definition: TcpTimeout.h:50
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AppMesh::Model::TcpTimeout::SetIdle
void SetIdle(Duration &&value)
Definition: TcpTimeout.h:62
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Duration.h
Aws::AppMesh::Model::TcpTimeout::GetIdle
const Duration & GetIdle() const
Definition: TcpTimeout.h:44
Aws::AppMesh::Model::TcpTimeout::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::TcpTimeout::operator=
TcpTimeout & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::Duration
Definition: Duration.h:32
Aws::AppMesh::Model::TcpTimeout
Definition: TcpTimeout.h:32
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28