Class ServerlessInferenceEndpoint
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ServerlessInferenceEndpoint
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServerlessInferenceEndpoint>
public final class ServerlessInferenceEndpoint
extends Object
implements com.azure.json.JsonSerializable<ServerlessInferenceEndpoint>
The ServerlessInferenceEndpoint model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServerlessInferenceEndpoint class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerlessInferenceEndpointfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerlessInferenceEndpoint from the JsonReader.headers()Get the headers property: Specifies any required headers to target this serverless endpoint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) uri()Get the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.voidvalidate()Validates the instance.Set the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServerlessInferenceEndpoint
public ServerlessInferenceEndpoint()Creates an instance of ServerlessInferenceEndpoint class.
-
-
Method Details
-
uri
Get the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.- Returns:
- the uri value.
-
withUri
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.
-
headers
Get the headers property: Specifies any required headers to target this serverless endpoint.- Returns:
- the headers value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServerlessInferenceEndpoint>- Throws:
IOException
-
fromJson
public static ServerlessInferenceEndpoint fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ServerlessInferenceEndpoint.
-