AWS SDK for C++  0.12.9
AWS SDK for C++
Counters.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace DeviceFarm
28 {
29 namespace Model
30 {
31 
36  {
37  public:
38  Counters();
39  Counters(const Aws::Utils::Json::JsonValue& jsonValue);
40  Counters& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
42 
46  inline long GetTotal() const{ return m_total; }
47 
51  inline void SetTotal(long value) { m_totalHasBeenSet = true; m_total = value; }
52 
56  inline Counters& WithTotal(long value) { SetTotal(value); return *this;}
57 
61  inline long GetPassed() const{ return m_passed; }
62 
66  inline void SetPassed(long value) { m_passedHasBeenSet = true; m_passed = value; }
67 
71  inline Counters& WithPassed(long value) { SetPassed(value); return *this;}
72 
76  inline long GetFailed() const{ return m_failed; }
77 
81  inline void SetFailed(long value) { m_failedHasBeenSet = true; m_failed = value; }
82 
86  inline Counters& WithFailed(long value) { SetFailed(value); return *this;}
87 
91  inline long GetWarned() const{ return m_warned; }
92 
96  inline void SetWarned(long value) { m_warnedHasBeenSet = true; m_warned = value; }
97 
101  inline Counters& WithWarned(long value) { SetWarned(value); return *this;}
102 
106  inline long GetErrored() const{ return m_errored; }
107 
111  inline void SetErrored(long value) { m_erroredHasBeenSet = true; m_errored = value; }
112 
116  inline Counters& WithErrored(long value) { SetErrored(value); return *this;}
117 
121  inline long GetStopped() const{ return m_stopped; }
122 
126  inline void SetStopped(long value) { m_stoppedHasBeenSet = true; m_stopped = value; }
127 
131  inline Counters& WithStopped(long value) { SetStopped(value); return *this;}
132 
136  inline long GetSkipped() const{ return m_skipped; }
137 
141  inline void SetSkipped(long value) { m_skippedHasBeenSet = true; m_skipped = value; }
142 
146  inline Counters& WithSkipped(long value) { SetSkipped(value); return *this;}
147 
148  private:
149  long m_total;
150  bool m_totalHasBeenSet;
151  long m_passed;
152  bool m_passedHasBeenSet;
153  long m_failed;
154  bool m_failedHasBeenSet;
155  long m_warned;
156  bool m_warnedHasBeenSet;
157  long m_errored;
158  bool m_erroredHasBeenSet;
159  long m_stopped;
160  bool m_stoppedHasBeenSet;
161  long m_skipped;
162  bool m_skippedHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace DeviceFarm
167 } // namespace Aws
#define AWS_DEVICEFARM_API
void SetWarned(long value)
Definition: Counters.h:96
void SetSkipped(long value)
Definition: Counters.h:141
Counters & WithSkipped(long value)
Definition: Counters.h:146
Counters & WithTotal(long value)
Definition: Counters.h:56
void SetTotal(long value)
Definition: Counters.h:51
void SetStopped(long value)
Definition: Counters.h:126
Counters & WithFailed(long value)
Definition: Counters.h:86
Counters & WithWarned(long value)
Definition: Counters.h:101
Counters & WithErrored(long value)
Definition: Counters.h:116
void SetFailed(long value)
Definition: Counters.h:81
Counters & WithStopped(long value)
Definition: Counters.h:131
void SetErrored(long value)
Definition: Counters.h:111
void SetPassed(long value)
Definition: Counters.h:66
Counters & WithPassed(long value)
Definition: Counters.h:71
JSON (JavaScript Object Notation).