Class CreatePublicIpDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public CreatePublicIpDetails.Builder compartmentId​(String compartmentId)
        The OCID of the compartment to contain the public IP.

        For ephemeral public IPs, you must set this to the private IP’s compartment OCID.

        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • definedTags

        public CreatePublicIpDetails.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
      • displayName

        public CreatePublicIpDetails.Builder displayName​(String displayName)
        A user-friendly name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • freeformTags

        public CreatePublicIpDetails.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
      • privateIpId

        public CreatePublicIpDetails.Builder privateIpId​(String privateIpId)
        The OCID of the private IP to assign the public IP to.

        Required for an ephemeral public IP because it must always be assigned to a private IP (specifically a *primary* private IP).

        Optional for a reserved public IP. If you don't provide it, the public IP is created but not assigned to a private IP. You can later assign the public IP with updatePublicIp.

        Parameters:
        privateIpId - the value to set
        Returns:
        this builder
      • publicIpPoolId

        public CreatePublicIpDetails.Builder publicIpPoolId​(String publicIpPoolId)
        The OCID of the public IP pool.
        Parameters:
        publicIpPoolId - the value to set
        Returns:
        this builder