AWS SDK for C++  0.14.3
AWS SDK for C++
PollForJobsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace CodePipeline
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
41  inline const ActionTypeId& GetActionTypeId() const{ return m_actionTypeId; }
42 
43 
44  inline void SetActionTypeId(const ActionTypeId& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; }
45 
46 
47  inline void SetActionTypeId(ActionTypeId&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; }
48 
49 
50  inline PollForJobsRequest& WithActionTypeId(const ActionTypeId& value) { SetActionTypeId(value); return *this;}
51 
52 
53  inline PollForJobsRequest& WithActionTypeId(ActionTypeId&& value) { SetActionTypeId(value); return *this;}
54 
58  inline int GetMaxBatchSize() const{ return m_maxBatchSize; }
59 
63  inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
64 
68  inline PollForJobsRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
69 
76  inline const Aws::Map<Aws::String, Aws::String>& GetQueryParam() const{ return m_queryParam; }
77 
84  inline void SetQueryParam(const Aws::Map<Aws::String, Aws::String>& value) { m_queryParamHasBeenSet = true; m_queryParam = value; }
85 
92  inline void SetQueryParam(Aws::Map<Aws::String, Aws::String>&& value) { m_queryParamHasBeenSet = true; m_queryParam = value; }
93 
100  inline PollForJobsRequest& WithQueryParam(const Aws::Map<Aws::String, Aws::String>& value) { SetQueryParam(value); return *this;}
101 
108  inline PollForJobsRequest& WithQueryParam(Aws::Map<Aws::String, Aws::String>&& value) { SetQueryParam(value); return *this;}
109 
116  inline PollForJobsRequest& AddQueryParam(const Aws::String& key, const Aws::String& value) { m_queryParamHasBeenSet = true; m_queryParam[key] = value; return *this; }
117 
124  inline PollForJobsRequest& AddQueryParam(Aws::String&& key, const Aws::String& value) { m_queryParamHasBeenSet = true; m_queryParam[key] = value; return *this; }
125 
132  inline PollForJobsRequest& AddQueryParam(const Aws::String& key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam[key] = value; return *this; }
133 
140  inline PollForJobsRequest& AddQueryParam(Aws::String&& key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam[key] = value; return *this; }
141 
148  inline PollForJobsRequest& AddQueryParam(const char* key, Aws::String&& value) { m_queryParamHasBeenSet = true; m_queryParam[key] = value; return *this; }
149 
156  inline PollForJobsRequest& AddQueryParam(Aws::String&& key, const char* value) { m_queryParamHasBeenSet = true; m_queryParam[key] = value; return *this; }
157 
164  inline PollForJobsRequest& AddQueryParam(const char* key, const char* value) { m_queryParamHasBeenSet = true; m_queryParam[key] = value; return *this; }
165 
166  private:
167  ActionTypeId m_actionTypeId;
168  bool m_actionTypeIdHasBeenSet;
169  int m_maxBatchSize;
170  bool m_maxBatchSizeHasBeenSet;
172  bool m_queryParamHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace CodePipeline
177 } // namespace Aws
void SetActionTypeId(const ActionTypeId &value)
PollForJobsRequest & AddQueryParam(const Aws::String &key, const Aws::String &value)
void SetQueryParam(const Aws::Map< Aws::String, Aws::String > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
PollForJobsRequest & AddQueryParam(Aws::String &&key, const Aws::String &value)
PollForJobsRequest & WithQueryParam(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetQueryParam() const
PollForJobsRequest & AddQueryParam(Aws::String &&key, Aws::String &&value)
const ActionTypeId & GetActionTypeId() const
#define AWS_CODEPIPELINE_API
PollForJobsRequest & AddQueryParam(const char *key, Aws::String &&value)
PollForJobsRequest & WithActionTypeId(const ActionTypeId &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PollForJobsRequest & WithQueryParam(Aws::Map< Aws::String, Aws::String > &&value)
PollForJobsRequest & AddQueryParam(const Aws::String &key, Aws::String &&value)
PollForJobsRequest & WithMaxBatchSize(int value)
void SetQueryParam(Aws::Map< Aws::String, Aws::String > &&value)
PollForJobsRequest & AddQueryParam(const char *key, const char *value)
PollForJobsRequest & WithActionTypeId(ActionTypeId &&value)
PollForJobsRequest & AddQueryParam(Aws::String &&key, const char *value)
JSON (JavaScript Object Notation).