1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/glue/model/GetTriggersRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8 
9 #include <utility>
10 
11 using namespace Aws::Glue::Model;
12 using namespace Aws::Utils::Json;
13 using namespace Aws::Utils;
14 
GetTriggersRequest()15 GetTriggersRequest::GetTriggersRequest() :
16     m_nextTokenHasBeenSet(false),
17     m_dependentJobNameHasBeenSet(false),
18     m_maxResults(0),
19     m_maxResultsHasBeenSet(false)
20 {
21 }
22 
SerializePayload() const23 Aws::String GetTriggersRequest::SerializePayload() const
24 {
25   JsonValue payload;
26 
27   if(m_nextTokenHasBeenSet)
28   {
29    payload.WithString("NextToken", m_nextToken);
30 
31   }
32 
33   if(m_dependentJobNameHasBeenSet)
34   {
35    payload.WithString("DependentJobName", m_dependentJobName);
36 
37   }
38 
39   if(m_maxResultsHasBeenSet)
40   {
41    payload.WithInteger("MaxResults", m_maxResults);
42 
43   }
44 
45   return payload.View().WriteReadable();
46 }
47 
GetRequestSpecificHeaders() const48 Aws::Http::HeaderValueCollection GetTriggersRequest::GetRequestSpecificHeaders() const
49 {
50   Aws::Http::HeaderValueCollection headers;
51   headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSGlue.GetTriggers"));
52   return headers;
53 
54 }
55 
56 
57 
58 
59