AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
46 inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
49 inline SearchOrganizationInsightsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
50 inline SearchOrganizationInsightsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
51 inline SearchOrganizationInsightsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
53
55
56 inline const StartTimeRange& GetStartTimeRange() const{ return m_startTimeRange; }
57 inline bool StartTimeRangeHasBeenSet() const { return m_startTimeRangeHasBeenSet; }
58 inline void SetStartTimeRange(const StartTimeRange& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = value; }
59 inline void SetStartTimeRange(StartTimeRange&& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = std::move(value); }
61 inline SearchOrganizationInsightsRequest& WithStartTimeRange(StartTimeRange&& value) { SetStartTimeRange(std::move(value)); return *this;}
63
65
69 inline const SearchOrganizationInsightsFilters& GetFilters() const{ return m_filters; }
70 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
71 inline void SetFilters(const SearchOrganizationInsightsFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
72 inline void SetFilters(SearchOrganizationInsightsFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
76
78
83 inline int GetMaxResults() const{ return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
86 inline SearchOrganizationInsightsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
88
90
94 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
97 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
98 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
99 inline SearchOrganizationInsightsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
100 inline SearchOrganizationInsightsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
101 inline SearchOrganizationInsightsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
103
105
109 inline const InsightType& GetType() const{ return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(const InsightType& value) { m_typeHasBeenSet = true; m_type = value; }
112 inline void SetType(InsightType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
113 inline SearchOrganizationInsightsRequest& WithType(const InsightType& value) { SetType(value); return *this;}
114 inline SearchOrganizationInsightsRequest& WithType(InsightType&& value) { SetType(std::move(value)); return *this;}
116 private:
117
118 Aws::Vector<Aws::String> m_accountIds;
119 bool m_accountIdsHasBeenSet = false;
120
121 StartTimeRange m_startTimeRange;
122 bool m_startTimeRangeHasBeenSet = false;
123
125 bool m_filtersHasBeenSet = false;
126
127 int m_maxResults;
128 bool m_maxResultsHasBeenSet = false;
129
130 Aws::String m_nextToken;
131 bool m_nextTokenHasBeenSet = false;
132
133 InsightType m_type;
134 bool m_typeHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace DevOpsGuru
139} // namespace Aws
AWS_DEVOPSGURU_API Aws::String SerializePayload() const override
SearchOrganizationInsightsRequest & WithFilters(const SearchOrganizationInsightsFilters &value)
SearchOrganizationInsightsRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
SearchOrganizationInsightsRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
SearchOrganizationInsightsRequest & AddAccountIds(const Aws::String &value)
SearchOrganizationInsightsRequest & WithType(InsightType &&value)
SearchOrganizationInsightsRequest & AddAccountIds(Aws::String &&value)
SearchOrganizationInsightsRequest & WithNextToken(Aws::String &&value)
SearchOrganizationInsightsRequest & AddAccountIds(const char *value)
SearchOrganizationInsightsRequest & WithFilters(SearchOrganizationInsightsFilters &&value)
SearchOrganizationInsightsRequest & WithNextToken(const Aws::String &value)
SearchOrganizationInsightsRequest & WithNextToken(const char *value)
void SetFilters(const SearchOrganizationInsightsFilters &value)
SearchOrganizationInsightsRequest & WithStartTimeRange(const StartTimeRange &value)
SearchOrganizationInsightsRequest & WithType(const InsightType &value)
SearchOrganizationInsightsRequest & WithStartTimeRange(StartTimeRange &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector