public static class InternetGateway.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InternetGateway |
build() |
InternetGateway.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment containing the internet gateway.
|
InternetGateway.Builder |
copy(InternetGateway model) |
InternetGateway.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
InternetGateway.Builder |
displayName(String displayName)
A user-friendly name.
|
InternetGateway.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
InternetGateway.Builder |
id(String id)
The internet gateway’s Oracle ID
(OCID).
|
InternetGateway.Builder |
isEnabled(Boolean isEnabled)
Whether the gateway is enabled.
|
InternetGateway.Builder |
lifecycleState(InternetGateway.LifecycleState lifecycleState)
The internet gateway’s current state.
|
InternetGateway.Builder |
routeTableId(String routeTableId)
The OCID
of the route table the Internet Gateway is using.
|
InternetGateway.Builder |
timeCreated(Date timeCreated)
The date and time the internet gateway was created, in the format defined by
RFC3339.
|
InternetGateway.Builder |
vcnId(String vcnId)
The OCID
of the VCN the Internet Gateway belongs to.
|
public InternetGateway.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the internet gateway.
compartmentId
- the value to setpublic InternetGateway.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 InternetGateway.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 InternetGateway.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 InternetGateway.Builder id(String id)
The internet gateway’s Oracle ID (OCID).
id
- the value to setpublic InternetGateway.Builder isEnabled(Boolean isEnabled)
Whether the gateway is enabled. When the gateway is disabled, traffic is not routed to/from the Internet, regardless of route rules.
isEnabled
- the value to setpublic InternetGateway.Builder lifecycleState(InternetGateway.LifecycleState lifecycleState)
The internet gateway’s current state.
lifecycleState
- the value to setpublic InternetGateway.Builder timeCreated(Date timeCreated)
The date and time the internet gateway was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic InternetGateway.Builder vcnId(String vcnId)
The OCID of the VCN the Internet Gateway belongs to.
vcnId
- the value to setpublic InternetGateway.Builder routeTableId(String routeTableId)
The OCID of the route table the Internet Gateway is using.
routeTableId
- the value to setpublic InternetGateway build()
public InternetGateway.Builder copy(InternetGateway model)
Copyright © 2016–2024. All rights reserved.