ServerlessInferenceEndpoint Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.ServerlessInferenceEndpoint

Implements

public final class ServerlessInferenceEndpoint
implements JsonSerializable<ServerlessInferenceEndpoint>

The ServerlessInferenceEndpoint model.

Constructor Summary

Constructor Description
ServerlessInferenceEndpoint()

Creates an instance of ServerlessInferenceEndpoint class.

Method Summary

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

Reads an instance of ServerlessInferenceEndpoint from the JsonReader.

Map<String,String> headers()

Get the headers property: Specifies any required headers to target this serverless endpoint.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.

void validate()

Validates the instance.

ServerlessInferenceEndpoint withUri(String uri)

Set the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.

Methods inherited from java.lang.Object

Constructor Details

ServerlessInferenceEndpoint

public ServerlessInferenceEndpoint()

Creates an instance of ServerlessInferenceEndpoint class.

Method Details

fromJson

public static ServerlessInferenceEndpoint fromJson(JsonReader jsonReader)

Reads an instance of ServerlessInferenceEndpoint from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

headers

public Map<String,String> headers()

Get the headers property: Specifies any required headers to target this serverless endpoint.

Returns:

the headers value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uri

public String uri()

Get the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.

Returns:

the uri value.

validate

public void validate()

Validates the instance.

withUri

public ServerlessInferenceEndpoint withUri(String uri)

Set the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.

Parameters:

uri - the uri value to set.

Returns:

the ServerlessInferenceEndpoint object itself.

Applies to