AWS SDK for C++  1.9.16
AWS SDK for C++
HttpTimeout.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 HttpTimeout& WithIdle(const Duration& value) { SetIdle(value); return *this;}
69 
74  inline HttpTimeout& WithIdle(Duration&& value) { SetIdle(std::move(value)); return *this;}
75 
76 
85  inline const Duration& GetPerRequest() const{ return m_perRequest; }
86 
95  inline bool PerRequestHasBeenSet() const { return m_perRequestHasBeenSet; }
96 
105  inline void SetPerRequest(const Duration& value) { m_perRequestHasBeenSet = true; m_perRequest = value; }
106 
115  inline void SetPerRequest(Duration&& value) { m_perRequestHasBeenSet = true; m_perRequest = std::move(value); }
116 
125  inline HttpTimeout& WithPerRequest(const Duration& value) { SetPerRequest(value); return *this;}
126 
135  inline HttpTimeout& WithPerRequest(Duration&& value) { SetPerRequest(std::move(value)); return *this;}
136 
137  private:
138 
139  Duration m_idle;
140  bool m_idleHasBeenSet;
141 
142  Duration m_perRequest;
143  bool m_perRequestHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace AppMesh
148 } // namespace Aws
Aws::AppMesh::Model::HttpTimeout::SetPerRequest
void SetPerRequest(const Duration &value)
Definition: HttpTimeout.h:105
Aws::AppMesh::Model::HttpTimeout::HttpTimeout
HttpTimeout(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpTimeout::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HttpTimeout::SetPerRequest
void SetPerRequest(Duration &&value)
Definition: HttpTimeout.h:115
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HttpTimeout::WithIdle
HttpTimeout & WithIdle(Duration &&value)
Definition: HttpTimeout.h:74
Aws::AppMesh::Model::HttpTimeout::GetIdle
const Duration & GetIdle() const
Definition: HttpTimeout.h:44
Aws::AppMesh::Model::HttpTimeout::PerRequestHasBeenSet
bool PerRequestHasBeenSet() const
Definition: HttpTimeout.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Duration.h
Aws::AppMesh::Model::HttpTimeout::SetIdle
void SetIdle(Duration &&value)
Definition: HttpTimeout.h:62
Aws::AppMesh::Model::HttpTimeout::WithPerRequest
HttpTimeout & WithPerRequest(const Duration &value)
Definition: HttpTimeout.h:125
Aws::AppMesh::Model::HttpTimeout::IdleHasBeenSet
bool IdleHasBeenSet() const
Definition: HttpTimeout.h:50
Aws::AppMesh::Model::HttpTimeout::HttpTimeout
HttpTimeout()
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpTimeout::GetPerRequest
const Duration & GetPerRequest() const
Definition: HttpTimeout.h:85
Aws::AppMesh::Model::HttpTimeout::operator=
HttpTimeout & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::Duration
Definition: Duration.h:32
Aws::AppMesh::Model::HttpTimeout::WithIdle
HttpTimeout & WithIdle(const Duration &value)
Definition: HttpTimeout.h:68
Aws::AppMesh::Model::HttpTimeout::WithPerRequest
HttpTimeout & WithPerRequest(Duration &&value)
Definition: HttpTimeout.h:135
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HttpTimeout
Definition: HttpTimeout.h:32
Aws::AppMesh::Model::HttpTimeout::SetIdle
void SetIdle(const Duration &value)
Definition: HttpTimeout.h:56