AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListProblemsRequest.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/ApplicationInsightsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/application-insights/model/Visibility.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ApplicationInsights
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_APPLICATIONINSIGHTS_API ListProblemsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListProblems"; }
33
34 AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override;
35
36 AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetAccountId() const { return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 template<typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
47 template<typename AccountIdT = Aws::String>
48 ListProblemsRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
56 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
57 template<typename ResourceGroupNameT = Aws::String>
58 void SetResourceGroupName(ResourceGroupNameT&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::forward<ResourceGroupNameT>(value); }
59 template<typename ResourceGroupNameT = Aws::String>
60 ListProblemsRequest& WithResourceGroupName(ResourceGroupNameT&& value) { SetResourceGroupName(std::forward<ResourceGroupNameT>(value)); return *this;}
62
64
69 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
70 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
71 template<typename StartTimeT = Aws::Utils::DateTime>
72 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
73 template<typename StartTimeT = Aws::Utils::DateTime>
74 ListProblemsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
76
78
82 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
83 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
84 template<typename EndTimeT = Aws::Utils::DateTime>
85 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
86 template<typename EndTimeT = Aws::Utils::DateTime>
87 ListProblemsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
89
91
96 inline int GetMaxResults() const { return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
99 inline ListProblemsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
101
103
106 inline const Aws::String& GetNextToken() const { return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 template<typename NextTokenT = Aws::String>
109 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
110 template<typename NextTokenT = Aws::String>
111 ListProblemsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
113
115
118 inline const Aws::String& GetComponentName() const { return m_componentName; }
119 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
120 template<typename ComponentNameT = Aws::String>
121 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
122 template<typename ComponentNameT = Aws::String>
123 ListProblemsRequest& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
125
127
131 inline Visibility GetVisibility() const { return m_visibility; }
132 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
133 inline void SetVisibility(Visibility value) { m_visibilityHasBeenSet = true; m_visibility = value; }
134 inline ListProblemsRequest& WithVisibility(Visibility value) { SetVisibility(value); return *this;}
136 private:
137
138 Aws::String m_accountId;
139 bool m_accountIdHasBeenSet = false;
140
141 Aws::String m_resourceGroupName;
142 bool m_resourceGroupNameHasBeenSet = false;
143
144 Aws::Utils::DateTime m_startTime{};
145 bool m_startTimeHasBeenSet = false;
146
147 Aws::Utils::DateTime m_endTime{};
148 bool m_endTimeHasBeenSet = false;
149
150 int m_maxResults{0};
151 bool m_maxResultsHasBeenSet = false;
152
153 Aws::String m_nextToken;
154 bool m_nextTokenHasBeenSet = false;
155
156 Aws::String m_componentName;
157 bool m_componentNameHasBeenSet = false;
158
159 Visibility m_visibility{Visibility::NOT_SET};
160 bool m_visibilityHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace ApplicationInsights
165} // namespace Aws
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListProblemsRequest & WithComponentName(ComponentNameT &&value)
ListProblemsRequest & WithVisibility(Visibility value)
ListProblemsRequest & WithStartTime(StartTimeT &&value)
ListProblemsRequest & WithResourceGroupName(ResourceGroupNameT &&value)
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
ListProblemsRequest & WithEndTime(EndTimeT &&value)
ListProblemsRequest & WithAccountId(AccountIdT &&value)
ListProblemsRequest & WithNextToken(NextTokenT &&value)
AWS_APPLICATIONINSIGHTS_API ListProblemsRequest()=default
const Aws::Utils::DateTime & GetStartTime() const
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String