44 lines
852 B
C++
44 lines
852 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/waf/model/GetIPSetRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::WAF::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
GetIPSetRequest::GetIPSetRequest() :
|
|
m_iPSetIdHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String GetIPSetRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_iPSetIdHasBeenSet)
|
|
{
|
|
payload.WithString("IPSetId", m_iPSetId);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection GetIPSetRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_20150824.GetIPSet"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|