Class ApiVersionProperties
java.lang.Object
com.azure.resourcemanager.apicenter.models.ApiVersionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiVersionProperties>
public final class ApiVersionProperties
extends Object
implements com.azure.json.JsonSerializable<ApiVersionProperties>
API version properties entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiVersionProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ApiVersionProperties from the JsonReader.Get the lifecycleStage property: Current lifecycle stage of the API.title()
Get the title property: API version title.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withLifecycleStage
(LifecycleStage lifecycleStage) Set the lifecycleStage property: Current lifecycle stage of the API.Set the title property: API version title.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApiVersionProperties
public ApiVersionProperties()Creates an instance of ApiVersionProperties class.
-
-
Method Details
-
title
Get the title property: API version title.- Returns:
- the title value.
-
withTitle
Set the title property: API version title.- Parameters:
title
- the title value to set.- Returns:
- the ApiVersionProperties object itself.
-
lifecycleStage
Get the lifecycleStage property: Current lifecycle stage of the API.- Returns:
- the lifecycleStage value.
-
withLifecycleStage
Set the lifecycleStage property: Current lifecycle stage of the API.- Parameters:
lifecycleStage
- the lifecycleStage value to set.- Returns:
- the ApiVersionProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ApiVersionProperties>
- Throws:
IOException
-
fromJson
public static ApiVersionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApiVersionProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ApiVersionProperties 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 ApiVersionProperties.
-