Class UpdateServiceGatewayDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.UpdateServiceGatewayDetails.Builder
-
- Enclosing class:
- UpdateServiceGatewayDetails
public static class UpdateServiceGatewayDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateServiceGatewayDetails.Builder
blockTraffic(Boolean blockTraffic)
Whether the service gateway blocks all traffic through it.UpdateServiceGatewayDetails
build()
UpdateServiceGatewayDetails.Builder
copy(UpdateServiceGatewayDetails model)
UpdateServiceGatewayDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.UpdateServiceGatewayDetails.Builder
displayName(String displayName)
A user-friendly name.UpdateServiceGatewayDetails.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.UpdateServiceGatewayDetails.Builder
routeTableId(String routeTableId)
The OCID of the route table the service gateway will use.UpdateServiceGatewayDetails.Builder
services(List<ServiceIdRequestDetails> services)
List of all the Service objects you want enabled on this service gateway.
-
-
-
Method Detail
-
blockTraffic
public UpdateServiceGatewayDetails.Builder blockTraffic(Boolean blockTraffic)
Whether the service gateway blocks all traffic through it.The default is false. When this is true, traffic is not routed to any services, regardless of route rules.
Example: true
- Parameters:
blockTraffic
- the value to set- Returns:
- this builder
-
definedTags
public UpdateServiceGatewayDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
displayName
public UpdateServiceGatewayDetails.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
freeformTags
public UpdateServiceGatewayDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
routeTableId
public UpdateServiceGatewayDetails.Builder routeTableId(String routeTableId)
The OCID of the route table the service gateway will use.For information about why you would associate a route table with a service gateway, see Transit Routing: Private Access to Oracle Services.
- Parameters:
routeTableId
- the value to set- Returns:
- this builder
-
services
public UpdateServiceGatewayDetails.Builder services(List<ServiceIdRequestDetails> services)
List of all the Service objects you want enabled on this service gateway.Sending an empty list means you want to disable all services. Omitting this parameter entirely keeps the existing list of services intact.
You can also enable or disable a particular Service by using
attachServiceId
ordetachServiceId
.For each enabled Service, make sure there's a route rule with the Service object's cidrBlock as the rule's destination and the service gateway as the rule's target. See
RouteTable
.- Parameters:
services
- the value to set- Returns:
- this builder
-
build
public UpdateServiceGatewayDetails build()
-
copy
public UpdateServiceGatewayDetails.Builder copy(UpdateServiceGatewayDetails model)
-
-