Class ServiceGateway.Builder
- java.lang.Object
- 
- com.oracle.bmc.vnmonitoring.model.ServiceGateway.Builder
 
- 
- Enclosing class:
- ServiceGateway
 
 public static class ServiceGateway.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceGateway.BuilderblockTraffic(Boolean blockTraffic)Whether the service gateway blocks all traffic through it.ServiceGatewaybuild()ServiceGateway.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the service gateway.ServiceGateway.Buildercopy(ServiceGateway model)ServiceGateway.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ServiceGateway.BuilderdisplayName(String displayName)A user-friendly name.ServiceGateway.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ServiceGateway.Builderid(String id)The OCID of the service gateway.ServiceGateway.BuilderlifecycleState(ServiceGateway.LifecycleState lifecycleState)The service gateway’s current state.ServiceGateway.BuilderrouteTableId(String routeTableId)The OCID of the route table the service gateway is using.ServiceGateway.Builderservices(List<ServiceIdResponseDetails> services)List of theServiceobjects enabled for this service gateway.ServiceGateway.BuildertimeCreated(Date timeCreated)The date and time the service gateway was created, in the format defined by RFC3339.ServiceGateway.BuildervcnId(String vcnId)The OCID of the VCN the service gateway belongs to.
 
- 
- 
- 
Method Detail- 
blockTrafficpublic 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
 
 - 
compartmentIdpublic ServiceGateway.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the service gateway.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic 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
 
 - 
displayNamepublic 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
 
 - 
freeformTagspublic 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
 
 - 
idpublic ServiceGateway.Builder id(String id) The OCID of the service gateway.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic ServiceGateway.Builder lifecycleState(ServiceGateway.LifecycleState lifecycleState) The service gateway’s current state.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
routeTableIdpublic 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
 
 - 
servicespublic ServiceGateway.Builder services(List<ServiceIdResponseDetails> services) List of theServiceobjects enabled for this service gateway.The list can be empty. You can enable a particular Service by using attachServiceIdorupdateServiceGateway.- Parameters:
- services- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic 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
 
 - 
vcnIdpublic ServiceGateway.Builder vcnId(String vcnId) The OCID of the VCN the service gateway belongs to.- Parameters:
- vcnId- the value to set
- Returns:
- this builder
 
 - 
buildpublic ServiceGateway build() 
 - 
copypublic ServiceGateway.Builder copy(ServiceGateway model) 
 
- 
 
-