AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FailureDetails.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/FailureType.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 CodePipeline
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODEPIPELINE_API FailureDetails() = default;
36 AWS_CODEPIPELINE_API FailureDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEPIPELINE_API FailureDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline FailureType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(FailureType value) { m_typeHasBeenSet = true; m_type = value; }
48 inline FailureDetails& WithType(FailureType value) { SetType(value); return *this;}
50
52
55 inline const Aws::String& GetMessage() const { return m_message; }
56 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
57 template<typename MessageT = Aws::String>
58 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
59 template<typename MessageT = Aws::String>
60 FailureDetails& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
62
64
67 inline const Aws::String& GetExternalExecutionId() const { return m_externalExecutionId; }
68 inline bool ExternalExecutionIdHasBeenSet() const { return m_externalExecutionIdHasBeenSet; }
69 template<typename ExternalExecutionIdT = Aws::String>
70 void SetExternalExecutionId(ExternalExecutionIdT&& value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId = std::forward<ExternalExecutionIdT>(value); }
71 template<typename ExternalExecutionIdT = Aws::String>
72 FailureDetails& WithExternalExecutionId(ExternalExecutionIdT&& value) { SetExternalExecutionId(std::forward<ExternalExecutionIdT>(value)); return *this;}
74 private:
75
77 bool m_typeHasBeenSet = false;
78
79 Aws::String m_message;
80 bool m_messageHasBeenSet = false;
81
82 Aws::String m_externalExecutionId;
83 bool m_externalExecutionIdHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CodePipeline
88} // namespace Aws
FailureDetails & WithType(FailureType value)
const Aws::String & GetExternalExecutionId() const
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEPIPELINE_API FailureDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExternalExecutionId(ExternalExecutionIdT &&value)
AWS_CODEPIPELINE_API FailureDetails(Aws::Utils::Json::JsonView jsonValue)
FailureDetails & WithExternalExecutionId(ExternalExecutionIdT &&value)
FailureDetails & WithMessage(MessageT &&value)
AWS_CODEPIPELINE_API FailureDetails()=default
const Aws::String & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue