public static class ServiceGateway.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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)
Free-form tags for this resource.
|
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 the
Service 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.
|
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
blockTraffic
- the value to setpublic ServiceGateway.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the service gateway.
compartmentId
- the value to setpublic ServiceGateway.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic ServiceGateway.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic ServiceGateway.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic ServiceGateway.Builder id(String id)
The OCID of the service gateway.
id
- the value to setpublic ServiceGateway.Builder lifecycleState(ServiceGateway.LifecycleState lifecycleState)
The service gateway’s current state.
lifecycleState
- the value to setpublic 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.
routeTableId
- the value to setpublic ServiceGateway.Builder services(List<ServiceIdResponseDetails> services)
List of the Service
objects enabled for this service gateway. The list can be
empty. You can enable a particular Service
by using attachServiceId
or updateServiceGateway
.
services
- the value to setpublic 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
timeCreated
- the value to setpublic ServiceGateway.Builder vcnId(String vcnId)
The OCID of the VCN the service gateway belongs to.
vcnId
- the value to setpublic ServiceGateway build()
public ServiceGateway.Builder copy(ServiceGateway model)
Copyright © 2016–2024. All rights reserved.