AWS SDK for C++  1.9.20
AWS SDK for C++
FailureSummary.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace RoboMaker
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline int GetTotalFailureCount() const{ return m_totalFailureCount; }
45 
49  inline bool TotalFailureCountHasBeenSet() const { return m_totalFailureCountHasBeenSet; }
50 
54  inline void SetTotalFailureCount(int value) { m_totalFailureCountHasBeenSet = true; m_totalFailureCount = value; }
55 
59  inline FailureSummary& WithTotalFailureCount(int value) { SetTotalFailureCount(value); return *this;}
60 
61 
65  inline const Aws::Vector<WorldFailure>& GetFailures() const{ return m_failures; }
66 
70  inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
71 
75  inline void SetFailures(const Aws::Vector<WorldFailure>& value) { m_failuresHasBeenSet = true; m_failures = value; }
76 
80  inline void SetFailures(Aws::Vector<WorldFailure>&& value) { m_failuresHasBeenSet = true; m_failures = std::move(value); }
81 
85  inline FailureSummary& WithFailures(const Aws::Vector<WorldFailure>& value) { SetFailures(value); return *this;}
86 
90  inline FailureSummary& WithFailures(Aws::Vector<WorldFailure>&& value) { SetFailures(std::move(value)); return *this;}
91 
95  inline FailureSummary& AddFailures(const WorldFailure& value) { m_failuresHasBeenSet = true; m_failures.push_back(value); return *this; }
96 
100  inline FailureSummary& AddFailures(WorldFailure&& value) { m_failuresHasBeenSet = true; m_failures.push_back(std::move(value)); return *this; }
101 
102  private:
103 
104  int m_totalFailureCount;
105  bool m_totalFailureCountHasBeenSet;
106 
107  Aws::Vector<WorldFailure> m_failures;
108  bool m_failuresHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace RoboMaker
113 } // namespace Aws
Aws::RoboMaker::Model::FailureSummary::AddFailures
FailureSummary & AddFailures(WorldFailure &&value)
Definition: FailureSummary.h:100
Aws::RoboMaker::Model::FailureSummary::WithFailures
FailureSummary & WithFailures(const Aws::Vector< WorldFailure > &value)
Definition: FailureSummary.h:85
Aws::RoboMaker::Model::FailureSummary::SetFailures
void SetFailures(const Aws::Vector< WorldFailure > &value)
Definition: FailureSummary.h:75
Aws::RoboMaker::Model::FailureSummary::TotalFailureCountHasBeenSet
bool TotalFailureCountHasBeenSet() const
Definition: FailureSummary.h:49
Aws::RoboMaker::Model::FailureSummary::operator=
FailureSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::FailureSummary::SetFailures
void SetFailures(Aws::Vector< WorldFailure > &&value)
Definition: FailureSummary.h:80
Aws::RoboMaker::Model::FailureSummary::AddFailures
FailureSummary & AddFailures(const WorldFailure &value)
Definition: FailureSummary.h:95
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RoboMaker::Model::FailureSummary::FailureSummary
FailureSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::FailureSummary::WithTotalFailureCount
FailureSummary & WithTotalFailureCount(int value)
Definition: FailureSummary.h:59
AWSVector.h
Aws::RoboMaker::Model::FailureSummary::FailureSummary
FailureSummary()
Aws::RoboMaker::Model::FailureSummary::GetTotalFailureCount
int GetTotalFailureCount() const
Definition: FailureSummary.h:44
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::FailureSummary::FailuresHasBeenSet
bool FailuresHasBeenSet() const
Definition: FailureSummary.h:70
Aws::RoboMaker::Model::FailureSummary::SetTotalFailureCount
void SetTotalFailureCount(int value)
Definition: FailureSummary.h:54
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::FailureSummary::GetFailures
const Aws::Vector< WorldFailure > & GetFailures() const
Definition: FailureSummary.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
WorldFailure.h
Aws::RoboMaker::Model::WorldFailure
Definition: WorldFailure.h:33
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::FailureSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::FailureSummary::WithFailures
FailureSummary & WithFailures(Aws::Vector< WorldFailure > &&value)
Definition: FailureSummary.h:90
Aws::RoboMaker::Model::FailureSummary
Definition: FailureSummary.h:33