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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateFunctionRequest.Builder
functionCode(SdkBytes functionCode)
The function code.default CreateFunctionRequest.Builder
functionConfig(Consumer<FunctionConfig.Builder> functionConfig)
Configuration information about the function, including an optional comment and the function's runtime.CreateFunctionRequest.Builder
functionConfig(FunctionConfig functionConfig)
Configuration information about the function, including an optional comment and the function's runtime.CreateFunctionRequest.Builder
name(String name)
A name to identify the function.CreateFunctionRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateFunctionRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontRequest.Builder
build
-
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
-
name
CreateFunctionRequest.Builder name(String 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
CreateFunctionRequest.Builder functionConfig(FunctionConfig 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.Builder
avoiding the need to create one manually viaFunctionConfig.builder()
.When the
Consumer
completes,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:
functionConfig(FunctionConfig)
-
functionCode
CreateFunctionRequest.Builder functionCode(SdkBytes 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateFunctionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-