1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/xray/XRay_EXPORTS.h>
8 #include <aws/xray/XRayRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace XRay
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_XRAY_API GetInsightEventsRequest : public XRayRequest
22   {
23   public:
24     GetInsightEventsRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "GetInsightEvents"; }
31 
32     Aws::String SerializePayload() const override;
33 
34 
35     /**
36      * <p>The insight's unique identifier. Use the GetInsightSummaries action to
37      * retrieve an InsightId.</p>
38      */
GetInsightId()39     inline const Aws::String& GetInsightId() const{ return m_insightId; }
40 
41     /**
42      * <p>The insight's unique identifier. Use the GetInsightSummaries action to
43      * retrieve an InsightId.</p>
44      */
InsightIdHasBeenSet()45     inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
46 
47     /**
48      * <p>The insight's unique identifier. Use the GetInsightSummaries action to
49      * retrieve an InsightId.</p>
50      */
SetInsightId(const Aws::String & value)51     inline void SetInsightId(const Aws::String& value) { m_insightIdHasBeenSet = true; m_insightId = value; }
52 
53     /**
54      * <p>The insight's unique identifier. Use the GetInsightSummaries action to
55      * retrieve an InsightId.</p>
56      */
SetInsightId(Aws::String && value)57     inline void SetInsightId(Aws::String&& value) { m_insightIdHasBeenSet = true; m_insightId = std::move(value); }
58 
59     /**
60      * <p>The insight's unique identifier. Use the GetInsightSummaries action to
61      * retrieve an InsightId.</p>
62      */
SetInsightId(const char * value)63     inline void SetInsightId(const char* value) { m_insightIdHasBeenSet = true; m_insightId.assign(value); }
64 
65     /**
66      * <p>The insight's unique identifier. Use the GetInsightSummaries action to
67      * retrieve an InsightId.</p>
68      */
WithInsightId(const Aws::String & value)69     inline GetInsightEventsRequest& WithInsightId(const Aws::String& value) { SetInsightId(value); return *this;}
70 
71     /**
72      * <p>The insight's unique identifier. Use the GetInsightSummaries action to
73      * retrieve an InsightId.</p>
74      */
WithInsightId(Aws::String && value)75     inline GetInsightEventsRequest& WithInsightId(Aws::String&& value) { SetInsightId(std::move(value)); return *this;}
76 
77     /**
78      * <p>The insight's unique identifier. Use the GetInsightSummaries action to
79      * retrieve an InsightId.</p>
80      */
WithInsightId(const char * value)81     inline GetInsightEventsRequest& WithInsightId(const char* value) { SetInsightId(value); return *this;}
82 
83 
84     /**
85      * <p>Used to retrieve at most the specified value of events.</p>
86      */
GetMaxResults()87     inline int GetMaxResults() const{ return m_maxResults; }
88 
89     /**
90      * <p>Used to retrieve at most the specified value of events.</p>
91      */
MaxResultsHasBeenSet()92     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 
94     /**
95      * <p>Used to retrieve at most the specified value of events.</p>
96      */
SetMaxResults(int value)97     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
98 
99     /**
100      * <p>Used to retrieve at most the specified value of events.</p>
101      */
WithMaxResults(int value)102     inline GetInsightEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
103 
104 
105     /**
106      * <p>Specify the pagination token returned by a previous request to retrieve the
107      * next page of events. </p>
108      */
GetNextToken()109     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 
111     /**
112      * <p>Specify the pagination token returned by a previous request to retrieve the
113      * next page of events. </p>
114      */
NextTokenHasBeenSet()115     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
116 
117     /**
118      * <p>Specify the pagination token returned by a previous request to retrieve the
119      * next page of events. </p>
120      */
SetNextToken(const Aws::String & value)121     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
122 
123     /**
124      * <p>Specify the pagination token returned by a previous request to retrieve the
125      * next page of events. </p>
126      */
SetNextToken(Aws::String && value)127     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
128 
129     /**
130      * <p>Specify the pagination token returned by a previous request to retrieve the
131      * next page of events. </p>
132      */
SetNextToken(const char * value)133     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
134 
135     /**
136      * <p>Specify the pagination token returned by a previous request to retrieve the
137      * next page of events. </p>
138      */
WithNextToken(const Aws::String & value)139     inline GetInsightEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
140 
141     /**
142      * <p>Specify the pagination token returned by a previous request to retrieve the
143      * next page of events. </p>
144      */
WithNextToken(Aws::String && value)145     inline GetInsightEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
146 
147     /**
148      * <p>Specify the pagination token returned by a previous request to retrieve the
149      * next page of events. </p>
150      */
WithNextToken(const char * value)151     inline GetInsightEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
152 
153   private:
154 
155     Aws::String m_insightId;
156     bool m_insightIdHasBeenSet;
157 
158     int m_maxResults;
159     bool m_maxResultsHasBeenSet;
160 
161     Aws::String m_nextToken;
162     bool m_nextTokenHasBeenSet;
163   };
164 
165 } // namespace Model
166 } // namespace XRay
167 } // namespace Aws
168