AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutJobFailureResultRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/CodePipelineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codepipeline/model/FailureDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodePipeline
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_CODEPIPELINE_API PutJobFailureResultRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutJobFailureResult"; }
36
37 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
38
39 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::String& GetJobId() const{ return m_jobId; }
48 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
49 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
50 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
51 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
52 inline PutJobFailureResultRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
53 inline PutJobFailureResultRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
54 inline PutJobFailureResultRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
56
58
61 inline const FailureDetails& GetFailureDetails() const{ return m_failureDetails; }
62 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
63 inline void SetFailureDetails(const FailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
64 inline void SetFailureDetails(FailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::move(value); }
66 inline PutJobFailureResultRequest& WithFailureDetails(FailureDetails&& value) { SetFailureDetails(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_jobId;
71 bool m_jobIdHasBeenSet = false;
72
73 FailureDetails m_failureDetails;
74 bool m_failureDetailsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CodePipeline
79} // namespace Aws
PutJobFailureResultRequest & WithJobId(const Aws::String &value)
PutJobFailureResultRequest & WithFailureDetails(const FailureDetails &value)
PutJobFailureResultRequest & WithJobId(Aws::String &&value)
PutJobFailureResultRequest & WithJobId(const char *value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutJobFailureResultRequest & WithFailureDetails(FailureDetails &&value)
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String