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

52 строки
3.2 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.functions.annotation.CustomBinding"
fullName: "com.microsoft.azure.functions.annotation.CustomBinding"
name: "CustomBinding"
nameWithType: "CustomBinding"
summary: "Place this on a parameter to define a custom binding"
syntax: "public interface **CustomBinding**</br> implements <xref href=\"java.lang.annotation.Annotation?alt=java.lang.annotation.Annotation&text=Annotation\" data-throw-if-not-resolved=\"False\" />"
methods:
- uid: "com.microsoft.azure.functions.annotation.CustomBinding.direction()"
fullName: "com.microsoft.azure.functions.annotation.CustomBinding.direction()"
name: "direction()"
nameWithType: "CustomBinding.direction()"
summary: "The variable name used in function.<wbr>json to specify the direction of the binding: in or out"
modifiers:
- "abstract"
syntax: "public abstract String direction()"
desc: "The variable name used in function.json to specify the direction of the binding: in or out"
returns:
description: "The direction of the biding."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.annotation.CustomBinding.name()"
fullName: "com.microsoft.azure.functions.annotation.CustomBinding.name()"
name: "name()"
nameWithType: "CustomBinding.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.CustomBinding.type()"
fullName: "com.microsoft.azure.functions.annotation.CustomBinding.type()"
name: "type()"
nameWithType: "CustomBinding.type()"
summary: "The variable name used in function.<wbr>json to specify the type of the binding."
modifiers:
- "abstract"
syntax: "public abstract String type()"
desc: "The variable name used in function.json to specify the type of the binding."
returns:
description: "The type of the binding."
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 to define a custom binding\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 uses a customBinding:\n\n```java\n@FunctionName(\"CustomBindingTriggerSample\")\n public void logCustomTriggerInput(\n @CustomBinding(direction = \"in\", name = \"inputParameterName\", type = \"customBindingTrigger\") String customTriggerInput\n final ExecutionContext context\n ) {\n context.getLogger().info(customTriggerInput);\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