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/codepipeline/model/ActionTypeId.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodePipeline
15 {
16 namespace Model
17 {
18 
19   /**
20    * <p>Represents the input of a <code>PollForThirdPartyJobs</code>
21    * action.</p><p><h3>See Also:</h3>   <a
22    * href="http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobsInput">AWS
23    * API Reference</a></p>
24    */
25   class AWS_CODEPIPELINE_API PollForThirdPartyJobsRequest : public CodePipelineRequest
26   {
27   public:
28     PollForThirdPartyJobsRequest();
29 
30     // Service request name is the Operation name which will send this request out,
31     // each operation should has unique request name, so that we can get operation's name from this request.
32     // Note: this is not true for response, multiple operations may have the same response name,
33     // so we can not get operation's name from response.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "PollForThirdPartyJobs"; }
35 
36     Aws::String SerializePayload() const override;
37 
38     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
41     /**
42      * <p>Represents information about an action type.</p>
43      */
GetActionTypeId()44     inline const ActionTypeId& GetActionTypeId() const{ return m_actionTypeId; }
45 
46     /**
47      * <p>Represents information about an action type.</p>
48      */
ActionTypeIdHasBeenSet()49     inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; }
50 
51     /**
52      * <p>Represents information about an action type.</p>
53      */
SetActionTypeId(const ActionTypeId & value)54     inline void SetActionTypeId(const ActionTypeId& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; }
55 
56     /**
57      * <p>Represents information about an action type.</p>
58      */
SetActionTypeId(ActionTypeId && value)59     inline void SetActionTypeId(ActionTypeId&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = std::move(value); }
60 
61     /**
62      * <p>Represents information about an action type.</p>
63      */
WithActionTypeId(const ActionTypeId & value)64     inline PollForThirdPartyJobsRequest& WithActionTypeId(const ActionTypeId& value) { SetActionTypeId(value); return *this;}
65 
66     /**
67      * <p>Represents information about an action type.</p>
68      */
WithActionTypeId(ActionTypeId && value)69     inline PollForThirdPartyJobsRequest& WithActionTypeId(ActionTypeId&& value) { SetActionTypeId(std::move(value)); return *this;}
70 
71 
72     /**
73      * <p>The maximum number of jobs to return in a poll for jobs call.</p>
74      */
GetMaxBatchSize()75     inline int GetMaxBatchSize() const{ return m_maxBatchSize; }
76 
77     /**
78      * <p>The maximum number of jobs to return in a poll for jobs call.</p>
79      */
MaxBatchSizeHasBeenSet()80     inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
81 
82     /**
83      * <p>The maximum number of jobs to return in a poll for jobs call.</p>
84      */
SetMaxBatchSize(int value)85     inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
86 
87     /**
88      * <p>The maximum number of jobs to return in a poll for jobs call.</p>
89      */
WithMaxBatchSize(int value)90     inline PollForThirdPartyJobsRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
91 
92   private:
93 
94     ActionTypeId m_actionTypeId;
95     bool m_actionTypeIdHasBeenSet;
96 
97     int m_maxBatchSize;
98     bool m_maxBatchSizeHasBeenSet;
99   };
100 
101 } // namespace Model
102 } // namespace CodePipeline
103 } // namespace Aws
104