AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
ListAssetsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgentRequest.h>
10#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace DevOpsAgent {
19namespace Model {
20
27 public:
28 AWS_DEVOPSAGENT_API ListAssetsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListAssets"; }
35
36 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
37
38 AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
45 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
46 template <typename AgentSpaceIdT = Aws::String>
47 void SetAgentSpaceId(AgentSpaceIdT&& value) {
48 m_agentSpaceIdHasBeenSet = true;
49 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
50 }
51 template <typename AgentSpaceIdT = Aws::String>
52 ListAssetsRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
53 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAssetType() const { return m_assetType; }
63 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
64 template <typename AssetTypeT = Aws::String>
65 void SetAssetType(AssetTypeT&& value) {
66 m_assetTypeHasBeenSet = true;
67 m_assetType = std::forward<AssetTypeT>(value);
68 }
69 template <typename AssetTypeT = Aws::String>
70 ListAssetsRequest& WithAssetType(AssetTypeT&& value) {
71 SetAssetType(std::forward<AssetTypeT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetUpdatedAfter() const { return m_updatedAfter; }
81 inline bool UpdatedAfterHasBeenSet() const { return m_updatedAfterHasBeenSet; }
82 template <typename UpdatedAfterT = Aws::Utils::DateTime>
83 void SetUpdatedAfter(UpdatedAfterT&& value) {
84 m_updatedAfterHasBeenSet = true;
85 m_updatedAfter = std::forward<UpdatedAfterT>(value);
86 }
87 template <typename UpdatedAfterT = Aws::Utils::DateTime>
88 ListAssetsRequest& WithUpdatedAfter(UpdatedAfterT&& value) {
89 SetUpdatedAfter(std::forward<UpdatedAfterT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetUpdatedBefore() const { return m_updatedBefore; }
99 inline bool UpdatedBeforeHasBeenSet() const { return m_updatedBeforeHasBeenSet; }
100 template <typename UpdatedBeforeT = Aws::Utils::DateTime>
101 void SetUpdatedBefore(UpdatedBeforeT&& value) {
102 m_updatedBeforeHasBeenSet = true;
103 m_updatedBefore = std::forward<UpdatedBeforeT>(value);
104 }
105 template <typename UpdatedBeforeT = Aws::Utils::DateTime>
106 ListAssetsRequest& WithUpdatedBefore(UpdatedBeforeT&& value) {
107 SetUpdatedBefore(std::forward<UpdatedBeforeT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetNextToken() const { return m_nextToken; }
118 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 template <typename NextTokenT = Aws::String>
120 void SetNextToken(NextTokenT&& value) {
121 m_nextTokenHasBeenSet = true;
122 m_nextToken = std::forward<NextTokenT>(value);
123 }
124 template <typename NextTokenT = Aws::String>
125 ListAssetsRequest& WithNextToken(NextTokenT&& value) {
126 SetNextToken(std::forward<NextTokenT>(value));
127 return *this;
128 }
130
132
135 inline int GetMaxResults() const { return m_maxResults; }
136 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
137 inline void SetMaxResults(int value) {
138 m_maxResultsHasBeenSet = true;
139 m_maxResults = value;
140 }
142 SetMaxResults(value);
143 return *this;
144 }
146 private:
147 Aws::String m_agentSpaceId;
148
149 Aws::String m_assetType;
150
151 Aws::Utils::DateTime m_updatedAfter{};
152
153 Aws::Utils::DateTime m_updatedBefore{};
154
155 Aws::String m_nextToken;
156
157 int m_maxResults{0};
158 bool m_agentSpaceIdHasBeenSet = false;
159 bool m_assetTypeHasBeenSet = false;
160 bool m_updatedAfterHasBeenSet = false;
161 bool m_updatedBeforeHasBeenSet = false;
162 bool m_nextTokenHasBeenSet = false;
163 bool m_maxResultsHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace DevOpsAgent
168} // namespace Aws
ListAssetsRequest & WithNextToken(NextTokenT &&value)
void SetUpdatedBefore(UpdatedBeforeT &&value)
AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
ListAssetsRequest & WithAssetType(AssetTypeT &&value)
ListAssetsRequest & WithUpdatedAfter(UpdatedAfterT &&value)
ListAssetsRequest & WithUpdatedBefore(UpdatedBeforeT &&value)
const Aws::Utils::DateTime & GetUpdatedBefore() const
void SetAgentSpaceId(AgentSpaceIdT &&value)
void SetUpdatedAfter(UpdatedAfterT &&value)
ListAssetsRequest & WithMaxResults(int value)
AWS_DEVOPSAGENT_API ListAssetsRequest()=default
ListAssetsRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
const Aws::String & GetAgentSpaceId() const
const Aws::Utils::DateTime & GetUpdatedAfter() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String