Interface AwsApiGatewayRestApiDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsApiGatewayRestApiDetails.Builder,AwsApiGatewayRestApiDetails>,SdkBuilder<AwsApiGatewayRestApiDetails.Builder,AwsApiGatewayRestApiDetails>,SdkPojo
- Enclosing class:
- AwsApiGatewayRestApiDetails
public static interface AwsApiGatewayRestApiDetails.Builder extends SdkPojo, CopyableBuilder<AwsApiGatewayRestApiDetails.Builder,AwsApiGatewayRestApiDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsApiGatewayRestApiDetails.BuilderapiKeySource(String apiKeySource)The source of the API key for metering requests according to a usage plan.AwsApiGatewayRestApiDetails.BuilderbinaryMediaTypes(String... binaryMediaTypes)The list of binary media types supported by the REST API.AwsApiGatewayRestApiDetails.BuilderbinaryMediaTypes(Collection<String> binaryMediaTypes)The list of binary media types supported by the REST API.AwsApiGatewayRestApiDetails.BuildercreatedDate(String createdDate)Indicates when the API was created.AwsApiGatewayRestApiDetails.Builderdescription(String description)A description of the REST API.default AwsApiGatewayRestApiDetails.BuilderendpointConfiguration(Consumer<AwsApiGatewayEndpointConfiguration.Builder> endpointConfiguration)The endpoint configuration of the REST API.AwsApiGatewayRestApiDetails.BuilderendpointConfiguration(AwsApiGatewayEndpointConfiguration endpointConfiguration)The endpoint configuration of the REST API.AwsApiGatewayRestApiDetails.Builderid(String id)The identifier of the REST API.AwsApiGatewayRestApiDetails.BuilderminimumCompressionSize(Integer minimumCompressionSize)The minimum size in bytes of a payload before compression is enabled.AwsApiGatewayRestApiDetails.Buildername(String name)The name of the REST API.AwsApiGatewayRestApiDetails.Builderversion(String version)The version identifier for the REST API.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
id
AwsApiGatewayRestApiDetails.Builder id(String id)
The identifier of the REST API.
- Parameters:
id- The identifier of the REST API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
AwsApiGatewayRestApiDetails.Builder name(String name)
The name of the REST API.
- Parameters:
name- The name of the REST API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
AwsApiGatewayRestApiDetails.Builder description(String description)
A description of the REST API.
- Parameters:
description- A description of the REST API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdDate
AwsApiGatewayRestApiDetails.Builder createdDate(String createdDate)
Indicates when the API was created.
This field accepts only the specified formats. Timestamps can end with
Zor("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
- Parameters:
createdDate- Indicates when the API was created.This field accepts only the specified formats. Timestamps can end with
Zor("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
version
AwsApiGatewayRestApiDetails.Builder version(String version)
The version identifier for the REST API.
- Parameters:
version- The version identifier for the REST API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
binaryMediaTypes
AwsApiGatewayRestApiDetails.Builder binaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the REST API.
- Parameters:
binaryMediaTypes- The list of binary media types supported by the REST API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
binaryMediaTypes
AwsApiGatewayRestApiDetails.Builder binaryMediaTypes(String... binaryMediaTypes)
The list of binary media types supported by the REST API.
- Parameters:
binaryMediaTypes- The list of binary media types supported by the REST API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minimumCompressionSize
AwsApiGatewayRestApiDetails.Builder minimumCompressionSize(Integer minimumCompressionSize)
The minimum size in bytes of a payload before compression is enabled.
If
null, then compression is disabled.If 0, then all payloads are compressed.
- Parameters:
minimumCompressionSize- The minimum size in bytes of a payload before compression is enabled.If
null, then compression is disabled.If 0, then all payloads are compressed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiKeySource
AwsApiGatewayRestApiDetails.Builder apiKeySource(String apiKeySource)
The source of the API key for metering requests according to a usage plan.
HEADERindicates whether to read the API key from the X-API-Key header of a request.AUTHORIZERindicates whether to read the API key from theUsageIdentifierKeyfrom a custom authorizer.- Parameters:
apiKeySource- The source of the API key for metering requests according to a usage plan.HEADERindicates whether to read the API key from the X-API-Key header of a request.AUTHORIZERindicates whether to read the API key from theUsageIdentifierKeyfrom a custom authorizer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpointConfiguration
AwsApiGatewayRestApiDetails.Builder endpointConfiguration(AwsApiGatewayEndpointConfiguration endpointConfiguration)
The endpoint configuration of the REST API.
- Parameters:
endpointConfiguration- The endpoint configuration of the REST API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpointConfiguration
default AwsApiGatewayRestApiDetails.Builder endpointConfiguration(Consumer<AwsApiGatewayEndpointConfiguration.Builder> endpointConfiguration)
The endpoint configuration of the REST API.
This is a convenience method that creates an instance of theAwsApiGatewayEndpointConfiguration.Builderavoiding the need to create one manually viaAwsApiGatewayEndpointConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toendpointConfiguration(AwsApiGatewayEndpointConfiguration).- Parameters:
endpointConfiguration- a consumer that will call methods onAwsApiGatewayEndpointConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
endpointConfiguration(AwsApiGatewayEndpointConfiguration)
-
-