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/codepipeline/CodePipeline_EXPORTS.h> 8 #include <aws/codepipeline/CodePipelineRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/codepipeline/model/ActionRevision.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace CodePipeline 16 { 17 namespace Model 18 { 19 20 /** 21 * <p>Represents the input of a <code>PutActionRevision</code> 22 * action.</p><p><h3>See Also:</h3> <a 23 * href="http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevisionInput">AWS 24 * API Reference</a></p> 25 */ 26 class AWS_CODEPIPELINE_API PutActionRevisionRequest : public CodePipelineRequest 27 { 28 public: 29 PutActionRevisionRequest(); 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. GetServiceRequestName()35 inline virtual const char* GetServiceRequestName() const override { return "PutActionRevision"; } 36 37 Aws::String SerializePayload() const override; 38 39 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 40 41 42 /** 43 * <p>The name of the pipeline that starts processing the revision to the 44 * source.</p> 45 */ GetPipelineName()46 inline const Aws::String& GetPipelineName() const{ return m_pipelineName; } 47 48 /** 49 * <p>The name of the pipeline that starts processing the revision to the 50 * source.</p> 51 */ PipelineNameHasBeenSet()52 inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; } 53 54 /** 55 * <p>The name of the pipeline that starts processing the revision to the 56 * source.</p> 57 */ SetPipelineName(const Aws::String & value)58 inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; } 59 60 /** 61 * <p>The name of the pipeline that starts processing the revision to the 62 * source.</p> 63 */ SetPipelineName(Aws::String && value)64 inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); } 65 66 /** 67 * <p>The name of the pipeline that starts processing the revision to the 68 * source.</p> 69 */ SetPipelineName(const char * value)70 inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); } 71 72 /** 73 * <p>The name of the pipeline that starts processing the revision to the 74 * source.</p> 75 */ WithPipelineName(const Aws::String & value)76 inline PutActionRevisionRequest& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;} 77 78 /** 79 * <p>The name of the pipeline that starts processing the revision to the 80 * source.</p> 81 */ WithPipelineName(Aws::String && value)82 inline PutActionRevisionRequest& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;} 83 84 /** 85 * <p>The name of the pipeline that starts processing the revision to the 86 * source.</p> 87 */ WithPipelineName(const char * value)88 inline PutActionRevisionRequest& WithPipelineName(const char* value) { SetPipelineName(value); return *this;} 89 90 91 /** 92 * <p>The name of the stage that contains the action that acts on the revision.</p> 93 */ GetStageName()94 inline const Aws::String& GetStageName() const{ return m_stageName; } 95 96 /** 97 * <p>The name of the stage that contains the action that acts on the revision.</p> 98 */ StageNameHasBeenSet()99 inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; } 100 101 /** 102 * <p>The name of the stage that contains the action that acts on the revision.</p> 103 */ SetStageName(const Aws::String & value)104 inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; } 105 106 /** 107 * <p>The name of the stage that contains the action that acts on the revision.</p> 108 */ SetStageName(Aws::String && value)109 inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); } 110 111 /** 112 * <p>The name of the stage that contains the action that acts on the revision.</p> 113 */ SetStageName(const char * value)114 inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); } 115 116 /** 117 * <p>The name of the stage that contains the action that acts on the revision.</p> 118 */ WithStageName(const Aws::String & value)119 inline PutActionRevisionRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;} 120 121 /** 122 * <p>The name of the stage that contains the action that acts on the revision.</p> 123 */ WithStageName(Aws::String && value)124 inline PutActionRevisionRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;} 125 126 /** 127 * <p>The name of the stage that contains the action that acts on the revision.</p> 128 */ WithStageName(const char * value)129 inline PutActionRevisionRequest& WithStageName(const char* value) { SetStageName(value); return *this;} 130 131 132 /** 133 * <p>The name of the action that processes the revision.</p> 134 */ GetActionName()135 inline const Aws::String& GetActionName() const{ return m_actionName; } 136 137 /** 138 * <p>The name of the action that processes the revision.</p> 139 */ ActionNameHasBeenSet()140 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } 141 142 /** 143 * <p>The name of the action that processes the revision.</p> 144 */ SetActionName(const Aws::String & value)145 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } 146 147 /** 148 * <p>The name of the action that processes the revision.</p> 149 */ SetActionName(Aws::String && value)150 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } 151 152 /** 153 * <p>The name of the action that processes the revision.</p> 154 */ SetActionName(const char * value)155 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } 156 157 /** 158 * <p>The name of the action that processes the revision.</p> 159 */ WithActionName(const Aws::String & value)160 inline PutActionRevisionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} 161 162 /** 163 * <p>The name of the action that processes the revision.</p> 164 */ WithActionName(Aws::String && value)165 inline PutActionRevisionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} 166 167 /** 168 * <p>The name of the action that processes the revision.</p> 169 */ WithActionName(const char * value)170 inline PutActionRevisionRequest& WithActionName(const char* value) { SetActionName(value); return *this;} 171 172 173 /** 174 * <p>Represents information about the version (or revision) of an action.</p> 175 */ GetActionRevision()176 inline const ActionRevision& GetActionRevision() const{ return m_actionRevision; } 177 178 /** 179 * <p>Represents information about the version (or revision) of an action.</p> 180 */ ActionRevisionHasBeenSet()181 inline bool ActionRevisionHasBeenSet() const { return m_actionRevisionHasBeenSet; } 182 183 /** 184 * <p>Represents information about the version (or revision) of an action.</p> 185 */ SetActionRevision(const ActionRevision & value)186 inline void SetActionRevision(const ActionRevision& value) { m_actionRevisionHasBeenSet = true; m_actionRevision = value; } 187 188 /** 189 * <p>Represents information about the version (or revision) of an action.</p> 190 */ SetActionRevision(ActionRevision && value)191 inline void SetActionRevision(ActionRevision&& value) { m_actionRevisionHasBeenSet = true; m_actionRevision = std::move(value); } 192 193 /** 194 * <p>Represents information about the version (or revision) of an action.</p> 195 */ WithActionRevision(const ActionRevision & value)196 inline PutActionRevisionRequest& WithActionRevision(const ActionRevision& value) { SetActionRevision(value); return *this;} 197 198 /** 199 * <p>Represents information about the version (or revision) of an action.</p> 200 */ WithActionRevision(ActionRevision && value)201 inline PutActionRevisionRequest& WithActionRevision(ActionRevision&& value) { SetActionRevision(std::move(value)); return *this;} 202 203 private: 204 205 Aws::String m_pipelineName; 206 bool m_pipelineNameHasBeenSet; 207 208 Aws::String m_stageName; 209 bool m_stageNameHasBeenSet; 210 211 Aws::String m_actionName; 212 bool m_actionNameHasBeenSet; 213 214 ActionRevision m_actionRevision; 215 bool m_actionRevisionHasBeenSet; 216 }; 217 218 } // namespace Model 219 } // namespace CodePipeline 220 } // namespace Aws 221