AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListDeploymentsRequest.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/AWSVector.h>
11#include <aws/codedeploy/model/TimeRange.h>
12#include <aws/codedeploy/model/DeploymentStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeDeploy
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_CODEDEPLOY_API ListDeploymentsRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListDeployments"; }
38
39 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
40
42
43
45
51 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
52 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
53 template<typename ApplicationNameT = Aws::String>
54 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
55 template<typename ApplicationNameT = Aws::String>
56 ListDeploymentsRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
58
60
66 inline const Aws::String& GetDeploymentGroupName() const { return m_deploymentGroupName; }
67 inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
68 template<typename DeploymentGroupNameT = Aws::String>
69 void SetDeploymentGroupName(DeploymentGroupNameT&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = std::forward<DeploymentGroupNameT>(value); }
70 template<typename DeploymentGroupNameT = Aws::String>
71 ListDeploymentsRequest& WithDeploymentGroupName(DeploymentGroupNameT&& value) { SetDeploymentGroupName(std::forward<DeploymentGroupNameT>(value)); return *this;}
73
75
79 inline const Aws::String& GetExternalId() const { return m_externalId; }
80 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
81 template<typename ExternalIdT = Aws::String>
82 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
83 template<typename ExternalIdT = Aws::String>
84 ListDeploymentsRequest& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
86
88
99 inline const Aws::Vector<DeploymentStatus>& GetIncludeOnlyStatuses() const { return m_includeOnlyStatuses; }
100 inline bool IncludeOnlyStatusesHasBeenSet() const { return m_includeOnlyStatusesHasBeenSet; }
101 template<typename IncludeOnlyStatusesT = Aws::Vector<DeploymentStatus>>
102 void SetIncludeOnlyStatuses(IncludeOnlyStatusesT&& value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses = std::forward<IncludeOnlyStatusesT>(value); }
103 template<typename IncludeOnlyStatusesT = Aws::Vector<DeploymentStatus>>
104 ListDeploymentsRequest& WithIncludeOnlyStatuses(IncludeOnlyStatusesT&& value) { SetIncludeOnlyStatuses(std::forward<IncludeOnlyStatusesT>(value)); return *this;}
105 inline ListDeploymentsRequest& AddIncludeOnlyStatuses(DeploymentStatus value) { m_includeOnlyStatusesHasBeenSet = true; m_includeOnlyStatuses.push_back(value); return *this; }
107
109
113 inline const TimeRange& GetCreateTimeRange() const { return m_createTimeRange; }
114 inline bool CreateTimeRangeHasBeenSet() const { return m_createTimeRangeHasBeenSet; }
115 template<typename CreateTimeRangeT = TimeRange>
116 void SetCreateTimeRange(CreateTimeRangeT&& value) { m_createTimeRangeHasBeenSet = true; m_createTimeRange = std::forward<CreateTimeRangeT>(value); }
117 template<typename CreateTimeRangeT = TimeRange>
118 ListDeploymentsRequest& WithCreateTimeRange(CreateTimeRangeT&& value) { SetCreateTimeRange(std::forward<CreateTimeRangeT>(value)); return *this;}
120
122
126 inline const Aws::String& GetNextToken() const { return m_nextToken; }
127 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 template<typename NextTokenT = Aws::String>
129 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
130 template<typename NextTokenT = Aws::String>
131 ListDeploymentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
133 private:
134
135 Aws::String m_applicationName;
136 bool m_applicationNameHasBeenSet = false;
137
138 Aws::String m_deploymentGroupName;
139 bool m_deploymentGroupNameHasBeenSet = false;
140
141 Aws::String m_externalId;
142 bool m_externalIdHasBeenSet = false;
143
144 Aws::Vector<DeploymentStatus> m_includeOnlyStatuses;
145 bool m_includeOnlyStatusesHasBeenSet = false;
146
147 TimeRange m_createTimeRange;
148 bool m_createTimeRangeHasBeenSet = false;
149
150 Aws::String m_nextToken;
151 bool m_nextTokenHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace CodeDeploy
156} // namespace Aws
ListDeploymentsRequest & WithDeploymentGroupName(DeploymentGroupNameT &&value)
void SetDeploymentGroupName(DeploymentGroupNameT &&value)
ListDeploymentsRequest & WithIncludeOnlyStatuses(IncludeOnlyStatusesT &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
ListDeploymentsRequest & WithNextToken(NextTokenT &&value)
ListDeploymentsRequest & WithApplicationName(ApplicationNameT &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< DeploymentStatus > & GetIncludeOnlyStatuses() const
virtual const char * GetServiceRequestName() const override
AWS_CODEDEPLOY_API ListDeploymentsRequest()=default
ListDeploymentsRequest & WithCreateTimeRange(CreateTimeRangeT &&value)
ListDeploymentsRequest & AddIncludeOnlyStatuses(DeploymentStatus value)
void SetIncludeOnlyStatuses(IncludeOnlyStatusesT &&value)
ListDeploymentsRequest & WithExternalId(ExternalIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector