public static class CreateServiceGatewayDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateServiceGatewayDetails |
build() |
CreateServiceGatewayDetails.Builder |
compartmentId(String compartmentId)
The [OCID] (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to contain the service gateway.
|
CreateServiceGatewayDetails.Builder |
copy(CreateServiceGatewayDetails model) |
CreateServiceGatewayDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateServiceGatewayDetails.Builder |
displayName(String displayName)
A user-friendly name.
|
CreateServiceGatewayDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
CreateServiceGatewayDetails.Builder |
services(List<ServiceIdRequestDetails> services)
List of the OCIDs of the
Service objects to
enable for the service gateway. |
CreateServiceGatewayDetails.Builder |
vcnId(String vcnId)
The OCID of the VCN.
|
public CreateServiceGatewayDetails.Builder compartmentId(String compartmentId)
The [OCID] (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to contain the service gateway.
compartmentId
- the value to setpublic CreateServiceGatewayDetails.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"}}
definedTags
- the value to setpublic CreateServiceGatewayDetails.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 CreateServiceGatewayDetails.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"}
freeformTags
- the value to setpublic CreateServiceGatewayDetails.Builder services(List<ServiceIdRequestDetails> services)
List of the OCIDs of the Service
objects to
enable for the service gateway. This list can be empty if you don’t want to enable any
Service
objects when you create the gateway. You can enable a Service
object later by using either attachServiceId
or updateServiceGateway
.
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
.
services
- the value to setpublic CreateServiceGatewayDetails.Builder vcnId(String vcnId)
The OCID of the VCN.
vcnId
- the value to setpublic CreateServiceGatewayDetails build()
public CreateServiceGatewayDetails.Builder copy(CreateServiceGatewayDetails model)
Copyright © 2016–2023. All rights reserved.