AWS SDK for C++  1.9.19
AWS SDK for C++
BatchPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace RoboMaker
20 {
21 namespace Model
22 {
23 
30  {
31  public:
36 
37 
47  inline long long GetTimeoutInSeconds() const{ return m_timeoutInSeconds; }
48 
58  inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
59 
69  inline void SetTimeoutInSeconds(long long value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
70 
80  inline BatchPolicy& WithTimeoutInSeconds(long long value) { SetTimeoutInSeconds(value); return *this;}
81 
82 
90  inline int GetMaxConcurrency() const{ return m_maxConcurrency; }
91 
99  inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
100 
108  inline void SetMaxConcurrency(int value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
109 
117  inline BatchPolicy& WithMaxConcurrency(int value) { SetMaxConcurrency(value); return *this;}
118 
119  private:
120 
121  long long m_timeoutInSeconds;
122  bool m_timeoutInSecondsHasBeenSet;
123 
124  int m_maxConcurrency;
125  bool m_maxConcurrencyHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace RoboMaker
130 } // namespace Aws
Aws::RoboMaker::Model::BatchPolicy::MaxConcurrencyHasBeenSet
bool MaxConcurrencyHasBeenSet() const
Definition: BatchPolicy.h:99
Aws::RoboMaker::Model::BatchPolicy::operator=
BatchPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::BatchPolicy::WithTimeoutInSeconds
BatchPolicy & WithTimeoutInSeconds(long long value)
Definition: BatchPolicy.h:80
Aws::RoboMaker::Model::BatchPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::BatchPolicy::GetMaxConcurrency
int GetMaxConcurrency() const
Definition: BatchPolicy.h:90
RoboMaker_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::BatchPolicy::SetTimeoutInSeconds
void SetTimeoutInSeconds(long long value)
Definition: BatchPolicy.h:69
Aws::RoboMaker::Model::BatchPolicy::BatchPolicy
BatchPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::BatchPolicy::BatchPolicy
BatchPolicy()
Aws::RoboMaker::Model::BatchPolicy
Definition: BatchPolicy.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::BatchPolicy::WithMaxConcurrency
BatchPolicy & WithMaxConcurrency(int value)
Definition: BatchPolicy.h:117
Aws::RoboMaker::Model::BatchPolicy::GetTimeoutInSeconds
long long GetTimeoutInSeconds() const
Definition: BatchPolicy.h:47
Aws::RoboMaker::Model::BatchPolicy::SetMaxConcurrency
void SetMaxConcurrency(int value)
Definition: BatchPolicy.h:108
Aws::RoboMaker::Model::BatchPolicy::TimeoutInSecondsHasBeenSet
bool TimeoutInSecondsHasBeenSet() const
Definition: BatchPolicy.h:58