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/DateTime.h>
10 #include <aws/core/utils/memory/stl/AWSString.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace XRay
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_XRAY_API GetServiceGraphRequest : public XRayRequest
23   {
24   public:
25     GetServiceGraphRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "GetServiceGraph"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * <p>The start of the time frame for which to generate a graph.</p>
38      */
GetStartTime()39     inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
40 
41     /**
42      * <p>The start of the time frame for which to generate a graph.</p>
43      */
StartTimeHasBeenSet()44     inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
45 
46     /**
47      * <p>The start of the time frame for which to generate a graph.</p>
48      */
SetStartTime(const Aws::Utils::DateTime & value)49     inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
50 
51     /**
52      * <p>The start of the time frame for which to generate a graph.</p>
53      */
SetStartTime(Aws::Utils::DateTime && value)54     inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
55 
56     /**
57      * <p>The start of the time frame for which to generate a graph.</p>
58      */
WithStartTime(const Aws::Utils::DateTime & value)59     inline GetServiceGraphRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
60 
61     /**
62      * <p>The start of the time frame for which to generate a graph.</p>
63      */
WithStartTime(Aws::Utils::DateTime && value)64     inline GetServiceGraphRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
65 
66 
67     /**
68      * <p>The end of the timeframe for which to generate a graph.</p>
69      */
GetEndTime()70     inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
71 
72     /**
73      * <p>The end of the timeframe for which to generate a graph.</p>
74      */
EndTimeHasBeenSet()75     inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
76 
77     /**
78      * <p>The end of the timeframe for which to generate a graph.</p>
79      */
SetEndTime(const Aws::Utils::DateTime & value)80     inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
81 
82     /**
83      * <p>The end of the timeframe for which to generate a graph.</p>
84      */
SetEndTime(Aws::Utils::DateTime && value)85     inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
86 
87     /**
88      * <p>The end of the timeframe for which to generate a graph.</p>
89      */
WithEndTime(const Aws::Utils::DateTime & value)90     inline GetServiceGraphRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
91 
92     /**
93      * <p>The end of the timeframe for which to generate a graph.</p>
94      */
WithEndTime(Aws::Utils::DateTime && value)95     inline GetServiceGraphRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
96 
97 
98     /**
99      * <p>The name of a group based on which you want to generate a graph.</p>
100      */
GetGroupName()101     inline const Aws::String& GetGroupName() const{ return m_groupName; }
102 
103     /**
104      * <p>The name of a group based on which you want to generate a graph.</p>
105      */
GroupNameHasBeenSet()106     inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
107 
108     /**
109      * <p>The name of a group based on which you want to generate a graph.</p>
110      */
SetGroupName(const Aws::String & value)111     inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
112 
113     /**
114      * <p>The name of a group based on which you want to generate a graph.</p>
115      */
SetGroupName(Aws::String && value)116     inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
117 
118     /**
119      * <p>The name of a group based on which you want to generate a graph.</p>
120      */
SetGroupName(const char * value)121     inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
122 
123     /**
124      * <p>The name of a group based on which you want to generate a graph.</p>
125      */
WithGroupName(const Aws::String & value)126     inline GetServiceGraphRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
127 
128     /**
129      * <p>The name of a group based on which you want to generate a graph.</p>
130      */
WithGroupName(Aws::String && value)131     inline GetServiceGraphRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
132 
133     /**
134      * <p>The name of a group based on which you want to generate a graph.</p>
135      */
WithGroupName(const char * value)136     inline GetServiceGraphRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
137 
138 
139     /**
140      * <p>The Amazon Resource Name (ARN) of a group based on which you want to generate
141      * a graph.</p>
142      */
GetGroupARN()143     inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
144 
145     /**
146      * <p>The Amazon Resource Name (ARN) of a group based on which you want to generate
147      * a graph.</p>
148      */
GroupARNHasBeenSet()149     inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
150 
151     /**
152      * <p>The Amazon Resource Name (ARN) of a group based on which you want to generate
153      * a graph.</p>
154      */
SetGroupARN(const Aws::String & value)155     inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
156 
157     /**
158      * <p>The Amazon Resource Name (ARN) of a group based on which you want to generate
159      * a graph.</p>
160      */
SetGroupARN(Aws::String && value)161     inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
162 
163     /**
164      * <p>The Amazon Resource Name (ARN) of a group based on which you want to generate
165      * a graph.</p>
166      */
SetGroupARN(const char * value)167     inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
168 
169     /**
170      * <p>The Amazon Resource Name (ARN) of a group based on which you want to generate
171      * a graph.</p>
172      */
WithGroupARN(const Aws::String & value)173     inline GetServiceGraphRequest& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
174 
175     /**
176      * <p>The Amazon Resource Name (ARN) of a group based on which you want to generate
177      * a graph.</p>
178      */
WithGroupARN(Aws::String && value)179     inline GetServiceGraphRequest& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
180 
181     /**
182      * <p>The Amazon Resource Name (ARN) of a group based on which you want to generate
183      * a graph.</p>
184      */
WithGroupARN(const char * value)185     inline GetServiceGraphRequest& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
186 
187 
188     /**
189      * <p>Pagination token.</p>
190      */
GetNextToken()191     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
192 
193     /**
194      * <p>Pagination token.</p>
195      */
NextTokenHasBeenSet()196     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
197 
198     /**
199      * <p>Pagination token.</p>
200      */
SetNextToken(const Aws::String & value)201     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
202 
203     /**
204      * <p>Pagination token.</p>
205      */
SetNextToken(Aws::String && value)206     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
207 
208     /**
209      * <p>Pagination token.</p>
210      */
SetNextToken(const char * value)211     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
212 
213     /**
214      * <p>Pagination token.</p>
215      */
WithNextToken(const Aws::String & value)216     inline GetServiceGraphRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
217 
218     /**
219      * <p>Pagination token.</p>
220      */
WithNextToken(Aws::String && value)221     inline GetServiceGraphRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
222 
223     /**
224      * <p>Pagination token.</p>
225      */
WithNextToken(const char * value)226     inline GetServiceGraphRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
227 
228   private:
229 
230     Aws::Utils::DateTime m_startTime;
231     bool m_startTimeHasBeenSet;
232 
233     Aws::Utils::DateTime m_endTime;
234     bool m_endTimeHasBeenSet;
235 
236     Aws::String m_groupName;
237     bool m_groupNameHasBeenSet;
238 
239     Aws::String m_groupARN;
240     bool m_groupARNHasBeenSet;
241 
242     Aws::String m_nextToken;
243     bool m_nextTokenHasBeenSet;
244   };
245 
246 } // namespace Model
247 } // namespace XRay
248 } // namespace Aws
249