AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchInsightsRequest.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/devops-guru/DevOpsGuruRequest.h>
9#include <aws/devops-guru/model/StartTimeRange.h>
10#include <aws/devops-guru/model/SearchInsightsFilters.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/devops-guru/model/InsightType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DevOpsGuru
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DEVOPSGURU_API SearchInsightsRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SearchInsights"; }
34
35 AWS_DEVOPSGURU_API Aws::String SerializePayload() const override;
36
37
39
43 inline const StartTimeRange& GetStartTimeRange() const{ return m_startTimeRange; }
44 inline bool StartTimeRangeHasBeenSet() const { return m_startTimeRangeHasBeenSet; }
45 inline void SetStartTimeRange(const StartTimeRange& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = value; }
46 inline void SetStartTimeRange(StartTimeRange&& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = std::move(value); }
47 inline SearchInsightsRequest& WithStartTimeRange(const StartTimeRange& value) { SetStartTimeRange(value); return *this;}
48 inline SearchInsightsRequest& WithStartTimeRange(StartTimeRange&& value) { SetStartTimeRange(std::move(value)); return *this;}
50
52
56 inline const SearchInsightsFilters& GetFilters() const{ return m_filters; }
57 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
58 inline void SetFilters(const SearchInsightsFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
59 inline void SetFilters(SearchInsightsFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
60 inline SearchInsightsRequest& WithFilters(const SearchInsightsFilters& value) { SetFilters(value); return *this;}
61 inline SearchInsightsRequest& WithFilters(SearchInsightsFilters&& value) { SetFilters(std::move(value)); return *this;}
63
65
70 inline int GetMaxResults() const{ return m_maxResults; }
71 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
72 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
73 inline SearchInsightsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
75
77
81 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
84 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
85 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 inline SearchInsightsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
87 inline SearchInsightsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
88 inline SearchInsightsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
90
92
96 inline const InsightType& GetType() const{ return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 inline void SetType(const InsightType& value) { m_typeHasBeenSet = true; m_type = value; }
99 inline void SetType(InsightType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
100 inline SearchInsightsRequest& WithType(const InsightType& value) { SetType(value); return *this;}
101 inline SearchInsightsRequest& WithType(InsightType&& value) { SetType(std::move(value)); return *this;}
103 private:
104
105 StartTimeRange m_startTimeRange;
106 bool m_startTimeRangeHasBeenSet = false;
107
108 SearchInsightsFilters m_filters;
109 bool m_filtersHasBeenSet = false;
110
111 int m_maxResults;
112 bool m_maxResultsHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 InsightType m_type;
118 bool m_typeHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace DevOpsGuru
123} // namespace Aws
SearchInsightsRequest & WithNextToken(const char *value)
SearchInsightsRequest & WithNextToken(const Aws::String &value)
void SetStartTimeRange(const StartTimeRange &value)
void SetFilters(SearchInsightsFilters &&value)
SearchInsightsRequest & WithType(InsightType &&value)
const SearchInsightsFilters & GetFilters() const
SearchInsightsRequest & WithStartTimeRange(StartTimeRange &&value)
SearchInsightsRequest & WithFilters(const SearchInsightsFilters &value)
SearchInsightsRequest & WithNextToken(Aws::String &&value)
SearchInsightsRequest & WithFilters(SearchInsightsFilters &&value)
SearchInsightsRequest & WithType(const InsightType &value)
SearchInsightsRequest & WithStartTimeRange(const StartTimeRange &value)
virtual const char * GetServiceRequestName() const override
void SetFilters(const SearchInsightsFilters &value)
AWS_DEVOPSGURU_API Aws::String SerializePayload() const override
SearchInsightsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String