1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/wafv2/model/ListRuleGroupsRequest.h> 7 #include <aws/core/utils/json/JsonSerializer.h> 8 9 #include <utility> 10 11 using namespace Aws::WAFV2::Model; 12 using namespace Aws::Utils::Json; 13 using namespace Aws::Utils; 14 ListRuleGroupsRequest()15ListRuleGroupsRequest::ListRuleGroupsRequest() : 16 m_scope(Scope::NOT_SET), 17 m_scopeHasBeenSet(false), 18 m_nextMarkerHasBeenSet(false), 19 m_limit(0), 20 m_limitHasBeenSet(false) 21 { 22 } 23 SerializePayload() const24Aws::String ListRuleGroupsRequest::SerializePayload() const 25 { 26 JsonValue payload; 27 28 if(m_scopeHasBeenSet) 29 { 30 payload.WithString("Scope", ScopeMapper::GetNameForScope(m_scope)); 31 } 32 33 if(m_nextMarkerHasBeenSet) 34 { 35 payload.WithString("NextMarker", m_nextMarker); 36 37 } 38 39 if(m_limitHasBeenSet) 40 { 41 payload.WithInteger("Limit", m_limit); 42 43 } 44 45 return payload.View().WriteReadable(); 46 } 47 GetRequestSpecificHeaders() const48Aws::Http::HeaderValueCollection ListRuleGroupsRequest::GetRequestSpecificHeaders() const 49 { 50 Aws::Http::HeaderValueCollection headers; 51 headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_20190729.ListRuleGroups")); 52 return headers; 53 54 } 55 56 57 58 59