AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RespondActivityTaskFailedRequest.h
1
6#pragma once
7#include <aws/swf/SWF_EXPORTS.h>
8#include <aws/swf/SWFRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SWF
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "RespondActivityTaskFailed"; }
31
32 AWS_SWF_API Aws::String SerializePayload() const override;
33
35
36
38
45 inline const Aws::String& GetTaskToken() const{ return m_taskToken; }
46 inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; }
47 inline void SetTaskToken(const Aws::String& value) { m_taskTokenHasBeenSet = true; m_taskToken = value; }
48 inline void SetTaskToken(Aws::String&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::move(value); }
49 inline void SetTaskToken(const char* value) { m_taskTokenHasBeenSet = true; m_taskToken.assign(value); }
50 inline RespondActivityTaskFailedRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
51 inline RespondActivityTaskFailedRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;}
52 inline RespondActivityTaskFailedRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
54
56
59 inline const Aws::String& GetReason() const{ return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
62 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
63 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
64 inline RespondActivityTaskFailedRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
65 inline RespondActivityTaskFailedRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
66 inline RespondActivityTaskFailedRequest& WithReason(const char* value) { SetReason(value); return *this;}
68
70
73 inline const Aws::String& GetDetails() const{ return m_details; }
74 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
75 inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
76 inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
77 inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
78 inline RespondActivityTaskFailedRequest& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
79 inline RespondActivityTaskFailedRequest& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
80 inline RespondActivityTaskFailedRequest& WithDetails(const char* value) { SetDetails(value); return *this;}
82 private:
83
84 Aws::String m_taskToken;
85 bool m_taskTokenHasBeenSet = false;
86
87 Aws::String m_reason;
88 bool m_reasonHasBeenSet = false;
89
90 Aws::String m_details;
91 bool m_detailsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace SWF
96} // namespace Aws
RespondActivityTaskFailedRequest & WithTaskToken(Aws::String &&value)
RespondActivityTaskFailedRequest & WithReason(Aws::String &&value)
RespondActivityTaskFailedRequest & WithDetails(const char *value)
RespondActivityTaskFailedRequest & WithReason(const Aws::String &value)
RespondActivityTaskFailedRequest & WithDetails(const Aws::String &value)
RespondActivityTaskFailedRequest & WithTaskToken(const Aws::String &value)
RespondActivityTaskFailedRequest & WithDetails(Aws::String &&value)
AWS_SWF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SWF_API Aws::String SerializePayload() const override
RespondActivityTaskFailedRequest & WithTaskToken(const char *value)
RespondActivityTaskFailedRequest & WithReason(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String