FunctionInner Class

public final class FunctionInner
extends SubResource

A function object, containing all information associated with the named function. All functions are contained under a streaming job.

Constructor Summary

Constructor Description
FunctionInner()

Creates an instance of FunctionInner class.

Method Summary

Modifier and Type Method and Description
static FunctionInner fromJson(JsonReader jsonReader)

Reads an instance of FunctionInner from the JsonReader.

String name()

Get the name property: Resource name.

FunctionProperties properties()

Get the properties property: The properties that are associated with a function.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

FunctionInner withId(String id)
FunctionInner withName(String name)

Set the name property: Resource name.

FunctionInner withProperties(FunctionProperties properties)

Set the properties property: The properties that are associated with a function.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

FunctionInner

public FunctionInner()

Creates an instance of FunctionInner class.

Method Details

fromJson

public static FunctionInner fromJson(JsonReader jsonReader)

Reads an instance of FunctionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FunctionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the FunctionInner.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

properties

public FunctionProperties properties()

Get the properties property: The properties that are associated with a function.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FunctionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public FunctionInner withId(String id)

Overrides:

FunctionInner.withId(String id)

Parameters:

id

withName

public FunctionInner withName(String name)

Set the name property: Resource name.

Parameters:

name - the name value to set.

Returns:

the FunctionInner object itself.

withProperties

public FunctionInner withProperties(FunctionProperties properties)

Set the properties property: The properties that are associated with a function.

Parameters:

properties - the properties value to set.

Returns:

the FunctionInner object itself.

Applies to