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 Details

    • ServiceGatewayServiceRequestInner

      public ServiceGatewayServiceRequestInner()
      Creates an instance of ServiceGatewayServiceRequestInner class.
  • Method Details

    • isDelete

      public Boolean isDelete()
      Get the isDelete property: Set to true to mark the service for deletion.
      Returns:
      the isDelete value.
    • withIsDelete

      public ServiceGatewayServiceRequestInner withIsDelete(Boolean isDelete)
      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

      public ServiceGatewayServiceInner 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.