Class GatewayContractProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.GatewayContractProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayContractProperties>
public final class GatewayContractProperties
extends Object
implements com.azure.json.JsonSerializable<GatewayContractProperties>
Properties of the Gateway contract.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GatewayContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Gateway description.static GatewayContractPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayContractProperties from the JsonReader.Get the locationData property: Gateway location.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: Gateway description.withLocationData(ResourceLocationDataContract locationData) Set the locationData property: Gateway location.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
-
GatewayContractProperties
public GatewayContractProperties()Creates an instance of GatewayContractProperties class.
-
-
Method Details
-
locationData
Get the locationData property: Gateway location.- Returns:
- the locationData value.
-
withLocationData
Set the locationData property: Gateway location.- Parameters:
locationData- the locationData value to set.- Returns:
- the GatewayContractProperties object itself.
-
description
Get the description property: Gateway description.- Returns:
- the description value.
-
withDescription
Set the description property: Gateway description.- Parameters:
description- the description value to set.- Returns:
- the GatewayContractProperties 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<GatewayContractProperties>- Throws:
IOException
-
fromJson
public static GatewayContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GatewayContractProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GatewayContractProperties 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 GatewayContractProperties.
-