Sdílet prostřednictvím


BlobTrigger Interface

public interface BlobTrigger

BindingName("name") String filename, final ExecutionContext context ) { context.getLogger().info("Name: " + filename + ", Size: " + content.length + " bytes"); }

Method Summary

Modifier and Type Method and Description
String connection()

Defines the app setting name that contains the Azure Storage connection string.

String dataType()

Defines how Functions runtime should treat the parameter value. Possible values are:

    <li>
    
      <p>"": get the value as a string, and try to deserialize to actual parameter type like POJO </p>
    
    </li>
    
    <li>
    
      <p>string: always get the value as a string </p>
    
    </li>
    
    <li>
    
      <p>binary: get the value as a binary data, and try to deserialize to actual parameter type byte[] </p>
    
    </li>
    

String name()

The variable name used in function.json.

String path()

Defines the path of the blob to which to bind.

String source()

Defines the parameter to specify the type of the blob trigger to use, example EventGrid for event grid blob trigger.

Method Details

connection

public String connection() default ""

Defines the app setting name that contains the Azure Storage connection string.

Returns:

The app setting name of the connection string.

dataType

public String dataType() default ""

Defines how Functions runtime should treat the parameter value. Possible values are:

    <li>
    
      <p>"": get the value as a string, and try to deserialize to actual parameter type like POJO </p>
    
    </li>
    
    <li>
    
      <p>string: always get the value as a string </p>
    
    </li>
    
    <li>
    
      <p>binary: get the value as a binary data, and try to deserialize to actual parameter type byte[] </p>
    
    </li>
    

Returns:

The dataType which will be used by the Functions runtime.

name

public String name()

The variable name used in function.json.

Returns:

The variable name used in function.json.

path

public String path()

Defines the path of the blob to which to bind.

Returns:

The blob path string.

source

public String source() default ""

Defines the parameter to specify the type of the blob trigger to use, example EventGrid for event grid blob trigger.

Returns:

the parameter to specify the type of the blob trigger to use.

Applies to