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 Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceGatewayUpdateServicesRequest class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: Specifies the type of update operation to perform on services within the service gatewayfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceGatewayUpdateServicesRequest from the JsonReader.Get the serviceRequests property: Collection of service updates.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAction(ServiceUpdateAction action) Set the action property: Specifies the type of update operation to perform on services within the service gatewaywithServiceRequests(List<ServiceGatewayServiceRequestInner> serviceRequests) Set the serviceRequests property: Collection of service updates.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
-
ServiceGatewayUpdateServicesRequest
public ServiceGatewayUpdateServicesRequest()Creates an instance of ServiceGatewayUpdateServicesRequest class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-