Class ServiceGateway.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.ServiceGateway.Builder
-
- Enclosing class:
- ServiceGateway
public static class ServiceGateway.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceGateway.Builder
blockTraffic(Boolean blockTraffic)
Whether the service gateway blocks all traffic through it.ServiceGateway
build()
ServiceGateway.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the service gateway.ServiceGateway.Builder
copy(ServiceGateway model)
ServiceGateway.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ServiceGateway.Builder
displayName(String displayName)
A user-friendly name.ServiceGateway.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.ServiceGateway.Builder
id(String id)
The OCID of the service gateway.ServiceGateway.Builder
lifecycleState(ServiceGateway.LifecycleState lifecycleState)
The service gateway’s current state.ServiceGateway.Builder
routeTableId(String routeTableId)
The OCID of the route table the service gateway is using.ServiceGateway.Builder
services(List<ServiceIdResponseDetails> services)
List of theService
objects enabled for this service gateway.ServiceGateway.Builder
timeCreated(Date timeCreated)
The date and time the service gateway was created, in the format defined by RFC3339.ServiceGateway.Builder
vcnId(String vcnId)
The OCID of the VCN the service gateway belongs to.
-
-
-
Method Detail
-
blockTraffic
public ServiceGateway.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
-
compartmentId
public ServiceGateway.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the service gateway.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public ServiceGateway.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 ServiceGateway.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 ServiceGateway.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
-
id
public ServiceGateway.Builder id(String id)
The OCID of the service gateway.- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleState
public ServiceGateway.Builder lifecycleState(ServiceGateway.LifecycleState lifecycleState)
The service gateway’s current state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
routeTableId
public ServiceGateway.Builder routeTableId(String routeTableId)
The OCID of the route table the service gateway is using.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 ServiceGateway.Builder services(List<ServiceIdResponseDetails> services)
List of theService
objects enabled for this service gateway.The list can be empty. You can enable a particular Service by using
attachServiceId
orupdateServiceGateway
.- Parameters:
services
- the value to set- Returns:
- this builder
-
timeCreated
public ServiceGateway.Builder timeCreated(Date timeCreated)
The date and time the service gateway was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
vcnId
public ServiceGateway.Builder vcnId(String vcnId)
The OCID of the VCN the service gateway belongs to.- Parameters:
vcnId
- the value to set- Returns:
- this builder
-
build
public ServiceGateway build()
-
copy
public ServiceGateway.Builder copy(ServiceGateway model)
-
-