1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/backup/model/ListRecoveryPointsByBackupVaultRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8 #include <aws/core/http/URI.h>
9 #include <aws/core/utils/memory/stl/AWSStringStream.h>
10 
11 #include <utility>
12 
13 using namespace Aws::Backup::Model;
14 using namespace Aws::Utils::Json;
15 using namespace Aws::Utils;
16 using namespace Aws::Http;
17 
ListRecoveryPointsByBackupVaultRequest()18 ListRecoveryPointsByBackupVaultRequest::ListRecoveryPointsByBackupVaultRequest() :
19     m_backupVaultNameHasBeenSet(false),
20     m_nextTokenHasBeenSet(false),
21     m_maxResults(0),
22     m_maxResultsHasBeenSet(false),
23     m_byResourceArnHasBeenSet(false),
24     m_byResourceTypeHasBeenSet(false),
25     m_byBackupPlanIdHasBeenSet(false),
26     m_byCreatedBeforeHasBeenSet(false),
27     m_byCreatedAfterHasBeenSet(false)
28 {
29 }
30 
SerializePayload() const31 Aws::String ListRecoveryPointsByBackupVaultRequest::SerializePayload() const
32 {
33   return {};
34 }
35 
AddQueryStringParameters(URI & uri) const36 void ListRecoveryPointsByBackupVaultRequest::AddQueryStringParameters(URI& uri) const
37 {
38     Aws::StringStream ss;
39     if(m_nextTokenHasBeenSet)
40     {
41       ss << m_nextToken;
42       uri.AddQueryStringParameter("nextToken", ss.str());
43       ss.str("");
44     }
45 
46     if(m_maxResultsHasBeenSet)
47     {
48       ss << m_maxResults;
49       uri.AddQueryStringParameter("maxResults", ss.str());
50       ss.str("");
51     }
52 
53     if(m_byResourceArnHasBeenSet)
54     {
55       ss << m_byResourceArn;
56       uri.AddQueryStringParameter("resourceArn", ss.str());
57       ss.str("");
58     }
59 
60     if(m_byResourceTypeHasBeenSet)
61     {
62       ss << m_byResourceType;
63       uri.AddQueryStringParameter("resourceType", ss.str());
64       ss.str("");
65     }
66 
67     if(m_byBackupPlanIdHasBeenSet)
68     {
69       ss << m_byBackupPlanId;
70       uri.AddQueryStringParameter("backupPlanId", ss.str());
71       ss.str("");
72     }
73 
74     if(m_byCreatedBeforeHasBeenSet)
75     {
76       ss << m_byCreatedBefore.ToGmtString(DateFormat::ISO_8601);
77       uri.AddQueryStringParameter("createdBefore", ss.str());
78       ss.str("");
79     }
80 
81     if(m_byCreatedAfterHasBeenSet)
82     {
83       ss << m_byCreatedAfter.ToGmtString(DateFormat::ISO_8601);
84       uri.AddQueryStringParameter("createdAfter", ss.str());
85       ss.str("");
86     }
87 
88 }
89 
90 
91 
92