azure-docs-sdk-java/docs-ref-autogen/com.microsoft.azure.functio...

64 строки
4.2 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.functions.annotation.BlobTrigger"
fullName: "com.microsoft.azure.functions.annotation.BlobTrigger"
name: "BlobTrigger"
nameWithType: "BlobTrigger"
summary: "Place this on a parameter whose value would come from a blob, and causing the method to run when a blob is uploaded."
syntax: "public interface BlobTrigger implements Annotation"
methods:
- uid: "com.microsoft.azure.functions.annotation.BlobTrigger.connection()"
fullName: "com.microsoft.azure.functions.annotation.BlobTrigger.connection()"
name: "connection()"
nameWithType: "BlobTrigger.connection()"
summary: "Defines the app setting name that contains the Azure Storage connection string."
modifiers:
- "abstract"
syntax: "public abstract String connection()"
desc: "Defines the app setting name that contains the Azure Storage connection string."
returns:
description: "The app setting name of the connection string."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.annotation.BlobTrigger.dataType()"
fullName: "com.microsoft.azure.functions.annotation.BlobTrigger.dataType()"
name: "dataType()"
nameWithType: "BlobTrigger.dataType()"
summary: "Defines how Functions runtime should treat the parameter value."
modifiers:
- "abstract"
syntax: "public abstract String dataType()"
desc: "Defines how Functions runtime should treat the parameter value. Possible values are:\n\n * \"\": get the value as a string, and try to deserialize to actual parameter type like POJO\n * string: always get the value as a string\n * binary: get the value as a binary data, and try to deserialize to actual parameter type byte\\[\\]"
returns:
description: "The dataType which will be used by the Functions runtime."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.annotation.BlobTrigger.name()"
fullName: "com.microsoft.azure.functions.annotation.BlobTrigger.name()"
name: "name()"
nameWithType: "BlobTrigger.name()"
summary: "The variable name used in function.<wbr>json."
modifiers:
- "abstract"
syntax: "public abstract String name()"
desc: "The variable name used in function.json."
returns:
description: "The variable name used in function.json."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.annotation.BlobTrigger.path()"
fullName: "com.microsoft.azure.functions.annotation.BlobTrigger.path()"
name: "path()"
nameWithType: "BlobTrigger.path()"
summary: "Defines the path of the blob to which to bind."
modifiers:
- "abstract"
syntax: "public abstract String path()"
desc: "Defines the path of the blob to which to bind."
returns:
description: "The blob path string."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
type: "interface"
desc: "Place this on a parameter whose value would come from a blob, and causing the method to run when a blob is uploaded. The parameter type can be one of the following:\n\n * Any native Java types such as int, String, byte\\[\\]\n * Nullable values using Optional<T>\n * Any POJO type\n\nThe following example shows a Java function that logs the filename and size when a blob is added or updated in the \"samples-workitems\" container:\n\n```java\n@FunctionName(\"blobMonitor\")\n public void blobMonitor(\n @BlobTrigger(name = \"file\",\n dataType = \"binary\",\n path = \"samples-workitems/{name}\",\n connection = \"AzureWebJobsStorage\") byte[] content,\n @BindingName(\"name\") String filename,\n final ExecutionContext context\n ) {\n context.getLogger().info(\"Name: \" + filename + \", Size: \" + content.length + \" bytes\");\n }\n```"
implements:
- "<xref href=\"java.lang.annotation.Annotation?alt=java.lang.annotation.Annotation&text=Annotation\" data-throw-if-not-resolved=\"False\" />"
metadata: {}
package: "com.microsoft.azure.functions.annotation"
artifact: com.microsoft.azure.functions:azure-functions-java-library:1.3.1