Interface PutFunctionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutFunctionRequest.Builder,,PutFunctionRequest> MediaTailorRequest.Builder,SdkBuilder<PutFunctionRequest.Builder,,PutFunctionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutFunctionRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutFunctionRequest.BuilderawsServiceRequestConfiguration(Consumer<AwsServiceRequestConfiguration.Builder> awsServiceRequestConfiguration) The configuration for anAWS_SERVICE_REQUESTfunction.awsServiceRequestConfiguration(AwsServiceRequestConfiguration awsServiceRequestConfiguration) The configuration for anAWS_SERVICE_REQUESTfunction.default PutFunctionRequest.BuilderconcurrentExecutorConfiguration(Consumer<ConcurrentExecutorConfiguration.Builder> concurrentExecutorConfiguration) The configuration for aCONCURRENT_EXECUTORfunction.concurrentExecutorConfiguration(ConcurrentExecutorConfiguration concurrentExecutorConfiguration) The configuration for aCONCURRENT_EXECUTORfunction.default PutFunctionRequest.BuildercustomOutputConfiguration(Consumer<CustomOutputConfiguration.Builder> customOutputConfiguration) The configuration for aCUSTOM_OUTPUTfunction.customOutputConfiguration(CustomOutputConfiguration customOutputConfiguration) The configuration for aCUSTOM_OUTPUTfunction.description(String description) A description of the function.functionId(String functionId) The identifier of the function.functionType(String functionType) The type of the function, which determines what the function can do at runtime.functionType(FunctionType functionType) The type of the function, which determines what the function can do at runtime.default PutFunctionRequest.BuilderhttpRequestConfiguration(Consumer<HttpRequestConfiguration.Builder> httpRequestConfiguration) The configuration for anHTTP_REQUESTfunction.httpRequestConfiguration(HttpRequestConfiguration httpRequestConfiguration) The configuration for anHTTP_REQUESTfunction.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default PutFunctionRequest.BuildersequentialExecutorConfiguration(Consumer<SequentialExecutorConfiguration.Builder> sequentialExecutorConfiguration) The configuration for aSEQUENTIAL_EXECUTORfunction.sequentialExecutorConfiguration(SequentialExecutorConfiguration sequentialExecutorConfiguration) The configuration for aSEQUENTIAL_EXECUTORfunction.The tags to assign to the function.default PutFunctionRequest.BuildervastRequestConfiguration(Consumer<VastRequestConfiguration.Builder> vastRequestConfiguration) The configuration for aVAST_REQUESTfunction.vastRequestConfiguration(VastRequestConfiguration vastRequestConfiguration) The configuration for aVAST_REQUESTfunction.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mediatailor.model.MediaTailorRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
functionId
The identifier of the function. The identifier must be unique within your account.
- Parameters:
functionId- The identifier of the function. The identifier must be unique within your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
functionType
The type of the function, which determines what the function can do at runtime. Valid values:
-
CUSTOM_OUTPUT– Evaluates expressions and produces output bindings with no external calls. -
HTTP_REQUEST– Makes an HTTP call to an external service and evaluates output expressions that can reference the response. -
AWS_SERVICE_REQUEST– Makes an authenticated request to a supported AWS service API and evaluates output expressions that can reference the response. -
VAST_REQUEST– Calls a VAST endpoint, parses the response as VAST, and makes the parsed ads available to output expressions. -
SEQUENTIAL_EXECUTOR– Runs a sequence of child functions in order, passing data between steps through temporary data. -
CONCURRENT_EXECUTOR– Runs a set of child functions in parallel, up to a maximum concurrency, and combines their output when all functions complete.
For more information, see Function types and composition in the MediaTailor User Guide.
- Parameters:
functionType- The type of the function, which determines what the function can do at runtime. Valid values:-
CUSTOM_OUTPUT– Evaluates expressions and produces output bindings with no external calls. -
HTTP_REQUEST– Makes an HTTP call to an external service and evaluates output expressions that can reference the response. -
AWS_SERVICE_REQUEST– Makes an authenticated request to a supported AWS service API and evaluates output expressions that can reference the response. -
VAST_REQUEST– Calls a VAST endpoint, parses the response as VAST, and makes the parsed ads available to output expressions. -
SEQUENTIAL_EXECUTOR– Runs a sequence of child functions in order, passing data between steps through temporary data. -
CONCURRENT_EXECUTOR– Runs a set of child functions in parallel, up to a maximum concurrency, and combines their output when all functions complete.
For more information, see Function types and composition in the MediaTailor User Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
functionType
The type of the function, which determines what the function can do at runtime. Valid values:
-
CUSTOM_OUTPUT– Evaluates expressions and produces output bindings with no external calls. -
HTTP_REQUEST– Makes an HTTP call to an external service and evaluates output expressions that can reference the response. -
AWS_SERVICE_REQUEST– Makes an authenticated request to a supported AWS service API and evaluates output expressions that can reference the response. -
VAST_REQUEST– Calls a VAST endpoint, parses the response as VAST, and makes the parsed ads available to output expressions. -
SEQUENTIAL_EXECUTOR– Runs a sequence of child functions in order, passing data between steps through temporary data. -
CONCURRENT_EXECUTOR– Runs a set of child functions in parallel, up to a maximum concurrency, and combines their output when all functions complete.
For more information, see Function types and composition in the MediaTailor User Guide.
- Parameters:
functionType- The type of the function, which determines what the function can do at runtime. Valid values:-
CUSTOM_OUTPUT– Evaluates expressions and produces output bindings with no external calls. -
HTTP_REQUEST– Makes an HTTP call to an external service and evaluates output expressions that can reference the response. -
AWS_SERVICE_REQUEST– Makes an authenticated request to a supported AWS service API and evaluates output expressions that can reference the response. -
VAST_REQUEST– Calls a VAST endpoint, parses the response as VAST, and makes the parsed ads available to output expressions. -
SEQUENTIAL_EXECUTOR– Runs a sequence of child functions in order, passing data between steps through temporary data. -
CONCURRENT_EXECUTOR– Runs a set of child functions in parallel, up to a maximum concurrency, and combines their output when all functions complete.
For more information, see Function types and composition in the MediaTailor User Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
description
A description of the function.
- Parameters:
description- A description of the function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpRequestConfiguration
PutFunctionRequest.Builder httpRequestConfiguration(HttpRequestConfiguration httpRequestConfiguration) The configuration for an
HTTP_REQUESTfunction. Specifies the HTTP method, URL, headers, body, timeout, and output expressions. Required whenFunctionTypeisHTTP_REQUEST.- Parameters:
httpRequestConfiguration- The configuration for anHTTP_REQUESTfunction. Specifies the HTTP method, URL, headers, body, timeout, and output expressions. Required whenFunctionTypeisHTTP_REQUEST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpRequestConfiguration
default PutFunctionRequest.Builder httpRequestConfiguration(Consumer<HttpRequestConfiguration.Builder> httpRequestConfiguration) The configuration for an
This is a convenience method that creates an instance of theHTTP_REQUESTfunction. Specifies the HTTP method, URL, headers, body, timeout, and output expressions. Required whenFunctionTypeisHTTP_REQUEST.HttpRequestConfiguration.Builderavoiding the need to create one manually viaHttpRequestConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohttpRequestConfiguration(HttpRequestConfiguration).- Parameters:
httpRequestConfiguration- a consumer that will call methods onHttpRequestConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
awsServiceRequestConfiguration
PutFunctionRequest.Builder awsServiceRequestConfiguration(AwsServiceRequestConfiguration awsServiceRequestConfiguration) The configuration for an
AWS_SERVICE_REQUESTfunction. You must specify this parameter whenFunctionTypeisAWS_SERVICE_REQUEST.- Parameters:
awsServiceRequestConfiguration- The configuration for anAWS_SERVICE_REQUESTfunction. You must specify this parameter whenFunctionTypeisAWS_SERVICE_REQUEST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsServiceRequestConfiguration
default PutFunctionRequest.Builder awsServiceRequestConfiguration(Consumer<AwsServiceRequestConfiguration.Builder> awsServiceRequestConfiguration) The configuration for an
This is a convenience method that creates an instance of theAWS_SERVICE_REQUESTfunction. You must specify this parameter whenFunctionTypeisAWS_SERVICE_REQUEST.AwsServiceRequestConfiguration.Builderavoiding the need to create one manually viaAwsServiceRequestConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toawsServiceRequestConfiguration(AwsServiceRequestConfiguration).- Parameters:
awsServiceRequestConfiguration- a consumer that will call methods onAwsServiceRequestConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customOutputConfiguration
PutFunctionRequest.Builder customOutputConfiguration(CustomOutputConfiguration customOutputConfiguration) The configuration for a
CUSTOM_OUTPUTfunction. Specifies the runtime and output expressions. Required whenFunctionTypeisCUSTOM_OUTPUT.- Parameters:
customOutputConfiguration- The configuration for aCUSTOM_OUTPUTfunction. Specifies the runtime and output expressions. Required whenFunctionTypeisCUSTOM_OUTPUT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customOutputConfiguration
default PutFunctionRequest.Builder customOutputConfiguration(Consumer<CustomOutputConfiguration.Builder> customOutputConfiguration) The configuration for a
This is a convenience method that creates an instance of theCUSTOM_OUTPUTfunction. Specifies the runtime and output expressions. Required whenFunctionTypeisCUSTOM_OUTPUT.CustomOutputConfiguration.Builderavoiding the need to create one manually viaCustomOutputConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomOutputConfiguration(CustomOutputConfiguration).- Parameters:
customOutputConfiguration- a consumer that will call methods onCustomOutputConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
concurrentExecutorConfiguration
PutFunctionRequest.Builder concurrentExecutorConfiguration(ConcurrentExecutorConfiguration concurrentExecutorConfiguration) The configuration for a
CONCURRENT_EXECUTORfunction. Specifies the list of child functions to run in parallel, the maximum concurrency, an optional output block, and a timeout. Required whenFunctionTypeisCONCURRENT_EXECUTOR.- Parameters:
concurrentExecutorConfiguration- The configuration for aCONCURRENT_EXECUTORfunction. Specifies the list of child functions to run in parallel, the maximum concurrency, an optional output block, and a timeout. Required whenFunctionTypeisCONCURRENT_EXECUTOR.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
concurrentExecutorConfiguration
default PutFunctionRequest.Builder concurrentExecutorConfiguration(Consumer<ConcurrentExecutorConfiguration.Builder> concurrentExecutorConfiguration) The configuration for a
This is a convenience method that creates an instance of theCONCURRENT_EXECUTORfunction. Specifies the list of child functions to run in parallel, the maximum concurrency, an optional output block, and a timeout. Required whenFunctionTypeisCONCURRENT_EXECUTOR.ConcurrentExecutorConfiguration.Builderavoiding the need to create one manually viaConcurrentExecutorConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconcurrentExecutorConfiguration(ConcurrentExecutorConfiguration).- Parameters:
concurrentExecutorConfiguration- a consumer that will call methods onConcurrentExecutorConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sequentialExecutorConfiguration
PutFunctionRequest.Builder sequentialExecutorConfiguration(SequentialExecutorConfiguration sequentialExecutorConfiguration) The configuration for a
SEQUENTIAL_EXECUTORfunction. Specifies the ordered list of child functions to execute, an optional output block, and a timeout. Required whenFunctionTypeisSEQUENTIAL_EXECUTOR.- Parameters:
sequentialExecutorConfiguration- The configuration for aSEQUENTIAL_EXECUTORfunction. Specifies the ordered list of child functions to execute, an optional output block, and a timeout. Required whenFunctionTypeisSEQUENTIAL_EXECUTOR.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sequentialExecutorConfiguration
default PutFunctionRequest.Builder sequentialExecutorConfiguration(Consumer<SequentialExecutorConfiguration.Builder> sequentialExecutorConfiguration) The configuration for a
This is a convenience method that creates an instance of theSEQUENTIAL_EXECUTORfunction. Specifies the ordered list of child functions to execute, an optional output block, and a timeout. Required whenFunctionTypeisSEQUENTIAL_EXECUTOR.SequentialExecutorConfiguration.Builderavoiding the need to create one manually viaSequentialExecutorConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosequentialExecutorConfiguration(SequentialExecutorConfiguration).- Parameters:
sequentialExecutorConfiguration- a consumer that will call methods onSequentialExecutorConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vastRequestConfiguration
PutFunctionRequest.Builder vastRequestConfiguration(VastRequestConfiguration vastRequestConfiguration) The configuration for a
VAST_REQUESTfunction. Specifies the HTTP method, URL, headers, body, timeout, and output expressions. Required whenFunctionTypeisVAST_REQUEST.- Parameters:
vastRequestConfiguration- The configuration for aVAST_REQUESTfunction. Specifies the HTTP method, URL, headers, body, timeout, and output expressions. Required whenFunctionTypeisVAST_REQUEST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vastRequestConfiguration
default PutFunctionRequest.Builder vastRequestConfiguration(Consumer<VastRequestConfiguration.Builder> vastRequestConfiguration) The configuration for a
This is a convenience method that creates an instance of theVAST_REQUESTfunction. Specifies the HTTP method, URL, headers, body, timeout, and output expressions. Required whenFunctionTypeisVAST_REQUEST.VastRequestConfiguration.Builderavoiding the need to create one manually viaVastRequestConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovastRequestConfiguration(VastRequestConfiguration).- Parameters:
vastRequestConfiguration- a consumer that will call methods onVastRequestConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to assign to the function. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
- Parameters:
tags- The tags to assign to the function. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutFunctionRequest.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
PutFunctionRequest.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.
-