public static interface HTTPRequest.Builder extends SdkPojo, CopyableBuilder<HTTPRequest.Builder,HTTPRequest>
| Modifier and Type | Method and Description |
|---|---|
HTTPRequest.Builder |
clientIP(String clientIP)
The IP address that the request originated from.
|
HTTPRequest.Builder |
country(String country)
The two-letter country code for the country that the request originated from.
|
HTTPRequest.Builder |
headers(Collection<HTTPHeader> headers)
A complex type that contains two values for each header in the sampled web request: the name of the header
and the value of the header.
|
HTTPRequest.Builder |
headers(Consumer<HTTPHeader.Builder>... headers)
A complex type that contains two values for each header in the sampled web request: the name of the header
and the value of the header.
|
HTTPRequest.Builder |
headers(HTTPHeader... headers)
A complex type that contains two values for each header in the sampled web request: the name of the header
and the value of the header.
|
HTTPRequest.Builder |
httpVersion(String httpVersion)
The HTTP version specified in the sampled web request, for example,
HTTP/1.1. |
HTTPRequest.Builder |
method(String method)
The HTTP method specified in the sampled web request.
|
HTTPRequest.Builder |
uri(String uri)
The part of a web request that identifies the resource, for example,
/images/daily-ad.jpg. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHTTPRequest.Builder clientIP(String clientIP)
The IP address that the request originated from. If the WebACL is associated with a CloudFront
distribution, this is the value of one of the following fields in CloudFront access logs:
c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the request
x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
clientIP - The IP address that the request originated from. If the WebACL is associated with a
CloudFront distribution, this is the value of one of the following fields in CloudFront access
logs:
c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the request
x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the
request
HTTPRequest.Builder country(String country)
The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry ISO 3166-1 alpha-2.
country - The two-letter country code for the country that the request originated from. For a current list of
country codes, see the Wikipedia entry ISO
3166-1 alpha-2.HTTPRequest.Builder uri(String uri)
The part of a web request that identifies the resource, for example, /images/daily-ad.jpg.
uri - The part of a web request that identifies the resource, for example, /images/daily-ad.jpg
.HTTPRequest.Builder method(String method)
The HTTP method specified in the sampled web request. CloudFront supports the following methods:
DELETE, GET, HEAD, OPTIONS, PATCH,
POST, and PUT.
method - The HTTP method specified in the sampled web request. CloudFront supports the following methods:
DELETE, GET, HEAD, OPTIONS, PATCH,
POST, and PUT.HTTPRequest.Builder httpVersion(String httpVersion)
The HTTP version specified in the sampled web request, for example, HTTP/1.1.
httpVersion - The HTTP version specified in the sampled web request, for example, HTTP/1.1.HTTPRequest.Builder headers(Collection<HTTPHeader> headers)
A complex type that contains two values for each header in the sampled web request: the name of the header and the value of the header.
headers - A complex type that contains two values for each header in the sampled web request: the name of the
header and the value of the header.HTTPRequest.Builder headers(HTTPHeader... headers)
A complex type that contains two values for each header in the sampled web request: the name of the header and the value of the header.
headers - A complex type that contains two values for each header in the sampled web request: the name of the
header and the value of the header.HTTPRequest.Builder headers(Consumer<HTTPHeader.Builder>... headers)
A complex type that contains two values for each header in the sampled web request: the name of the header and the value of the header.
This is a convenience method that creates an instance of theHTTPHeader.Builder avoiding the need to create one manually
via HTTPHeader.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #headers(List.
headers - a consumer that will call methods on
HTTPHeader.Builder#headers(java.util.Collection) Copyright © 2023. All rights reserved.