AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
47 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
48 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
49 inline ListDeploymentTargetsRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
50 inline ListDeploymentTargetsRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
51 inline ListDeploymentTargetsRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
53
55
60 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
63 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
64 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
65 inline ListDeploymentTargetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 inline ListDeploymentTargetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
67 inline ListDeploymentTargetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
69
71
80 inline const Aws::Map<TargetFilterName, Aws::Vector<Aws::String>>& GetTargetFilters() const{ return m_targetFilters; }
81 inline bool TargetFiltersHasBeenSet() const { return m_targetFiltersHasBeenSet; }
82 inline void SetTargetFilters(const Aws::Map<TargetFilterName, Aws::Vector<Aws::String>>& value) { m_targetFiltersHasBeenSet = true; m_targetFilters = value; }
83 inline void SetTargetFilters(Aws::Map<TargetFilterName, Aws::Vector<Aws::String>>&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters = std::move(value); }
86 inline ListDeploymentTargetsRequest& AddTargetFilters(const TargetFilterName& key, const Aws::Vector<Aws::String>& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(key, value); return *this; }
87 inline ListDeploymentTargetsRequest& AddTargetFilters(TargetFilterName&& key, const Aws::Vector<Aws::String>& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(std::move(key), value); return *this; }
88 inline ListDeploymentTargetsRequest& AddTargetFilters(const TargetFilterName& key, Aws::Vector<Aws::String>&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(key, std::move(value)); return *this; }
89 inline ListDeploymentTargetsRequest& AddTargetFilters(TargetFilterName&& key, Aws::Vector<Aws::String>&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(std::move(key), std::move(value)); return *this; }
91 private:
92
93 Aws::String m_deploymentId;
94 bool m_deploymentIdHasBeenSet = false;
95
96 Aws::String m_nextToken;
97 bool m_nextTokenHasBeenSet = false;
98
100 bool m_targetFiltersHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CodeDeploy
105} // namespace Aws
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