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

Represents the input of a PollForThirdPartyJobs * action.

See Also:

AWS * API Reference

*/ class PollForThirdPartyJobsRequest : public CodePipelineRequest { public: AWS_CODEPIPELINE_API PollForThirdPartyJobsRequest(); // 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 "PollForThirdPartyJobs"; } AWS_CODEPIPELINE_API Aws::String SerializePayload() const override; AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Represents information about an action type.

*/ inline const ActionTypeId& GetActionTypeId() const{ return m_actionTypeId; } /** *

Represents information about an action type.

*/ inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; } /** *

Represents information about an action type.

*/ inline void SetActionTypeId(const ActionTypeId& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; } /** *

Represents information about an action type.

*/ inline void SetActionTypeId(ActionTypeId&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = std::move(value); } /** *

Represents information about an action type.

*/ inline PollForThirdPartyJobsRequest& WithActionTypeId(const ActionTypeId& value) { SetActionTypeId(value); return *this;} /** *

Represents information about an action type.

*/ inline PollForThirdPartyJobsRequest& WithActionTypeId(ActionTypeId&& value) { SetActionTypeId(std::move(value)); return *this;} /** *

The maximum number of jobs to return in a poll for jobs call.

*/ inline int GetMaxBatchSize() const{ return m_maxBatchSize; } /** *

The maximum number of jobs to return in a poll for jobs call.

*/ inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; } /** *

The maximum number of jobs to return in a poll for jobs call.

*/ inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; } /** *

The maximum number of jobs to return in a poll for jobs call.

*/ inline PollForThirdPartyJobsRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;} private: ActionTypeId m_actionTypeId; bool m_actionTypeIdHasBeenSet = false; int m_maxBatchSize; bool m_maxBatchSizeHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws