Class JsonWithStandardFieldProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.JsonWithStandardFieldProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<JsonWithStandardFieldProps>
- Enclosing interface:
JsonWithStandardFieldProps
@Stability(Stable)
public static final class JsonWithStandardFieldProps.Builder
extends Object
implements software.amazon.jsii.Builder<JsonWithStandardFieldProps>
A builder for
JsonWithStandardFieldProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofJsonWithStandardFieldProps.getCaller()httpMethod(Boolean httpMethod) Sets the value ofJsonWithStandardFieldProps.getHttpMethod()Sets the value ofJsonWithStandardFieldProps.getIp()Sets the value ofJsonWithStandardFieldProps.getProtocol()requestTime(Boolean requestTime) Sets the value ofJsonWithStandardFieldProps.getRequestTime()resourcePath(Boolean resourcePath) Sets the value ofJsonWithStandardFieldProps.getResourcePath()responseLength(Boolean responseLength) Sets the value ofJsonWithStandardFieldProps.getResponseLength()Sets the value ofJsonWithStandardFieldProps.getStatus()Sets the value ofJsonWithStandardFieldProps.getUser()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
caller
Sets the value ofJsonWithStandardFieldProps.getCaller()- Parameters:
caller- If this flag is enabled, the principal identifier of the caller will be output to the log. This parameter is required.- Returns:
this
-
httpMethod
Sets the value ofJsonWithStandardFieldProps.getHttpMethod()- Parameters:
httpMethod- If this flag is enabled, the http method will be output to the log. This parameter is required.- Returns:
this
-
ip
Sets the value ofJsonWithStandardFieldProps.getIp()- Parameters:
ip- If this flag is enabled, the source IP of request will be output to the log. This parameter is required.- Returns:
this
-
protocol
Sets the value ofJsonWithStandardFieldProps.getProtocol()- Parameters:
protocol- If this flag is enabled, the request protocol will be output to the log. This parameter is required.- Returns:
this
-
requestTime
Sets the value ofJsonWithStandardFieldProps.getRequestTime()- Parameters:
requestTime- If this flag is enabled, the CLF-formatted request time((dd/MMM/yyyy:HH:mm:ss +-hhmm) will be output to the log. This parameter is required.- Returns:
this
-
resourcePath
Sets the value ofJsonWithStandardFieldProps.getResourcePath()- Parameters:
resourcePath- If this flag is enabled, the path to your resource will be output to the log. This parameter is required.- Returns:
this
-
responseLength
Sets the value ofJsonWithStandardFieldProps.getResponseLength()- Parameters:
responseLength- If this flag is enabled, the response payload length will be output to the log. This parameter is required.- Returns:
this
-
status
Sets the value ofJsonWithStandardFieldProps.getStatus()- Parameters:
status- If this flag is enabled, the method response status will be output to the log. This parameter is required.- Returns:
this
-
user
Sets the value ofJsonWithStandardFieldProps.getUser()- Parameters:
user- If this flag is enabled, the principal identifier of the user will be output to the log. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<JsonWithStandardFieldProps>- Returns:
- a new instance of
JsonWithStandardFieldProps - Throws:
NullPointerException- if any required attribute was not provided
-