Class Bastion.Builder

  • Enclosing class:
    Bastion

    public static class Bastion.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bastionType

        public Bastion.Builder bastionType​(String bastionType)
        The type of bastion.
        Parameters:
        bastionType - the value to set
        Returns:
        this builder
      • id

        public 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
      • name

        public 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
      • compartmentId

        public 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
      • targetVcnId

        public 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
      • targetSubnetId

        public 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
      • phoneBookEntry

        public 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
      • clientCidrBlockAllowList

        public 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
      • staticJumpHostIpAddresses

        public 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
      • privateEndpointIpAddress

        public Bastion.Builder privateEndpointIpAddress​(String privateEndpointIpAddress)
        The private IP address of the created private endpoint.
        Parameters:
        privateEndpointIpAddress - the value to set
        Returns:
        this builder
      • maxSessionTtlInSeconds

        public 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
      • maxSessionsAllowed

        public Bastion.Builder maxSessionsAllowed​(Integer maxSessionsAllowed)
        The maximum number of active sessions allowed on the bastion.
        Parameters:
        maxSessionsAllowed - the value to set
        Returns:
        this builder
      • dnsProxyStatus

        public Bastion.Builder dnsProxyStatus​(BastionDnsProxyStatus dnsProxyStatus)
        The current dns proxy status of the bastion.
        Parameters:
        dnsProxyStatus - the value to set
        Returns:
        this builder
      • timeCreated

        public 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
      • timeUpdated

        public 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
      • lifecycleState

        public Bastion.Builder lifecycleState​(BastionLifecycleState lifecycleState)
        The current state of the bastion.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Bastion.Builder lifecycleDetails​(String lifecycleDetails)
        A message describing the current state in more detail.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • freeformTags

        public 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
      • definedTags

        public 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
      • systemTags

        public 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