1 /**
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0.
4 */
5
6 #include <aws/frauddetector/model/DescribeModelVersionsRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8
9 #include <utility>
10
11 using namespace Aws::FraudDetector::Model;
12 using namespace Aws::Utils::Json;
13 using namespace Aws::Utils;
14
DescribeModelVersionsRequest()15 DescribeModelVersionsRequest::DescribeModelVersionsRequest() :
16 m_modelIdHasBeenSet(false),
17 m_modelVersionNumberHasBeenSet(false),
18 m_modelType(ModelTypeEnum::NOT_SET),
19 m_modelTypeHasBeenSet(false),
20 m_nextTokenHasBeenSet(false),
21 m_maxResults(0),
22 m_maxResultsHasBeenSet(false)
23 {
24 }
25
SerializePayload() const26 Aws::String DescribeModelVersionsRequest::SerializePayload() const
27 {
28 JsonValue payload;
29
30 if(m_modelIdHasBeenSet)
31 {
32 payload.WithString("modelId", m_modelId);
33
34 }
35
36 if(m_modelVersionNumberHasBeenSet)
37 {
38 payload.WithString("modelVersionNumber", m_modelVersionNumber);
39
40 }
41
42 if(m_modelTypeHasBeenSet)
43 {
44 payload.WithString("modelType", ModelTypeEnumMapper::GetNameForModelTypeEnum(m_modelType));
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 DescribeModelVersionsRequest::GetRequestSpecificHeaders() const
63 {
64 Aws::Http::HeaderValueCollection headers;
65 headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSHawksNestServiceFacade.DescribeModelVersions"));
66 return headers;
67
68 }
69
70
71
72
73