Package com.oracle.bmc.bastion.model
Class CreateBastionDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.bastion.model.CreateBastionDetails.Builder
-
- Enclosing class:
- CreateBastionDetails
public static class CreateBastionDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateBastionDetails.Builder
bastionType(String bastionType)
The type of bastion.CreateBastionDetails
build()
CreateBastionDetails.Builder
clientCidrBlockAllowList(List<String> clientCidrBlockAllowList)
A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.CreateBastionDetails.Builder
compartmentId(String compartmentId)
The unique identifier (OCID) of the compartment where the bastion is located.CreateBastionDetails.Builder
copy(CreateBastionDetails model)
CreateBastionDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateBastionDetails.Builder
dnsProxyStatus(BastionDnsProxyStatus dnsProxyStatus)
The desired dns proxy status of the bastion.CreateBastionDetails.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.CreateBastionDetails.Builder
maxSessionTtlInSeconds(Integer maxSessionTtlInSeconds)
The maximum amount of time that any session on the bastion can remain active.CreateBastionDetails.Builder
name(String name)
The name of the bastion, which can’t be changed after creation.CreateBastionDetails.Builder
phoneBookEntry(String phoneBookEntry)
The phonebook entry of the customer’s team, which can’t be changed after creation.CreateBastionDetails.Builder
staticJumpHostIpAddresses(List<String> staticJumpHostIpAddresses)
A list of IP addresses of the hosts that the bastion has access to.CreateBastionDetails.Builder
targetSubnetId(String targetSubnetId)
The unique identifier (OCID) of the subnet that the bastion connects to.
-
-
-
Method Detail
-
bastionType
public CreateBastionDetails.Builder bastionType(String bastionType)
The type of bastion.Use standard.
- Parameters:
bastionType
- the value to set- Returns:
- this builder
-
name
public CreateBastionDetails.Builder name(String name)
The name of the bastion, which can’t be changed after creation.- Parameters:
name
- the value to set- Returns:
- this builder
-
compartmentId
public CreateBastionDetails.Builder compartmentId(String compartmentId)
The unique identifier (OCID) of the compartment where the bastion is located.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
targetSubnetId
public CreateBastionDetails.Builder targetSubnetId(String targetSubnetId)
The unique identifier (OCID) of the subnet that the bastion connects to.- Parameters:
targetSubnetId
- the value to set- Returns:
- this builder
-
phoneBookEntry
public CreateBastionDetails.Builder phoneBookEntry(String phoneBookEntry)
The phonebook entry of the customer’s team, which can’t be changed after creation.Not applicable to standard bastions.
- Parameters:
phoneBookEntry
- the value to set- Returns:
- this builder
-
staticJumpHostIpAddresses
public CreateBastionDetails.Builder staticJumpHostIpAddresses(List<String> staticJumpHostIpAddresses)
A list of IP addresses of the hosts that the bastion has access to.Not applicable to standard bastions.
- Parameters:
staticJumpHostIpAddresses
- the value to set- Returns:
- this builder
-
clientCidrBlockAllowList
public CreateBastionDetails.Builder clientCidrBlockAllowList(List<String> clientCidrBlockAllowList)
A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.- Parameters:
clientCidrBlockAllowList
- the value to set- Returns:
- this builder
-
maxSessionTtlInSeconds
public CreateBastionDetails.Builder maxSessionTtlInSeconds(Integer maxSessionTtlInSeconds)
The maximum amount of time that any session on the bastion can remain active.- Parameters:
maxSessionTtlInSeconds
- the value to set- Returns:
- this builder
-
dnsProxyStatus
public CreateBastionDetails.Builder dnsProxyStatus(BastionDnsProxyStatus dnsProxyStatus)
The desired dns proxy status of the bastion.- Parameters:
dnsProxyStatus
- the value to set- Returns:
- this builder
-
freeformTags
public CreateBastionDetails.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
-
definedTags
public CreateBastionDetails.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
-
build
public CreateBastionDetails build()
-
copy
public CreateBastionDetails.Builder copy(CreateBastionDetails model)
-
-