114 lines
3.1 KiB
C++
114 lines
3.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/robomaker/RoboMaker_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/robomaker/model/WorldFailure.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace RoboMaker
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Information about worlds that failed.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/FailureSummary">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ROBOMAKER_API FailureSummary
|
|
{
|
|
public:
|
|
FailureSummary();
|
|
FailureSummary(Aws::Utils::Json::JsonView jsonValue);
|
|
FailureSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The total number of failures.</p>
|
|
*/
|
|
inline int GetTotalFailureCount() const{ return m_totalFailureCount; }
|
|
|
|
/**
|
|
* <p>The total number of failures.</p>
|
|
*/
|
|
inline bool TotalFailureCountHasBeenSet() const { return m_totalFailureCountHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The total number of failures.</p>
|
|
*/
|
|
inline void SetTotalFailureCount(int value) { m_totalFailureCountHasBeenSet = true; m_totalFailureCount = value; }
|
|
|
|
/**
|
|
* <p>The total number of failures.</p>
|
|
*/
|
|
inline FailureSummary& WithTotalFailureCount(int value) { SetTotalFailureCount(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The worlds that failed.</p>
|
|
*/
|
|
inline const Aws::Vector<WorldFailure>& GetFailures() const{ return m_failures; }
|
|
|
|
/**
|
|
* <p>The worlds that failed.</p>
|
|
*/
|
|
inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The worlds that failed.</p>
|
|
*/
|
|
inline void SetFailures(const Aws::Vector<WorldFailure>& value) { m_failuresHasBeenSet = true; m_failures = value; }
|
|
|
|
/**
|
|
* <p>The worlds that failed.</p>
|
|
*/
|
|
inline void SetFailures(Aws::Vector<WorldFailure>&& value) { m_failuresHasBeenSet = true; m_failures = std::move(value); }
|
|
|
|
/**
|
|
* <p>The worlds that failed.</p>
|
|
*/
|
|
inline FailureSummary& WithFailures(const Aws::Vector<WorldFailure>& value) { SetFailures(value); return *this;}
|
|
|
|
/**
|
|
* <p>The worlds that failed.</p>
|
|
*/
|
|
inline FailureSummary& WithFailures(Aws::Vector<WorldFailure>&& value) { SetFailures(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The worlds that failed.</p>
|
|
*/
|
|
inline FailureSummary& AddFailures(const WorldFailure& value) { m_failuresHasBeenSet = true; m_failures.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The worlds that failed.</p>
|
|
*/
|
|
inline FailureSummary& AddFailures(WorldFailure&& value) { m_failuresHasBeenSet = true; m_failures.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
int m_totalFailureCount;
|
|
bool m_totalFailureCountHasBeenSet;
|
|
|
|
Aws::Vector<WorldFailure> m_failures;
|
|
bool m_failuresHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace RoboMaker
|
|
} // namespace Aws
|