1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 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 12 namespace Aws 13 { 14 namespace SWF 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_SWF_API RespondActivityTaskCanceledRequest : public SWFRequest 22 { 23 public: 24 RespondActivityTaskCanceledRequest(); 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. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "RespondActivityTaskCanceled"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p> 39 * <code>taskToken</code> is generated by the service and should be treated as an 40 * opaque value. If the task is passed to another process, its 41 * <code>taskToken</code> must also be passed. This enables it to provide its 42 * progress and respond with results.</p> 43 */ GetTaskToken()44 inline const Aws::String& GetTaskToken() const{ return m_taskToken; } 45 46 /** 47 * <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p> 48 * <code>taskToken</code> is generated by the service and should be treated as an 49 * opaque value. If the task is passed to another process, its 50 * <code>taskToken</code> must also be passed. This enables it to provide its 51 * progress and respond with results.</p> 52 */ TaskTokenHasBeenSet()53 inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; } 54 55 /** 56 * <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p> 57 * <code>taskToken</code> is generated by the service and should be treated as an 58 * opaque value. If the task is passed to another process, its 59 * <code>taskToken</code> must also be passed. This enables it to provide its 60 * progress and respond with results.</p> 61 */ SetTaskToken(const Aws::String & value)62 inline void SetTaskToken(const Aws::String& value) { m_taskTokenHasBeenSet = true; m_taskToken = value; } 63 64 /** 65 * <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p> 66 * <code>taskToken</code> is generated by the service and should be treated as an 67 * opaque value. If the task is passed to another process, its 68 * <code>taskToken</code> must also be passed. This enables it to provide its 69 * progress and respond with results.</p> 70 */ SetTaskToken(Aws::String && value)71 inline void SetTaskToken(Aws::String&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::move(value); } 72 73 /** 74 * <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p> 75 * <code>taskToken</code> is generated by the service and should be treated as an 76 * opaque value. If the task is passed to another process, its 77 * <code>taskToken</code> must also be passed. This enables it to provide its 78 * progress and respond with results.</p> 79 */ SetTaskToken(const char * value)80 inline void SetTaskToken(const char* value) { m_taskTokenHasBeenSet = true; m_taskToken.assign(value); } 81 82 /** 83 * <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p> 84 * <code>taskToken</code> is generated by the service and should be treated as an 85 * opaque value. If the task is passed to another process, its 86 * <code>taskToken</code> must also be passed. This enables it to provide its 87 * progress and respond with results.</p> 88 */ WithTaskToken(const Aws::String & value)89 inline RespondActivityTaskCanceledRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;} 90 91 /** 92 * <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p> 93 * <code>taskToken</code> is generated by the service and should be treated as an 94 * opaque value. If the task is passed to another process, its 95 * <code>taskToken</code> must also be passed. This enables it to provide its 96 * progress and respond with results.</p> 97 */ WithTaskToken(Aws::String && value)98 inline RespondActivityTaskCanceledRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;} 99 100 /** 101 * <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p> 102 * <code>taskToken</code> is generated by the service and should be treated as an 103 * opaque value. If the task is passed to another process, its 104 * <code>taskToken</code> must also be passed. This enables it to provide its 105 * progress and respond with results.</p> 106 */ WithTaskToken(const char * value)107 inline RespondActivityTaskCanceledRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;} 108 109 110 /** 111 * <p> Information about the cancellation.</p> 112 */ GetDetails()113 inline const Aws::String& GetDetails() const{ return m_details; } 114 115 /** 116 * <p> Information about the cancellation.</p> 117 */ DetailsHasBeenSet()118 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } 119 120 /** 121 * <p> Information about the cancellation.</p> 122 */ SetDetails(const Aws::String & value)123 inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; } 124 125 /** 126 * <p> Information about the cancellation.</p> 127 */ SetDetails(Aws::String && value)128 inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } 129 130 /** 131 * <p> Information about the cancellation.</p> 132 */ SetDetails(const char * value)133 inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); } 134 135 /** 136 * <p> Information about the cancellation.</p> 137 */ WithDetails(const Aws::String & value)138 inline RespondActivityTaskCanceledRequest& WithDetails(const Aws::String& value) { SetDetails(value); return *this;} 139 140 /** 141 * <p> Information about the cancellation.</p> 142 */ WithDetails(Aws::String && value)143 inline RespondActivityTaskCanceledRequest& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;} 144 145 /** 146 * <p> Information about the cancellation.</p> 147 */ WithDetails(const char * value)148 inline RespondActivityTaskCanceledRequest& WithDetails(const char* value) { SetDetails(value); return *this;} 149 150 private: 151 152 Aws::String m_taskToken; 153 bool m_taskTokenHasBeenSet; 154 155 Aws::String m_details; 156 bool m_detailsHasBeenSet; 157 }; 158 159 } // namespace Model 160 } // namespace SWF 161 } // namespace Aws 162