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/GetUserDefinedFunctionsRequest.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 
GetUserDefinedFunctionsRequest()15 GetUserDefinedFunctionsRequest::GetUserDefinedFunctionsRequest() :
16     m_catalogIdHasBeenSet(false),
17     m_databaseNameHasBeenSet(false),
18     m_patternHasBeenSet(false),
19     m_nextTokenHasBeenSet(false),
20     m_maxResults(0),
21     m_maxResultsHasBeenSet(false)
22 {
23 }
24 
SerializePayload() const25 Aws::String GetUserDefinedFunctionsRequest::SerializePayload() const
26 {
27   JsonValue payload;
28 
29   if(m_catalogIdHasBeenSet)
30   {
31    payload.WithString("CatalogId", m_catalogId);
32 
33   }
34 
35   if(m_databaseNameHasBeenSet)
36   {
37    payload.WithString("DatabaseName", m_databaseName);
38 
39   }
40 
41   if(m_patternHasBeenSet)
42   {
43    payload.WithString("Pattern", m_pattern);
44 
45   }
46 
47   if(m_nextTokenHasBeenSet)
48   {
49    payload.WithString("NextToken", m_nextToken);
50 
51   }
52 
53   if(m_maxResultsHasBeenSet)
54   {
55    payload.WithInteger("MaxResults", m_maxResults);
56 
57   }
58 
59   return payload.View().WriteReadable();
60 }
61 
GetRequestSpecificHeaders() const62 Aws::Http::HeaderValueCollection GetUserDefinedFunctionsRequest::GetRequestSpecificHeaders() const
63 {
64   Aws::Http::HeaderValueCollection headers;
65   headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSGlue.GetUserDefinedFunctions"));
66   return headers;
67 
68 }
69 
70 
71 
72 
73