AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListDeploymentTargetsRequest.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace CodeDeploy
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListDeploymentTargets"; }
34
36
38
39
43 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
44
48 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
49
53 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
54
58 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
59
63 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
64
68 inline ListDeploymentTargetsRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
69
73 inline ListDeploymentTargetsRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
74
78 inline ListDeploymentTargetsRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
79
80
86 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94
100 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
101
107 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
108
114 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
115
121 inline ListDeploymentTargetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
122
128 inline ListDeploymentTargetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
129
135 inline ListDeploymentTargetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
136
137
147 inline const Aws::Map<TargetFilterName, Aws::Vector<Aws::String>>& GetTargetFilters() const{ return m_targetFilters; }
148
158 inline bool TargetFiltersHasBeenSet() const { return m_targetFiltersHasBeenSet; }
159
169 inline void SetTargetFilters(const Aws::Map<TargetFilterName, Aws::Vector<Aws::String>>& value) { m_targetFiltersHasBeenSet = true; m_targetFilters = value; }
170
180 inline void SetTargetFilters(Aws::Map<TargetFilterName, Aws::Vector<Aws::String>>&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters = std::move(value); }
181
192
203
213 inline ListDeploymentTargetsRequest& AddTargetFilters(const TargetFilterName& key, const Aws::Vector<Aws::String>& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(key, value); return *this; }
214
224 inline ListDeploymentTargetsRequest& AddTargetFilters(TargetFilterName&& key, const Aws::Vector<Aws::String>& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(std::move(key), value); return *this; }
225
235 inline ListDeploymentTargetsRequest& AddTargetFilters(const TargetFilterName& key, Aws::Vector<Aws::String>&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(key, std::move(value)); return *this; }
236
246 inline ListDeploymentTargetsRequest& AddTargetFilters(TargetFilterName&& key, Aws::Vector<Aws::String>&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(std::move(key), std::move(value)); return *this; }
247
248 private:
249
250 Aws::String m_deploymentId;
251 bool m_deploymentIdHasBeenSet = false;
252
253 Aws::String m_nextToken;
254 bool m_nextTokenHasBeenSet = false;
255
257 bool m_targetFiltersHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace CodeDeploy
262} // namespace Aws
#define AWS_CODEDEPLOY_API
ListDeploymentTargetsRequest & WithNextToken(const Aws::String &value)
ListDeploymentTargetsRequest & WithNextToken(const char *value)
ListDeploymentTargetsRequest & WithTargetFilters(const Aws::Map< TargetFilterName, Aws::Vector< Aws::String > > &value)
ListDeploymentTargetsRequest & WithNextToken(Aws::String &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListDeploymentTargetsRequest & WithTargetFilters(Aws::Map< TargetFilterName, Aws::Vector< Aws::String > > &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
ListDeploymentTargetsRequest & AddTargetFilters(TargetFilterName &&key, const Aws::Vector< Aws::String > &value)
ListDeploymentTargetsRequest & AddTargetFilters(const TargetFilterName &key, const Aws::Vector< Aws::String > &value)
ListDeploymentTargetsRequest & AddTargetFilters(const TargetFilterName &key, Aws::Vector< Aws::String > &&value)
ListDeploymentTargetsRequest & WithDeploymentId(Aws::String &&value)
ListDeploymentTargetsRequest & WithDeploymentId(const char *value)
ListDeploymentTargetsRequest & AddTargetFilters(TargetFilterName &&key, Aws::Vector< Aws::String > &&value)
void SetTargetFilters(const Aws::Map< TargetFilterName, Aws::Vector< Aws::String > > &value)
const Aws::Map< TargetFilterName, Aws::Vector< Aws::String > > & GetTargetFilters() const
ListDeploymentTargetsRequest & WithDeploymentId(const Aws::String &value)
void SetTargetFilters(Aws::Map< TargetFilterName, Aws::Vector< Aws::String > > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector