AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorldFailure.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/robomaker/model/WorldGenerationJobErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.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 WorldFailure();
36 AWS_ROBOMAKER_API WorldFailure(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROBOMAKER_API WorldFailure& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
52 inline const WorldGenerationJobErrorCode& GetFailureCode() const{ return m_failureCode; }
53 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
54 inline void SetFailureCode(const WorldGenerationJobErrorCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
55 inline void SetFailureCode(WorldGenerationJobErrorCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
56 inline WorldFailure& WithFailureCode(const WorldGenerationJobErrorCode& value) { SetFailureCode(value); return *this;}
57 inline WorldFailure& WithFailureCode(WorldGenerationJobErrorCode&& value) { SetFailureCode(std::move(value)); return *this;}
59
61
65 inline const Aws::String& GetSampleFailureReason() const{ return m_sampleFailureReason; }
66 inline bool SampleFailureReasonHasBeenSet() const { return m_sampleFailureReasonHasBeenSet; }
67 inline void SetSampleFailureReason(const Aws::String& value) { m_sampleFailureReasonHasBeenSet = true; m_sampleFailureReason = value; }
68 inline void SetSampleFailureReason(Aws::String&& value) { m_sampleFailureReasonHasBeenSet = true; m_sampleFailureReason = std::move(value); }
69 inline void SetSampleFailureReason(const char* value) { m_sampleFailureReasonHasBeenSet = true; m_sampleFailureReason.assign(value); }
70 inline WorldFailure& WithSampleFailureReason(const Aws::String& value) { SetSampleFailureReason(value); return *this;}
71 inline WorldFailure& WithSampleFailureReason(Aws::String&& value) { SetSampleFailureReason(std::move(value)); return *this;}
72 inline WorldFailure& WithSampleFailureReason(const char* value) { SetSampleFailureReason(value); return *this;}
74
76
79 inline int GetFailureCount() const{ return m_failureCount; }
80 inline bool FailureCountHasBeenSet() const { return m_failureCountHasBeenSet; }
81 inline void SetFailureCount(int value) { m_failureCountHasBeenSet = true; m_failureCount = value; }
82 inline WorldFailure& WithFailureCount(int value) { SetFailureCount(value); return *this;}
84 private:
85
86 WorldGenerationJobErrorCode m_failureCode;
87 bool m_failureCodeHasBeenSet = false;
88
89 Aws::String m_sampleFailureReason;
90 bool m_sampleFailureReasonHasBeenSet = false;
91
92 int m_failureCount;
93 bool m_failureCountHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace RoboMaker
98} // namespace Aws
WorldFailure & WithSampleFailureReason(const Aws::String &value)
WorldFailure & WithFailureCode(WorldGenerationJobErrorCode &&value)
WorldFailure & WithSampleFailureReason(Aws::String &&value)
WorldFailure & WithFailureCount(int value)
void SetFailureCode(WorldGenerationJobErrorCode &&value)
void SetSampleFailureReason(const Aws::String &value)
AWS_ROBOMAKER_API WorldFailure(Aws::Utils::Json::JsonView jsonValue)
const WorldGenerationJobErrorCode & GetFailureCode() const
WorldFailure & WithFailureCode(const WorldGenerationJobErrorCode &value)
const Aws::String & GetSampleFailureReason() const
void SetSampleFailureReason(Aws::String &&value)
void SetFailureCode(const WorldGenerationJobErrorCode &value)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
WorldFailure & WithSampleFailureReason(const char *value)
AWS_ROBOMAKER_API WorldFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSampleFailureReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue