AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ListComponentsRequest.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsightsRequest.h>
8#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ApplicationInsights {
15namespace Model {
16
20 public:
21 AWS_APPLICATIONINSIGHTS_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_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override;
30
31 AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
38 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
39 template <typename ResourceGroupNameT = Aws::String>
40 void SetResourceGroupName(ResourceGroupNameT&& value) {
41 m_resourceGroupNameHasBeenSet = true;
42 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
43 }
44 template <typename ResourceGroupNameT = Aws::String>
45 ListComponentsRequest& WithResourceGroupName(ResourceGroupNameT&& value) {
46 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
47 return *this;
48 }
50
52
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) {
60 m_maxResultsHasBeenSet = true;
61 m_maxResults = value;
62 }
64 SetMaxResults(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetNextToken() const { return m_nextToken; }
74 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
75 template <typename NextTokenT = Aws::String>
76 void SetNextToken(NextTokenT&& value) {
77 m_nextTokenHasBeenSet = true;
78 m_nextToken = std::forward<NextTokenT>(value);
79 }
80 template <typename NextTokenT = Aws::String>
81 ListComponentsRequest& WithNextToken(NextTokenT&& value) {
82 SetNextToken(std::forward<NextTokenT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetAccountId() const { return m_accountId; }
92 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
93 template <typename AccountIdT = Aws::String>
94 void SetAccountId(AccountIdT&& value) {
95 m_accountIdHasBeenSet = true;
96 m_accountId = std::forward<AccountIdT>(value);
97 }
98 template <typename AccountIdT = Aws::String>
99 ListComponentsRequest& WithAccountId(AccountIdT&& value) {
100 SetAccountId(std::forward<AccountIdT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_resourceGroupName;
106
107 int m_maxResults{0};
108
109 Aws::String m_nextToken;
110
111 Aws::String m_accountId;
112 bool m_resourceGroupNameHasBeenSet = false;
113 bool m_maxResultsHasBeenSet = false;
114 bool m_nextTokenHasBeenSet = false;
115 bool m_accountIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace ApplicationInsights
120} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
ListComponentsRequest & WithAccountId(AccountIdT &&value)
AWS_APPLICATIONINSIGHTS_API ListComponentsRequest()=default
ListComponentsRequest & WithNextToken(NextTokenT &&value)
ListComponentsRequest & WithResourceGroupName(ResourceGroupNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String