Class PublishVersionResult

    • Constructor Detail

      • PublishVersionResult

        public PublishVersionResult()
    • Method Detail

      • setFunctionName

        public void setFunctionName​(String functionName)

        The name of the function.

        Parameters:
        functionName - The name of the function.
      • getFunctionName

        public String getFunctionName()

        The name of the function.

        Returns:
        The name of the function.
      • withFunctionName

        public PublishVersionResult withFunctionName​(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.
      • setFunctionArn

        public void setFunctionArn​(String functionArn)

        The Amazon Resource Name (ARN) assigned to the function.

        Parameters:
        functionArn - The Amazon Resource Name (ARN) assigned to the function.
      • getFunctionArn

        public String getFunctionArn()

        The Amazon Resource Name (ARN) assigned to the function.

        Returns:
        The Amazon Resource Name (ARN) assigned to the function.
      • withFunctionArn

        public PublishVersionResult withFunctionArn​(String functionArn)

        The Amazon Resource Name (ARN) assigned to the function.

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

        public void setRuntime​(String runtime)

        The runtime environment for the Lambda function.

        Parameters:
        runtime - The runtime environment for the Lambda function.
        See Also:
        Runtime
      • getRuntime

        public String getRuntime()

        The runtime environment for the Lambda function.

        Returns:
        The runtime environment for the Lambda function.
        See Also:
        Runtime
      • withRuntime

        public PublishVersionResult withRuntime​(String runtime)

        The runtime environment for the Lambda function.

        Parameters:
        runtime - The runtime environment for the Lambda function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Runtime
      • setRuntime

        public void setRuntime​(Runtime runtime)

        The runtime environment for the Lambda function.

        Parameters:
        runtime - The runtime environment for the Lambda function.
        See Also:
        Runtime
      • withRuntime

        public PublishVersionResult withRuntime​(Runtime runtime)

        The runtime environment for the Lambda function.

        Parameters:
        runtime - The runtime environment for the Lambda function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Runtime
      • setRole

        public void setRole​(String role)

        The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

        Parameters:
        role - The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.
      • getRole

        public String getRole()

        The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

        Returns:
        The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.
      • withRole

        public PublishVersionResult withRole​(String role)

        The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

        Parameters:
        role - The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setHandler

        public void setHandler​(String handler)

        The function Lambda calls to begin executing your function.

        Parameters:
        handler - The function Lambda calls to begin executing your function.
      • getHandler

        public String getHandler()

        The function Lambda calls to begin executing your function.

        Returns:
        The function Lambda calls to begin executing your function.
      • withHandler

        public PublishVersionResult withHandler​(String handler)

        The function Lambda calls to begin executing your function.

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

        public void setCodeSize​(Long codeSize)

        The size, in bytes, of the function .zip file you uploaded.

        Parameters:
        codeSize - The size, in bytes, of the function .zip file you uploaded.
      • getCodeSize

        public Long getCodeSize()

        The size, in bytes, of the function .zip file you uploaded.

        Returns:
        The size, in bytes, of the function .zip file you uploaded.
      • withCodeSize

        public PublishVersionResult withCodeSize​(Long codeSize)

        The size, in bytes, of the function .zip file you uploaded.

        Parameters:
        codeSize - The size, in bytes, of the function .zip file you uploaded.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDescription

        public void setDescription​(String description)

        The user-provided description.

        Parameters:
        description - The user-provided description.
      • getDescription

        public String getDescription()

        The user-provided description.

        Returns:
        The user-provided description.
      • withDescription

        public PublishVersionResult withDescription​(String description)

        The user-provided description.

        Parameters:
        description - The user-provided description.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTimeout

        public void setTimeout​(Integer timeout)

        The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

        Parameters:
        timeout - The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
      • getTimeout

        public Integer getTimeout()

        The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

        Returns:
        The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
      • withTimeout

        public PublishVersionResult withTimeout​(Integer timeout)

        The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

        Parameters:
        timeout - The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMemorySize

        public void setMemorySize​(Integer memorySize)

        The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

        Parameters:
        memorySize - The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
      • getMemorySize

        public Integer getMemorySize()

        The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

        Returns:
        The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
      • withMemorySize

        public PublishVersionResult withMemorySize​(Integer memorySize)

        The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

        Parameters:
        memorySize - The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLastModified

        public void setLastModified​(String lastModified)

        The time stamp of the last time you updated the function.

        Parameters:
        lastModified - The time stamp of the last time you updated the function.
      • getLastModified

        public String getLastModified()

        The time stamp of the last time you updated the function.

        Returns:
        The time stamp of the last time you updated the function.
      • withLastModified

        public PublishVersionResult withLastModified​(String lastModified)

        The time stamp of the last time you updated the function.

        Parameters:
        lastModified - The time stamp of the last time you updated the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCodeSha256

        public void setCodeSha256​(String codeSha256)

        It is the SHA256 hash of your function deployment package.

        Parameters:
        codeSha256 - It is the SHA256 hash of your function deployment package.
      • getCodeSha256

        public String getCodeSha256()

        It is the SHA256 hash of your function deployment package.

        Returns:
        It is the SHA256 hash of your function deployment package.
      • withCodeSha256

        public PublishVersionResult withCodeSha256​(String codeSha256)

        It is the SHA256 hash of your function deployment package.

        Parameters:
        codeSha256 - It is the SHA256 hash of your function deployment package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setVersion

        public void setVersion​(String version)

        The version of the Lambda function.

        Parameters:
        version - The version of the Lambda function.
      • getVersion

        public String getVersion()

        The version of the Lambda function.

        Returns:
        The version of the Lambda function.
      • withVersion

        public PublishVersionResult withVersion​(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.
      • setVpcConfig

        public void setVpcConfig​(VpcConfigResponse vpcConfig)

        VPC configuration associated with your Lambda function.

        Parameters:
        vpcConfig - VPC configuration associated with your Lambda function.
      • getVpcConfig

        public VpcConfigResponse getVpcConfig()

        VPC configuration associated with your Lambda function.

        Returns:
        VPC configuration associated with your Lambda function.
      • withVpcConfig

        public PublishVersionResult withVpcConfig​(VpcConfigResponse vpcConfig)

        VPC configuration associated with your Lambda function.

        Parameters:
        vpcConfig - VPC configuration associated with your Lambda function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object