Class ServiceGatewayServiceRequestInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.ServiceGatewayServiceRequestInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceGatewayServiceRequestInner>
public final class ServiceGatewayServiceRequestInner
extends Object
implements com.azure.json.JsonSerializable<ServiceGatewayServiceRequestInner>
Properties of the service gateway services request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceGatewayServiceRequestInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceGatewayServiceRequestInner from the JsonReader.isDelete()Get the isDelete property: Set to true to mark the service for deletion.service()Get the service property: Service of service gateway.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsDelete(Boolean isDelete) Set the isDelete property: Set to true to mark the service for deletion.withService(ServiceGatewayServiceInner service) Set the service property: Service of service gateway.Methods inherited from class 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
-
ServiceGatewayServiceRequestInner
public ServiceGatewayServiceRequestInner()Creates an instance of ServiceGatewayServiceRequestInner class.
-
-
Method Details
-
isDelete
Get the isDelete property: Set to true to mark the service for deletion.- Returns:
- the isDelete value.
-
withIsDelete
Set the isDelete property: Set to true to mark the service for deletion.- Parameters:
isDelete- the isDelete value to set.- Returns:
- the ServiceGatewayServiceRequestInner object itself.
-
service
Get the service property: Service of service gateway.- Returns:
- the service value.
-
withService
Set the service property: Service of service gateway.- Parameters:
service- the service value to set.- Returns:
- the ServiceGatewayServiceRequestInner 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<ServiceGatewayServiceRequestInner>- Throws:
IOException
-
fromJson
public static ServiceGatewayServiceRequestInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServiceGatewayServiceRequestInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServiceGatewayServiceRequestInner 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 ServiceGatewayServiceRequestInner.
-