/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CodePipeline { namespace Model { /** *

Represents the input of a PutJobSuccessResult * action.

See Also:

AWS * API Reference

*/ class PutJobSuccessResultRequest : public CodePipelineRequest { public: AWS_CODEPIPELINE_API PutJobSuccessResultRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutJobSuccessResult"; } AWS_CODEPIPELINE_API Aws::String SerializePayload() const override; AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique system-generated ID of the job that succeeded. This is the same ID * returned from PollForJobs.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The unique system-generated ID of the job that succeeded. This is the same ID * returned from PollForJobs.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The unique system-generated ID of the job that succeeded. This is the same ID * returned from PollForJobs.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The unique system-generated ID of the job that succeeded. This is the same ID * returned from PollForJobs.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The unique system-generated ID of the job that succeeded. This is the same ID * returned from PollForJobs.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The unique system-generated ID of the job that succeeded. This is the same ID * returned from PollForJobs.

*/ inline PutJobSuccessResultRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The unique system-generated ID of the job that succeeded. This is the same ID * returned from PollForJobs.

*/ inline PutJobSuccessResultRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The unique system-generated ID of the job that succeeded. This is the same ID * returned from PollForJobs.

*/ inline PutJobSuccessResultRequest& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The ID of the current revision of the artifact successfully worked on by the * job.

*/ inline const CurrentRevision& GetCurrentRevision() const{ return m_currentRevision; } /** *

The ID of the current revision of the artifact successfully worked on by the * job.

*/ inline bool CurrentRevisionHasBeenSet() const { return m_currentRevisionHasBeenSet; } /** *

The ID of the current revision of the artifact successfully worked on by the * job.

*/ inline void SetCurrentRevision(const CurrentRevision& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = value; } /** *

The ID of the current revision of the artifact successfully worked on by the * job.

*/ inline void SetCurrentRevision(CurrentRevision&& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = std::move(value); } /** *

The ID of the current revision of the artifact successfully worked on by the * job.

*/ inline PutJobSuccessResultRequest& WithCurrentRevision(const CurrentRevision& value) { SetCurrentRevision(value); return *this;} /** *

The ID of the current revision of the artifact successfully worked on by the * job.

*/ inline PutJobSuccessResultRequest& WithCurrentRevision(CurrentRevision&& value) { SetCurrentRevision(std::move(value)); return *this;} /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a custom action in progress. Future jobs use * this token to identify the running instance of the action. It can be reused to * return more information about the progress of the custom action. When the action * is complete, no continuation token should be supplied.

*/ inline const Aws::String& GetContinuationToken() const{ return m_continuationToken; } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a custom action in progress. Future jobs use * this token to identify the running instance of the action. It can be reused to * return more information about the progress of the custom action. When the action * is complete, no continuation token should be supplied.

*/ inline bool ContinuationTokenHasBeenSet() const { return m_continuationTokenHasBeenSet; } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a custom action in progress. Future jobs use * this token to identify the running instance of the action. It can be reused to * return more information about the progress of the custom action. When the action * is complete, no continuation token should be supplied.

*/ inline void SetContinuationToken(const Aws::String& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = value; } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a custom action in progress. Future jobs use * this token to identify the running instance of the action. It can be reused to * return more information about the progress of the custom action. When the action * is complete, no continuation token should be supplied.

*/ inline void SetContinuationToken(Aws::String&& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = std::move(value); } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a custom action in progress. Future jobs use * this token to identify the running instance of the action. It can be reused to * return more information about the progress of the custom action. When the action * is complete, no continuation token should be supplied.

*/ inline void SetContinuationToken(const char* value) { m_continuationTokenHasBeenSet = true; m_continuationToken.assign(value); } /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a custom action in progress. Future jobs use * this token to identify the running instance of the action. It can be reused to * return more information about the progress of the custom action. When the action * is complete, no continuation token should be supplied.

*/ inline PutJobSuccessResultRequest& WithContinuationToken(const Aws::String& value) { SetContinuationToken(value); return *this;} /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a custom action in progress. Future jobs use * this token to identify the running instance of the action. It can be reused to * return more information about the progress of the custom action. When the action * is complete, no continuation token should be supplied.

*/ inline PutJobSuccessResultRequest& WithContinuationToken(Aws::String&& value) { SetContinuationToken(std::move(value)); return *this;} /** *

A token generated by a job worker, such as a CodeDeploy deployment ID, that a * successful job provides to identify a custom action in progress. Future jobs use * this token to identify the running instance of the action. It can be reused to * return more information about the progress of the custom action. When the action * is complete, no continuation token should be supplied.

*/ inline PutJobSuccessResultRequest& WithContinuationToken(const char* value) { SetContinuationToken(value); return *this;} /** *

The execution details of the successful job, such as the actions taken by the * job worker.

*/ inline const ExecutionDetails& GetExecutionDetails() const{ return m_executionDetails; } /** *

The execution details of the successful job, such as the actions taken by the * job worker.

*/ inline bool ExecutionDetailsHasBeenSet() const { return m_executionDetailsHasBeenSet; } /** *

The execution details of the successful job, such as the actions taken by the * job worker.

*/ inline void SetExecutionDetails(const ExecutionDetails& value) { m_executionDetailsHasBeenSet = true; m_executionDetails = value; } /** *

The execution details of the successful job, such as the actions taken by the * job worker.

*/ inline void SetExecutionDetails(ExecutionDetails&& value) { m_executionDetailsHasBeenSet = true; m_executionDetails = std::move(value); } /** *

The execution details of the successful job, such as the actions taken by the * job worker.

*/ inline PutJobSuccessResultRequest& WithExecutionDetails(const ExecutionDetails& value) { SetExecutionDetails(value); return *this;} /** *

The execution details of the successful job, such as the actions taken by the * job worker.

*/ inline PutJobSuccessResultRequest& WithExecutionDetails(ExecutionDetails&& value) { SetExecutionDetails(std::move(value)); return *this;} /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline const Aws::Map& GetOutputVariables() const{ return m_outputVariables; } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline bool OutputVariablesHasBeenSet() const { return m_outputVariablesHasBeenSet; } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline void SetOutputVariables(const Aws::Map& value) { m_outputVariablesHasBeenSet = true; m_outputVariables = value; } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline void SetOutputVariables(Aws::Map&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables = std::move(value); } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline PutJobSuccessResultRequest& WithOutputVariables(const Aws::Map& value) { SetOutputVariables(value); return *this;} /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline PutJobSuccessResultRequest& WithOutputVariables(Aws::Map&& value) { SetOutputVariables(std::move(value)); return *this;} /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline PutJobSuccessResultRequest& AddOutputVariables(const Aws::String& key, const Aws::String& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.emplace(key, value); return *this; } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline PutJobSuccessResultRequest& AddOutputVariables(Aws::String&& key, const Aws::String& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.emplace(std::move(key), value); return *this; } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline PutJobSuccessResultRequest& AddOutputVariables(const Aws::String& key, Aws::String&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.emplace(key, std::move(value)); return *this; } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline PutJobSuccessResultRequest& AddOutputVariables(Aws::String&& key, Aws::String&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.emplace(std::move(key), std::move(value)); return *this; } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline PutJobSuccessResultRequest& AddOutputVariables(const char* key, Aws::String&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.emplace(key, std::move(value)); return *this; } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline PutJobSuccessResultRequest& AddOutputVariables(Aws::String&& key, const char* value) { m_outputVariablesHasBeenSet = true; m_outputVariables.emplace(std::move(key), value); return *this; } /** *

Key-value pairs produced as output by a job worker that can be made available * to a downstream action configuration. outputVariables can be * included only when there is no continuation token on the request.

*/ inline PutJobSuccessResultRequest& AddOutputVariables(const char* key, const char* value) { m_outputVariablesHasBeenSet = true; m_outputVariables.emplace(key, value); return *this; } private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; CurrentRevision m_currentRevision; bool m_currentRevisionHasBeenSet = false; Aws::String m_continuationToken; bool m_continuationTokenHasBeenSet = false; ExecutionDetails m_executionDetails; bool m_executionDetailsHasBeenSet = false; Aws::Map m_outputVariables; bool m_outputVariablesHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws