This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-waf/source/model/GetSampledRequestsRequest.cpp

66 lines
1.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf/model/GetSampledRequestsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAF::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetSampledRequestsRequest::GetSampledRequestsRequest() :
m_webAclIdHasBeenSet(false),
m_ruleIdHasBeenSet(false),
m_timeWindowHasBeenSet(false),
m_maxItems(0),
m_maxItemsHasBeenSet(false)
{
}
Aws::String GetSampledRequestsRequest::SerializePayload() const
{
JsonValue payload;
if(m_webAclIdHasBeenSet)
{
payload.WithString("WebAclId", m_webAclId);
}
if(m_ruleIdHasBeenSet)
{
payload.WithString("RuleId", m_ruleId);
}
if(m_timeWindowHasBeenSet)
{
payload.WithObject("TimeWindow", m_timeWindow.Jsonize());
}
if(m_maxItemsHasBeenSet)
{
payload.WithInt64("MaxItems", m_maxItems);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetSampledRequestsRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_20150824.GetSampledRequests"));
return headers;
}