AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchOrganizationInsightsRequest.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/devops-guru/DevOpsGuruRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/devops-guru/model/StartTimeRange.h>
11#include <aws/devops-guru/model/SearchOrganizationInsightsFilters.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/devops-guru/model/InsightType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DevOpsGuru
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DEVOPSGURU_API SearchOrganizationInsightsRequest() = 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 "SearchOrganizationInsights"; }
35
36 AWS_DEVOPSGURU_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
44 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
45 template<typename AccountIdsT = Aws::Vector<Aws::String>>
46 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
47 template<typename AccountIdsT = Aws::Vector<Aws::String>>
48 SearchOrganizationInsightsRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
49 template<typename AccountIdsT = Aws::String>
50 SearchOrganizationInsightsRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
52
54
55 inline const StartTimeRange& GetStartTimeRange() const { return m_startTimeRange; }
56 inline bool StartTimeRangeHasBeenSet() const { return m_startTimeRangeHasBeenSet; }
57 template<typename StartTimeRangeT = StartTimeRange>
58 void SetStartTimeRange(StartTimeRangeT&& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = std::forward<StartTimeRangeT>(value); }
59 template<typename StartTimeRangeT = StartTimeRange>
60 SearchOrganizationInsightsRequest& WithStartTimeRange(StartTimeRangeT&& value) { SetStartTimeRange(std::forward<StartTimeRangeT>(value)); return *this;}
62
64
68 inline const SearchOrganizationInsightsFilters& GetFilters() const { return m_filters; }
69 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
70 template<typename FiltersT = SearchOrganizationInsightsFilters>
71 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
72 template<typename FiltersT = SearchOrganizationInsightsFilters>
73 SearchOrganizationInsightsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
75
77
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
85 inline SearchOrganizationInsightsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
87
89
93 inline const Aws::String& GetNextToken() const { return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 template<typename NextTokenT = Aws::String>
96 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
97 template<typename NextTokenT = Aws::String>
98 SearchOrganizationInsightsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
100
102
106 inline InsightType GetType() const { return m_type; }
107 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
108 inline void SetType(InsightType value) { m_typeHasBeenSet = true; m_type = value; }
109 inline SearchOrganizationInsightsRequest& WithType(InsightType value) { SetType(value); return *this;}
111 private:
112
113 Aws::Vector<Aws::String> m_accountIds;
114 bool m_accountIdsHasBeenSet = false;
115
116 StartTimeRange m_startTimeRange;
117 bool m_startTimeRangeHasBeenSet = false;
118
120 bool m_filtersHasBeenSet = false;
121
122 int m_maxResults{0};
123 bool m_maxResultsHasBeenSet = false;
124
125 Aws::String m_nextToken;
126 bool m_nextTokenHasBeenSet = false;
127
129 bool m_typeHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace DevOpsGuru
134} // namespace Aws
AWS_DEVOPSGURU_API Aws::String SerializePayload() const override
SearchOrganizationInsightsRequest & WithFilters(FiltersT &&value)
SearchOrganizationInsightsRequest & AddAccountIds(AccountIdsT &&value)
SearchOrganizationInsightsRequest & WithNextToken(NextTokenT &&value)
SearchOrganizationInsightsRequest & WithType(InsightType value)
SearchOrganizationInsightsRequest & WithStartTimeRange(StartTimeRangeT &&value)
SearchOrganizationInsightsRequest & WithAccountIds(AccountIdsT &&value)
AWS_DEVOPSGURU_API SearchOrganizationInsightsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector