Package com.oracle.bmc.bastion.model
Class Bastion.Builder
- java.lang.Object
- 
- com.oracle.bmc.bastion.model.Bastion.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Bastion.BuilderbastionType(String bastionType)The type of bastion.Bastionbuild()Bastion.BuilderclientCidrBlockAllowList(List<String> clientCidrBlockAllowList)A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.Bastion.BuildercompartmentId(String compartmentId)The unique identifier (OCID) of the compartment where the bastion is located.Bastion.Buildercopy(Bastion model)Bastion.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Bastion.BuilderdnsProxyStatus(BastionDnsProxyStatus dnsProxyStatus)The current dns proxy status of the bastion.Bastion.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Bastion.Builderid(String id)The unique identifier (OCID) of the bastion, which can’t be changed after creation.Bastion.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.Bastion.BuilderlifecycleState(BastionLifecycleState lifecycleState)The current state of the bastion.Bastion.BuildermaxSessionsAllowed(Integer maxSessionsAllowed)The maximum number of active sessions allowed on the bastion.Bastion.BuildermaxSessionTtlInSeconds(Integer maxSessionTtlInSeconds)The maximum amount of time that any session on the bastion can remain active.Bastion.Buildername(String name)The name of the bastion, which can’t be changed after creation.Bastion.BuilderphoneBookEntry(String phoneBookEntry)The phonebook entry of the customer’s team, which can’t be changed after creation.Bastion.BuilderprivateEndpointIpAddress(String privateEndpointIpAddress)The private IP address of the created private endpoint.Bastion.BuilderstaticJumpHostIpAddresses(List<String> staticJumpHostIpAddresses)A list of IP addresses of the hosts that the bastion has access to.Bastion.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.Bastion.BuildertargetSubnetId(String targetSubnetId)The unique identifier (OCID) of the subnet that the bastion connects to.Bastion.BuildertargetVcnId(String targetVcnId)The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.Bastion.BuildertimeCreated(Date timeCreated)The time the bastion was created.Bastion.BuildertimeUpdated(Date timeUpdated)The time the bastion was updated.
 
- 
- 
- 
Method Detail- 
bastionTypepublic Bastion.Builder bastionType(String bastionType) The type of bastion.- Parameters:
- bastionType- the value to set
- Returns:
- this builder
 
 - 
idpublic Bastion.Builder id(String id) The unique identifier (OCID) of the bastion, which can’t be changed after creation.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
namepublic Bastion.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
 
 - 
compartmentIdpublic Bastion.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
 
 - 
targetVcnIdpublic Bastion.Builder targetVcnId(String targetVcnId) The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.- Parameters:
- targetVcnId- the value to set
- Returns:
- this builder
 
 - 
targetSubnetIdpublic Bastion.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
 
 - 
phoneBookEntrypublic Bastion.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
 
 - 
clientCidrBlockAllowListpublic Bastion.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
 
 - 
staticJumpHostIpAddressespublic Bastion.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
 
 - 
privateEndpointIpAddresspublic Bastion.Builder privateEndpointIpAddress(String privateEndpointIpAddress) The private IP address of the created private endpoint.- Parameters:
- privateEndpointIpAddress- the value to set
- Returns:
- this builder
 
 - 
maxSessionTtlInSecondspublic Bastion.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
 
 - 
maxSessionsAllowedpublic Bastion.Builder maxSessionsAllowed(Integer maxSessionsAllowed) The maximum number of active sessions allowed on the bastion.- Parameters:
- maxSessionsAllowed- the value to set
- Returns:
- this builder
 
 - 
dnsProxyStatuspublic Bastion.Builder dnsProxyStatus(BastionDnsProxyStatus dnsProxyStatus) The current dns proxy status of the bastion.- Parameters:
- dnsProxyStatus- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic Bastion.Builder timeCreated(Date timeCreated) The time the bastion was created.Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic Bastion.Builder timeUpdated(Date timeUpdated) The time the bastion was updated.Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z - Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic Bastion.Builder lifecycleState(BastionLifecycleState lifecycleState) The current state of the bastion.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic Bastion.Builder lifecycleDetails(String lifecycleDetails) A message describing the current state in more detail.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic Bastion.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
 
 - 
definedTagspublic Bastion.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
 
 - 
systemTagspublic Bastion.Builder systemTags(Map<String,Map<String,Object>> systemTags) Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}} - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic Bastion build() 
 - 
copypublic Bastion.Builder copy(Bastion model) 
 
- 
 
-