Class ServiceGatewayUpdateServicesRequest

java.lang.Object
com.azure.resourcemanager.network.models.ServiceGatewayUpdateServicesRequest
All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceGatewayUpdateServicesRequest>

public final class ServiceGatewayUpdateServicesRequest extends Object implements com.azure.json.JsonSerializable<ServiceGatewayUpdateServicesRequest>
Properties of the service gateway update services request.
  • Constructor Details

    • ServiceGatewayUpdateServicesRequest

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

    • action

      public ServiceUpdateAction action()
      Get the action property: Specifies the type of update operation to perform on services within the service gateway. - FullUpdate: Replaces all existing services with the new list provided in the request. Any previously defined services not included will be removed. - PartialUpdate: Updates only the specified services.
      Returns:
      the action value.
    • withAction

      Set the action property: Specifies the type of update operation to perform on services within the service gateway. - FullUpdate: Replaces all existing services with the new list provided in the request. Any previously defined services not included will be removed. - PartialUpdate: Updates only the specified services.
      Parameters:
      action - the action value to set.
      Returns:
      the ServiceGatewayUpdateServicesRequest object itself.
    • serviceRequests

      public List<ServiceGatewayServiceRequestInner> serviceRequests()
      Get the serviceRequests property: Collection of service updates.
      Returns:
      the serviceRequests value.
    • withServiceRequests

      public ServiceGatewayUpdateServicesRequest withServiceRequests(List<ServiceGatewayServiceRequestInner> serviceRequests)
      Set the serviceRequests property: Collection of service updates.
      Parameters:
      serviceRequests - the serviceRequests value to set.
      Returns:
      the ServiceGatewayUpdateServicesRequest 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<ServiceGatewayUpdateServicesRequest>
      Throws:
      IOException
    • fromJson

      public static ServiceGatewayUpdateServicesRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServiceGatewayUpdateServicesRequest from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServiceGatewayUpdateServicesRequest 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 ServiceGatewayUpdateServicesRequest.