AWS SDK for C++  1.9.21
AWS SDK for C++
WorldFailure.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 
51  inline const WorldGenerationJobErrorCode& GetFailureCode() const{ return m_failureCode; }
52 
63  inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
64 
75  inline void SetFailureCode(const WorldGenerationJobErrorCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
76 
87  inline void SetFailureCode(WorldGenerationJobErrorCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
88 
99  inline WorldFailure& WithFailureCode(const WorldGenerationJobErrorCode& value) { SetFailureCode(value); return *this;}
100 
111  inline WorldFailure& WithFailureCode(WorldGenerationJobErrorCode&& value) { SetFailureCode(std::move(value)); return *this;}
112 
113 
118  inline const Aws::String& GetSampleFailureReason() const{ return m_sampleFailureReason; }
119 
124  inline bool SampleFailureReasonHasBeenSet() const { return m_sampleFailureReasonHasBeenSet; }
125 
130  inline void SetSampleFailureReason(const Aws::String& value) { m_sampleFailureReasonHasBeenSet = true; m_sampleFailureReason = value; }
131 
136  inline void SetSampleFailureReason(Aws::String&& value) { m_sampleFailureReasonHasBeenSet = true; m_sampleFailureReason = std::move(value); }
137 
142  inline void SetSampleFailureReason(const char* value) { m_sampleFailureReasonHasBeenSet = true; m_sampleFailureReason.assign(value); }
143 
148  inline WorldFailure& WithSampleFailureReason(const Aws::String& value) { SetSampleFailureReason(value); return *this;}
149 
154  inline WorldFailure& WithSampleFailureReason(Aws::String&& value) { SetSampleFailureReason(std::move(value)); return *this;}
155 
160  inline WorldFailure& WithSampleFailureReason(const char* value) { SetSampleFailureReason(value); return *this;}
161 
162 
166  inline int GetFailureCount() const{ return m_failureCount; }
167 
171  inline bool FailureCountHasBeenSet() const { return m_failureCountHasBeenSet; }
172 
176  inline void SetFailureCount(int value) { m_failureCountHasBeenSet = true; m_failureCount = value; }
177 
181  inline WorldFailure& WithFailureCount(int value) { SetFailureCount(value); return *this;}
182 
183  private:
184 
185  WorldGenerationJobErrorCode m_failureCode;
186  bool m_failureCodeHasBeenSet;
187 
188  Aws::String m_sampleFailureReason;
189  bool m_sampleFailureReasonHasBeenSet;
190 
191  int m_failureCount;
192  bool m_failureCountHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace RoboMaker
197 } // namespace Aws
Aws::RoboMaker::Model::WorldFailure::GetFailureCode
const WorldGenerationJobErrorCode & GetFailureCode() const
Definition: WorldFailure.h:51
Aws::RoboMaker::Model::WorldFailure::WorldFailure
WorldFailure(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::WorldFailure::FailureCodeHasBeenSet
bool FailureCodeHasBeenSet() const
Definition: WorldFailure.h:63
Aws::RoboMaker::Model::WorldFailure::SetSampleFailureReason
void SetSampleFailureReason(Aws::String &&value)
Definition: WorldFailure.h:136
Aws::RoboMaker::Model::WorldFailure::SetSampleFailureReason
void SetSampleFailureReason(const char *value)
Definition: WorldFailure.h:142
Aws::RoboMaker::Model::WorldFailure::WithFailureCode
WorldFailure & WithFailureCode(const WorldGenerationJobErrorCode &value)
Definition: WorldFailure.h:99
Aws::RoboMaker::Model::WorldGenerationJobErrorCode
WorldGenerationJobErrorCode
Definition: WorldGenerationJobErrorCode.h:17
Aws::RoboMaker::Model::WorldFailure::SetFailureCount
void SetFailureCount(int value)
Definition: WorldFailure.h:176
Aws::RoboMaker::Model::WorldFailure::WithSampleFailureReason
WorldFailure & WithSampleFailureReason(Aws::String &&value)
Definition: WorldFailure.h:154
Aws::RoboMaker::Model::WorldFailure::operator=
WorldFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::WorldFailure::WithFailureCount
WorldFailure & WithFailureCount(int value)
Definition: WorldFailure.h:181
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::WorldFailure::WithSampleFailureReason
WorldFailure & WithSampleFailureReason(const char *value)
Definition: WorldFailure.h:160
Aws::RoboMaker::Model::WorldFailure::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RoboMaker::Model::WorldFailure::SampleFailureReasonHasBeenSet
bool SampleFailureReasonHasBeenSet() const
Definition: WorldFailure.h:124
RoboMaker_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::WorldFailure
Definition: WorldFailure.h:33
Aws::RoboMaker::Model::WorldFailure::WorldFailure
WorldFailure()
Aws::RoboMaker::Model::WorldFailure::SetFailureCode
void SetFailureCode(const WorldGenerationJobErrorCode &value)
Definition: WorldFailure.h:75
Aws::RoboMaker::Model::WorldFailure::WithFailureCode
WorldFailure & WithFailureCode(WorldGenerationJobErrorCode &&value)
Definition: WorldFailure.h:111
Aws::RoboMaker::Model::WorldFailure::WithSampleFailureReason
WorldFailure & WithSampleFailureReason(const Aws::String &value)
Definition: WorldFailure.h:148
Aws::RoboMaker::Model::WorldFailure::GetSampleFailureReason
const Aws::String & GetSampleFailureReason() const
Definition: WorldFailure.h:118
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::WorldFailure::FailureCountHasBeenSet
bool FailureCountHasBeenSet() const
Definition: WorldFailure.h:171
Aws::RoboMaker::Model::WorldFailure::SetFailureCode
void SetFailureCode(WorldGenerationJobErrorCode &&value)
Definition: WorldFailure.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
WorldGenerationJobErrorCode.h
Aws::RoboMaker::Model::WorldFailure::SetSampleFailureReason
void SetSampleFailureReason(const Aws::String &value)
Definition: WorldFailure.h:130
Aws::RoboMaker::Model::WorldFailure::GetFailureCount
int GetFailureCount() const
Definition: WorldFailure.h:166