Class CreateBastionDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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
      • 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