AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListDeploymentTargetsRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/codedeploy/model/TargetFilterName.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeDeploy
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CODEDEPLOY_API ListDeploymentTargetsRequest() = default;
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
35 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
45 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
46 template<typename DeploymentIdT = Aws::String>
47 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
48 template<typename DeploymentIdT = Aws::String>
49 ListDeploymentTargetsRequest& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
51
53
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template<typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
62 template<typename NextTokenT = Aws::String>
63 ListDeploymentTargetsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
65
67
76 inline const Aws::Map<TargetFilterName, Aws::Vector<Aws::String>>& GetTargetFilters() const { return m_targetFilters; }
77 inline bool TargetFiltersHasBeenSet() const { return m_targetFiltersHasBeenSet; }
78 template<typename TargetFiltersT = Aws::Map<TargetFilterName, Aws::Vector<Aws::String>>>
79 void SetTargetFilters(TargetFiltersT&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters = std::forward<TargetFiltersT>(value); }
80 template<typename TargetFiltersT = Aws::Map<TargetFilterName, Aws::Vector<Aws::String>>>
81 ListDeploymentTargetsRequest& WithTargetFilters(TargetFiltersT&& value) { SetTargetFilters(std::forward<TargetFiltersT>(value)); return *this;}
83 m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(key, value); return *this;
84 }
86 private:
87
88 Aws::String m_deploymentId;
89 bool m_deploymentIdHasBeenSet = false;
90
91 Aws::String m_nextToken;
92 bool m_nextTokenHasBeenSet = false;
93
95 bool m_targetFiltersHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CodeDeploy
100} // namespace Aws
ListDeploymentTargetsRequest & AddTargetFilters(TargetFilterName key, Aws::Vector< Aws::String > value)
ListDeploymentTargetsRequest & WithNextToken(NextTokenT &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
ListDeploymentTargetsRequest & WithTargetFilters(TargetFiltersT &&value)
AWS_CODEDEPLOY_API ListDeploymentTargetsRequest()=default
ListDeploymentTargetsRequest & WithDeploymentId(DeploymentIdT &&value)
const Aws::Map< TargetFilterName, Aws::Vector< Aws::String > > & GetTargetFilters() const
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