AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodePipeline {
21namespace Model {
22
29 public:
30 AWS_CODEPIPELINE_API FailureDetails() = default;
31 AWS_CODEPIPELINE_API FailureDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEPIPELINE_API FailureDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline FailureType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(FailureType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
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) {
59 m_messageHasBeenSet = true;
60 m_message = std::forward<MessageT>(value);
61 }
62 template <typename MessageT = Aws::String>
63 FailureDetails& WithMessage(MessageT&& value) {
64 SetMessage(std::forward<MessageT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetExternalExecutionId() const { return m_externalExecutionId; }
74 inline bool ExternalExecutionIdHasBeenSet() const { return m_externalExecutionIdHasBeenSet; }
75 template <typename ExternalExecutionIdT = Aws::String>
76 void SetExternalExecutionId(ExternalExecutionIdT&& value) {
77 m_externalExecutionIdHasBeenSet = true;
78 m_externalExecutionId = std::forward<ExternalExecutionIdT>(value);
79 }
80 template <typename ExternalExecutionIdT = Aws::String>
81 FailureDetails& WithExternalExecutionId(ExternalExecutionIdT&& value) {
82 SetExternalExecutionId(std::forward<ExternalExecutionIdT>(value));
83 return *this;
84 }
86 private:
88
89 Aws::String m_message;
90
91 Aws::String m_externalExecutionId;
92 bool m_typeHasBeenSet = false;
93 bool m_messageHasBeenSet = false;
94 bool m_externalExecutionIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace CodePipeline
99} // 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