AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ListComponentsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm-sap/SsmSapRequest.h>
9#include <aws/ssm-sap/SsmSap_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SsmSap {
15namespace Model {
16
20 public:
21 AWS_SSMSAP_API ListComponentsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ListComponents"; }
28
29 AWS_SSMSAP_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
36 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
37 template <typename ApplicationIdT = Aws::String>
38 void SetApplicationId(ApplicationIdT&& value) {
39 m_applicationIdHasBeenSet = true;
40 m_applicationId = std::forward<ApplicationIdT>(value);
41 }
42 template <typename ApplicationIdT = Aws::String>
43 ListComponentsRequest& WithApplicationId(ApplicationIdT&& value) {
44 SetApplicationId(std::forward<ApplicationIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetNextToken() const { return m_nextToken; }
54 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
55 template <typename NextTokenT = Aws::String>
56 void SetNextToken(NextTokenT&& value) {
57 m_nextTokenHasBeenSet = true;
58 m_nextToken = std::forward<NextTokenT>(value);
59 }
60 template <typename NextTokenT = Aws::String>
61 ListComponentsRequest& WithNextToken(NextTokenT&& value) {
62 SetNextToken(std::forward<NextTokenT>(value));
63 return *this;
64 }
66
68
74 inline int GetMaxResults() const { return m_maxResults; }
75 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 inline void SetMaxResults(int value) {
77 m_maxResultsHasBeenSet = true;
78 m_maxResults = value;
79 }
81 SetMaxResults(value);
82 return *this;
83 }
85 private:
86 Aws::String m_applicationId;
87
88 Aws::String m_nextToken;
89
90 int m_maxResults{0};
91 bool m_applicationIdHasBeenSet = false;
92 bool m_nextTokenHasBeenSet = false;
93 bool m_maxResultsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace SsmSap
98} // namespace Aws
ListComponentsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
ListComponentsRequest & WithNextToken(NextTokenT &&value)
AWS_SSMSAP_API Aws::String SerializePayload() const override
ListComponentsRequest & WithApplicationId(ApplicationIdT &&value)
AWS_SSMSAP_API ListComponentsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String