Interface CreateFunctionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudFrontRequest.Builder,CopyableBuilder<CreateFunctionRequest.Builder,,CreateFunctionRequest> SdkBuilder<CreateFunctionRequest.Builder,,CreateFunctionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateFunctionRequest
public static interface CreateFunctionRequest.Builder
extends CloudFrontRequest.Builder, SdkPojo, CopyableBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>
-
Method Summary
Modifier and TypeMethodDescriptionfunctionCode(SdkBytes functionCode) The function code.default CreateFunctionRequest.BuilderfunctionConfig(Consumer<FunctionConfig.Builder> functionConfig) Configuration information about the function, including an optional comment and the function's runtime.functionConfig(FunctionConfig functionConfig) Configuration information about the function, including an optional comment and the function's runtime.A name to identify the function.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
A name to identify the function.
- Parameters:
name- A name to identify the function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
functionConfig
Configuration information about the function, including an optional comment and the function's runtime.
- Parameters:
functionConfig- Configuration information about the function, including an optional comment and the function's runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
functionConfig
default CreateFunctionRequest.Builder functionConfig(Consumer<FunctionConfig.Builder> functionConfig) Configuration information about the function, including an optional comment and the function's runtime.
This is a convenience method that creates an instance of theFunctionConfig.Builderavoiding the need to create one manually viaFunctionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofunctionConfig(FunctionConfig).- Parameters:
functionConfig- a consumer that will call methods onFunctionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
functionCode
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
- Parameters:
functionCode- The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateFunctionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateFunctionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-