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

Represents the input of a PollForJobs action.

See * Also:

AWS * API Reference

*/ class PollForJobsRequest : public CodePipelineRequest { public: AWS_CODEPIPELINE_API PollForJobsRequest(); // 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 "PollForJobs"; } 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 PollForJobsRequest& WithActionTypeId(const ActionTypeId& value) { SetActionTypeId(value); return *this;} /** *

Represents information about an action type.

*/ inline PollForJobsRequest& 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 PollForJobsRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;} /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline const Aws::Map& GetQueryParam() const{ return m_queryParam; } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline bool QueryParamHasBeenSet() const { return m_queryParamHasBeenSet; } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline void SetQueryParam(const Aws::Map& value) { m_queryParamHasBeenSet = true; m_queryParam = value; } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline void SetQueryParam(Aws::Map&& value) { m_queryParamHasBeenSet = true; m_queryParam = std::move(value); } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline PollForJobsRequest& WithQueryParam(const Aws::Map& value) { SetQueryParam(value); return *this;} /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline PollForJobsRequest& WithQueryParam(Aws::Map&& value) { SetQueryParam(std::move(value)); return *this;} /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline PollForJobsRequest& AddQueryParam(const Aws::String& key, const Aws::String& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, value); return *this; } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline PollForJobsRequest& AddQueryParam(Aws::String&& key, const Aws::String& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(std::move(key), value); return *this; } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline PollForJobsRequest& AddQueryParam(const Aws::String& key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, std::move(value)); return *this; } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline PollForJobsRequest& AddQueryParam(Aws::String&& key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline PollForJobsRequest& AddQueryParam(const char* key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, std::move(value)); return *this; } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline PollForJobsRequest& AddQueryParam(Aws::String&& key, const char* value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(std::move(key), value); return *this; } /** *

A map of property names and values. For an action type with no queryable * properties, this value must be null or an empty map. For an action type with a * queryable property, you must supply that property as a key in the map. Only jobs * whose action configuration matches the mapped value are returned.

*/ inline PollForJobsRequest& AddQueryParam(const char* key, const char* value) { m_queryParamHasBeenSet = true; m_queryParam.emplace(key, value); return *this; } private: ActionTypeId m_actionTypeId; bool m_actionTypeIdHasBeenSet = false; int m_maxBatchSize; bool m_maxBatchSizeHasBeenSet = false; Aws::Map m_queryParam; bool m_queryParamHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws