AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrpcTimeout.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/Duration.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMesh
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_APPMESH_API GrpcTimeout();
35 AWS_APPMESH_API GrpcTimeout(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Duration& GetIdle() const{ return m_idle; }
46 inline bool IdleHasBeenSet() const { return m_idleHasBeenSet; }
47 inline void SetIdle(const Duration& value) { m_idleHasBeenSet = true; m_idle = value; }
48 inline void SetIdle(Duration&& value) { m_idleHasBeenSet = true; m_idle = std::move(value); }
49 inline GrpcTimeout& WithIdle(const Duration& value) { SetIdle(value); return *this;}
50 inline GrpcTimeout& WithIdle(Duration&& value) { SetIdle(std::move(value)); return *this;}
52
54
62 inline const Duration& GetPerRequest() const{ return m_perRequest; }
63 inline bool PerRequestHasBeenSet() const { return m_perRequestHasBeenSet; }
64 inline void SetPerRequest(const Duration& value) { m_perRequestHasBeenSet = true; m_perRequest = value; }
65 inline void SetPerRequest(Duration&& value) { m_perRequestHasBeenSet = true; m_perRequest = std::move(value); }
66 inline GrpcTimeout& WithPerRequest(const Duration& value) { SetPerRequest(value); return *this;}
67 inline GrpcTimeout& WithPerRequest(Duration&& value) { SetPerRequest(std::move(value)); return *this;}
69 private:
70
71 Duration m_idle;
72 bool m_idleHasBeenSet = false;
73
74 Duration m_perRequest;
75 bool m_perRequestHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace AppMesh
80} // namespace Aws
GrpcTimeout & WithIdle(const Duration &value)
Definition GrpcTimeout.h:49
void SetIdle(const Duration &value)
Definition GrpcTimeout.h:47
GrpcTimeout & WithPerRequest(Duration &&value)
Definition GrpcTimeout.h:67
const Duration & GetPerRequest() const
Definition GrpcTimeout.h:62
void SetPerRequest(Duration &&value)
Definition GrpcTimeout.h:65
AWS_APPMESH_API GrpcTimeout & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIdle(Duration &&value)
Definition GrpcTimeout.h:48
AWS_APPMESH_API GrpcTimeout(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPerRequest(const Duration &value)
Definition GrpcTimeout.h:64
const Duration & GetIdle() const
Definition GrpcTimeout.h:45
GrpcTimeout & WithPerRequest(const Duration &value)
Definition GrpcTimeout.h:66
GrpcTimeout & WithIdle(Duration &&value)
Definition GrpcTimeout.h:50
Aws::Utils::Json::JsonValue JsonValue