public static final class FunctionUrlProps.Builder
extends java.lang.Object
FunctionUrlProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FunctionUrlProps.Builder |
authType(FunctionUrlAuthType authType)
Sets the value of
FunctionUrlOptions.getAuthType() |
FunctionUrlProps |
build()
Builds the configured instance.
|
FunctionUrlProps.Builder |
cors(FunctionUrlCorsOptions cors)
Sets the value of
FunctionUrlOptions.getCors() |
FunctionUrlProps.Builder |
function(IFunction function)
Sets the value of
FunctionUrlProps.getFunction() |
public FunctionUrlProps.Builder function(IFunction function)
FunctionUrlProps.getFunction()
function
- The function to which this url refers. This parameter is required.
It can also be an Alias
but not a Version
.this
public FunctionUrlProps.Builder authType(FunctionUrlAuthType authType)
FunctionUrlOptions.getAuthType()
authType
- The type of authentication that your function URL uses.this
public FunctionUrlProps.Builder cors(FunctionUrlCorsOptions cors)
FunctionUrlOptions.getCors()
cors
- The cross-origin resource sharing (CORS) settings for your function URL.this
public FunctionUrlProps build()
FunctionUrlProps
java.lang.NullPointerException
- if any required attribute was not provided