AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailureSummary.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/robomaker/model/WorldFailure.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace RoboMaker
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ROBOMAKER_API FailureSummary();
36 AWS_ROBOMAKER_API FailureSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetTotalFailureCount() const{ return m_totalFailureCount; }
46 inline bool TotalFailureCountHasBeenSet() const { return m_totalFailureCountHasBeenSet; }
47 inline void SetTotalFailureCount(int value) { m_totalFailureCountHasBeenSet = true; m_totalFailureCount = value; }
48 inline FailureSummary& WithTotalFailureCount(int value) { SetTotalFailureCount(value); return *this;}
50
52
55 inline const Aws::Vector<WorldFailure>& GetFailures() const{ return m_failures; }
56 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
57 inline void SetFailures(const Aws::Vector<WorldFailure>& value) { m_failuresHasBeenSet = true; m_failures = value; }
58 inline void SetFailures(Aws::Vector<WorldFailure>&& value) { m_failuresHasBeenSet = true; m_failures = std::move(value); }
59 inline FailureSummary& WithFailures(const Aws::Vector<WorldFailure>& value) { SetFailures(value); return *this;}
60 inline FailureSummary& WithFailures(Aws::Vector<WorldFailure>&& value) { SetFailures(std::move(value)); return *this;}
61 inline FailureSummary& AddFailures(const WorldFailure& value) { m_failuresHasBeenSet = true; m_failures.push_back(value); return *this; }
62 inline FailureSummary& AddFailures(WorldFailure&& value) { m_failuresHasBeenSet = true; m_failures.push_back(std::move(value)); return *this; }
64 private:
65
66 int m_totalFailureCount;
67 bool m_totalFailureCountHasBeenSet = false;
68
70 bool m_failuresHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace RoboMaker
75} // namespace Aws
AWS_ROBOMAKER_API FailureSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
FailureSummary & WithFailures(Aws::Vector< WorldFailure > &&value)
void SetFailures(Aws::Vector< WorldFailure > &&value)
AWS_ROBOMAKER_API FailureSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
FailureSummary & AddFailures(WorldFailure &&value)
FailureSummary & WithFailures(const Aws::Vector< WorldFailure > &value)
const Aws::Vector< WorldFailure > & GetFailures() const
void SetFailures(const Aws::Vector< WorldFailure > &value)
FailureSummary & AddFailures(const WorldFailure &value)
FailureSummary & WithTotalFailureCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue