AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListDeploymentsRequest.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/greengrassv2/GreengrassV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrassv2/model/DeploymentHistoryFilter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace GreengrassV2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_GREENGRASSV2_API ListDeploymentsRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListDeployments"; }
36
37 AWS_GREENGRASSV2_API Aws::String SerializePayload() const override;
38
39 AWS_GREENGRASSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
48 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
49 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
50 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
51 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
52 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
53 inline ListDeploymentsRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
54 inline ListDeploymentsRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
55 inline ListDeploymentsRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
57
59
66 inline const DeploymentHistoryFilter& GetHistoryFilter() const{ return m_historyFilter; }
67 inline bool HistoryFilterHasBeenSet() const { return m_historyFilterHasBeenSet; }
68 inline void SetHistoryFilter(const DeploymentHistoryFilter& value) { m_historyFilterHasBeenSet = true; m_historyFilter = value; }
69 inline void SetHistoryFilter(DeploymentHistoryFilter&& value) { m_historyFilterHasBeenSet = true; m_historyFilter = std::move(value); }
71 inline ListDeploymentsRequest& WithHistoryFilter(DeploymentHistoryFilter&& value) { SetHistoryFilter(std::move(value)); return *this;}
73
75
80 inline const Aws::String& GetParentTargetArn() const{ return m_parentTargetArn; }
81 inline bool ParentTargetArnHasBeenSet() const { return m_parentTargetArnHasBeenSet; }
82 inline void SetParentTargetArn(const Aws::String& value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn = value; }
83 inline void SetParentTargetArn(Aws::String&& value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn = std::move(value); }
84 inline void SetParentTargetArn(const char* value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn.assign(value); }
85 inline ListDeploymentsRequest& WithParentTargetArn(const Aws::String& value) { SetParentTargetArn(value); return *this;}
86 inline ListDeploymentsRequest& WithParentTargetArn(Aws::String&& value) { SetParentTargetArn(std::move(value)); return *this;}
87 inline ListDeploymentsRequest& WithParentTargetArn(const char* value) { SetParentTargetArn(value); return *this;}
89
91
95 inline int GetMaxResults() const{ return m_maxResults; }
96 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
98 inline ListDeploymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
100
102
105 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
106 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
107 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
108 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
109 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
110 inline ListDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
111 inline ListDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
112 inline ListDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 private:
115
116 Aws::String m_targetArn;
117 bool m_targetArnHasBeenSet = false;
118
119 DeploymentHistoryFilter m_historyFilter;
120 bool m_historyFilterHasBeenSet = false;
121
122 Aws::String m_parentTargetArn;
123 bool m_parentTargetArnHasBeenSet = false;
124
125 int m_maxResults;
126 bool m_maxResultsHasBeenSet = false;
127
128 Aws::String m_nextToken;
129 bool m_nextTokenHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace GreengrassV2
134} // namespace Aws
ListDeploymentsRequest & WithHistoryFilter(DeploymentHistoryFilter &&value)
ListDeploymentsRequest & WithMaxResults(int value)
ListDeploymentsRequest & WithParentTargetArn(Aws::String &&value)
ListDeploymentsRequest & WithParentTargetArn(const Aws::String &value)
AWS_GREENGRASSV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListDeploymentsRequest & WithTargetArn(const Aws::String &value)
ListDeploymentsRequest & WithTargetArn(Aws::String &&value)
ListDeploymentsRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetHistoryFilter(DeploymentHistoryFilter &&value)
ListDeploymentsRequest & WithTargetArn(const char *value)
ListDeploymentsRequest & WithNextToken(Aws::String &&value)
void SetHistoryFilter(const DeploymentHistoryFilter &value)
ListDeploymentsRequest & WithNextToken(const char *value)
const DeploymentHistoryFilter & GetHistoryFilter() const
ListDeploymentsRequest & WithParentTargetArn(const char *value)
ListDeploymentsRequest & WithHistoryFilter(const DeploymentHistoryFilter &value)
AWS_GREENGRASSV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String