Interface CreateFunctionResponse.Builder

    • Method Detail

      • functionName

        CreateFunctionResponse.Builder functionName​(String functionName)

        The name of the function.

        Parameters:
        functionName - The name of the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • functionArn

        CreateFunctionResponse.Builder functionArn​(String functionArn)

        The function's Amazon Resource Name (ARN).

        Parameters:
        functionArn - The function's Amazon Resource Name (ARN).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • runtime

        CreateFunctionResponse.Builder runtime​(String runtime)

        The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.

        The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.

        For a list of all currently supported runtimes, see Supported runtimes.

        Parameters:
        runtime - The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.

        The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.

        For a list of all currently supported runtimes, see Supported runtimes.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Runtime, Runtime
      • runtime

        CreateFunctionResponse.Builder runtime​(Runtime runtime)

        The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.

        The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.

        For a list of all currently supported runtimes, see Supported runtimes.

        Parameters:
        runtime - The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.

        The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.

        For a list of all currently supported runtimes, see Supported runtimes.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Runtime, Runtime
      • role

        CreateFunctionResponse.Builder role​(String role)

        The function's execution role.

        Parameters:
        role - The function's execution role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • handler

        CreateFunctionResponse.Builder handler​(String handler)

        The function that Lambda calls to begin running your function.

        Parameters:
        handler - The function that Lambda calls to begin running your function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • codeSize

        CreateFunctionResponse.Builder codeSize​(Long codeSize)

        The size of the function's deployment package, in bytes.

        Parameters:
        codeSize - The size of the function's deployment package, in bytes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateFunctionResponse.Builder description​(String description)

        The function's description.

        Parameters:
        description - The function's description.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timeout

        CreateFunctionResponse.Builder timeout​(Integer timeout)

        The amount of time in seconds that Lambda allows a function to run before stopping it.

        Parameters:
        timeout - The amount of time in seconds that Lambda allows a function to run before stopping it.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • memorySize

        CreateFunctionResponse.Builder memorySize​(Integer memorySize)

        The amount of memory available to the function at runtime.

        Parameters:
        memorySize - The amount of memory available to the function at runtime.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastModified

        CreateFunctionResponse.Builder lastModified​(String lastModified)

        The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

        Parameters:
        lastModified - The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • codeSha256

        CreateFunctionResponse.Builder codeSha256​(String codeSha256)

        The SHA256 hash of the function's deployment package.

        Parameters:
        codeSha256 - The SHA256 hash of the function's deployment package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • version

        CreateFunctionResponse.Builder version​(String version)

        The version of the Lambda function.

        Parameters:
        version - The version of the Lambda function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vpcConfig

        CreateFunctionResponse.Builder vpcConfig​(VpcConfigResponse vpcConfig)

        The function's networking configuration.

        Parameters:
        vpcConfig - The function's networking configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • deadLetterConfig

        CreateFunctionResponse.Builder deadLetterConfig​(DeadLetterConfig deadLetterConfig)

        The function's dead letter queue.

        Parameters:
        deadLetterConfig - The function's dead letter queue.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tracingConfig

        CreateFunctionResponse.Builder tracingConfig​(TracingConfigResponse tracingConfig)

        The function's X-Ray tracing configuration.

        Parameters:
        tracingConfig - The function's X-Ray tracing configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • masterArn

        CreateFunctionResponse.Builder masterArn​(String masterArn)

        For Lambda@Edge functions, the ARN of the main function.

        Parameters:
        masterArn - For Lambda@Edge functions, the ARN of the main function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • revisionId

        CreateFunctionResponse.Builder revisionId​(String revisionId)

        The latest updated revision of the function or alias.

        Parameters:
        revisionId - The latest updated revision of the function or alias.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • state

        CreateFunctionResponse.Builder state​(String state)

        The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

        Parameters:
        state - The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        State, State
      • state

        CreateFunctionResponse.Builder state​(State state)

        The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

        Parameters:
        state - The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        State, State
      • stateReason

        CreateFunctionResponse.Builder stateReason​(String stateReason)

        The reason for the function's current state.

        Parameters:
        stateReason - The reason for the function's current state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • stateReasonCode

        CreateFunctionResponse.Builder stateReasonCode​(String stateReasonCode)

        The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.

        Parameters:
        stateReasonCode - The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StateReasonCode, StateReasonCode
      • stateReasonCode

        CreateFunctionResponse.Builder stateReasonCode​(StateReasonCode stateReasonCode)

        The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.

        Parameters:
        stateReasonCode - The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StateReasonCode, StateReasonCode
      • lastUpdateStatus

        CreateFunctionResponse.Builder lastUpdateStatus​(String lastUpdateStatus)

        The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

        Parameters:
        lastUpdateStatus - The status of the last update that was performed on the function. This is first set to Successful after function creation completes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LastUpdateStatus, LastUpdateStatus
      • lastUpdateStatus

        CreateFunctionResponse.Builder lastUpdateStatus​(LastUpdateStatus lastUpdateStatus)

        The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

        Parameters:
        lastUpdateStatus - The status of the last update that was performed on the function. This is first set to Successful after function creation completes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LastUpdateStatus, LastUpdateStatus
      • lastUpdateStatusReason

        CreateFunctionResponse.Builder lastUpdateStatusReason​(String lastUpdateStatusReason)

        The reason for the last update that was performed on the function.

        Parameters:
        lastUpdateStatusReason - The reason for the last update that was performed on the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastUpdateStatusReasonCode

        CreateFunctionResponse.Builder lastUpdateStatusReasonCode​(String lastUpdateStatusReasonCode)

        The reason code for the last update that was performed on the function.

        Parameters:
        lastUpdateStatusReasonCode - The reason code for the last update that was performed on the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LastUpdateStatusReasonCode, LastUpdateStatusReasonCode
      • packageType

        CreateFunctionResponse.Builder packageType​(String packageType)

        The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

        Parameters:
        packageType - The type of deployment package. Set to Image for container image and set Zip for .zip file archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PackageType, PackageType
      • packageType

        CreateFunctionResponse.Builder packageType​(PackageType packageType)

        The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

        Parameters:
        packageType - The type of deployment package. Set to Image for container image and set Zip for .zip file archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PackageType, PackageType
      • imageConfigResponse

        CreateFunctionResponse.Builder imageConfigResponse​(ImageConfigResponse imageConfigResponse)

        The function's image configuration values.

        Parameters:
        imageConfigResponse - The function's image configuration values.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • signingProfileVersionArn

        CreateFunctionResponse.Builder signingProfileVersionArn​(String signingProfileVersionArn)

        The ARN of the signing profile version.

        Parameters:
        signingProfileVersionArn - The ARN of the signing profile version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • signingJobArn

        CreateFunctionResponse.Builder signingJobArn​(String signingJobArn)

        The ARN of the signing job.

        Parameters:
        signingJobArn - The ARN of the signing job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • architecturesWithStrings

        CreateFunctionResponse.Builder architecturesWithStrings​(Collection<String> architectures)

        The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

        Parameters:
        architectures - The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • architecturesWithStrings

        CreateFunctionResponse.Builder architecturesWithStrings​(String... architectures)

        The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

        Parameters:
        architectures - The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • architectures

        CreateFunctionResponse.Builder architectures​(Collection<Architecture> architectures)

        The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

        Parameters:
        architectures - The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • architectures

        CreateFunctionResponse.Builder architectures​(Architecture... architectures)

        The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

        Parameters:
        architectures - The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ephemeralStorage

        CreateFunctionResponse.Builder ephemeralStorage​(EphemeralStorage ephemeralStorage)

        The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).

        Parameters:
        ephemeralStorage - The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • runtimeVersionConfig

        CreateFunctionResponse.Builder runtimeVersionConfig​(RuntimeVersionConfig runtimeVersionConfig)

        The ARN of the runtime and any errors that occured.

        Parameters:
        runtimeVersionConfig - The ARN of the runtime and any errors that occured.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • loggingConfig

        CreateFunctionResponse.Builder loggingConfig​(LoggingConfig loggingConfig)

        The function's Amazon CloudWatch Logs configuration settings.

        Parameters:
        loggingConfig - The function's Amazon CloudWatch Logs configuration settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.