Class GatewayApiMetadataProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.GatewayApiMetadataProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayApiMetadataProperties>
public final class GatewayApiMetadataProperties
extends Object
implements com.azure.json.JsonSerializable<GatewayApiMetadataProperties>
API metadata property for Spring Cloud Gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GatewayApiMetadataProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`).Get the documentation property: Location of additional documentation for the APIs available on the Gateway instance.static GatewayApiMetadataPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayApiMetadataProperties from the JsonReader.Get the serverUrl property: Base URL that API consumers will use to access APIs on the Gateway instance.title()Get the title property: Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: Version of APIs available on this Gateway instance (default: `unspecified`).withDescription(String description) Set the description property: Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`).withDocumentation(String documentation) Set the documentation property: Location of additional documentation for the APIs available on the Gateway instance.withServerUrl(String serverUrl) Set the serverUrl property: Base URL that API consumers will use to access APIs on the Gateway instance.Set the title property: Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`).withVersion(String version) Set the version property: Version of APIs available on this Gateway instance (default: `unspecified`).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
-
GatewayApiMetadataProperties
public GatewayApiMetadataProperties()Creates an instance of GatewayApiMetadataProperties class.
-
-
Method Details
-
title
Get the title property: Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`).- Returns:
- the title value.
-
withTitle
Set the title property: Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`).- Parameters:
title- the title value to set.- Returns:
- the GatewayApiMetadataProperties object itself.
-
description
Get the description property: Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`).- Returns:
- the description value.
-
withDescription
Set the description property: Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`).- Parameters:
description- the description value to set.- Returns:
- the GatewayApiMetadataProperties object itself.
-
documentation
Get the documentation property: Location of additional documentation for the APIs available on the Gateway instance.- Returns:
- the documentation value.
-
withDocumentation
Set the documentation property: Location of additional documentation for the APIs available on the Gateway instance.- Parameters:
documentation- the documentation value to set.- Returns:
- the GatewayApiMetadataProperties object itself.
-
version
Get the version property: Version of APIs available on this Gateway instance (default: `unspecified`).- Returns:
- the version value.
-
withVersion
Set the version property: Version of APIs available on this Gateway instance (default: `unspecified`).- Parameters:
version- the version value to set.- Returns:
- the GatewayApiMetadataProperties object itself.
-
serverUrl
Get the serverUrl property: Base URL that API consumers will use to access APIs on the Gateway instance.- Returns:
- the serverUrl value.
-
withServerUrl
Set the serverUrl property: Base URL that API consumers will use to access APIs on the Gateway instance.- Parameters:
serverUrl- the serverUrl value to set.- Returns:
- the GatewayApiMetadataProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GatewayApiMetadataProperties>- Throws:
IOException
-
fromJson
public static GatewayApiMetadataProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GatewayApiMetadataProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GatewayApiMetadataProperties 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 GatewayApiMetadataProperties.
-