Class UpdateNodePoolDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public UpdateNodePoolDetails.Builder name​(String name)
        The new name for the cluster.

        Avoid entering confidential information.

        Parameters:
        name - the value to set
        Returns:
        this builder
      • kubernetesVersion

        public UpdateNodePoolDetails.Builder kubernetesVersion​(String kubernetesVersion)
        The version of Kubernetes to which the nodes in the node pool should be upgraded.
        Parameters:
        kubernetesVersion - the value to set
        Returns:
        this builder
      • initialNodeLabels

        public UpdateNodePoolDetails.Builder initialNodeLabels​(List<KeyValue> initialNodeLabels)
        A list of key/value pairs to add to nodes after they join the Kubernetes cluster.
        Parameters:
        initialNodeLabels - the value to set
        Returns:
        this builder
      • quantityPerSubnet

        public UpdateNodePoolDetails.Builder quantityPerSubnet​(Integer quantityPerSubnet)
        The number of nodes to have in each subnet specified in the subnetIds property.

        This property is deprecated, use nodeConfigDetails instead. If the current value of quantityPerSubnet is greater than 0, you can only use quantityPerSubnet to scale the node pool. If the current value of quantityPerSubnet is equal to 0 and the current value of size in nodeConfigDetails is greater than 0, before you can use quantityPerSubnet, you must first scale the node pool to 0 nodes using nodeConfigDetails.

        Parameters:
        quantityPerSubnet - the value to set
        Returns:
        this builder
      • subnetIds

        public UpdateNodePoolDetails.Builder subnetIds​(List<String> subnetIds)
        The OCIDs of the subnets in which to place nodes for this node pool.

        This property is deprecated, use nodeConfigDetails instead. Only one of the subnetIds or nodeConfigDetails properties can be specified.

        Parameters:
        subnetIds - the value to set
        Returns:
        this builder
      • nodeConfigDetails

        public UpdateNodePoolDetails.Builder nodeConfigDetails​(UpdateNodePoolNodeConfigDetails nodeConfigDetails)
        The configuration of nodes in the node pool.

        Only one of the subnetIds or nodeConfigDetails properties should be specified. If the current value of quantityPerSubnet is greater than 0, the node pool may still be scaled using quantityPerSubnet. Before you can use nodeConfigDetails, you must first scale the node pool to 0 nodes using quantityPerSubnet.

        Parameters:
        nodeConfigDetails - the value to set
        Returns:
        this builder
      • nodeMetadata

        public UpdateNodePoolDetails.Builder nodeMetadata​(Map<String,​String> nodeMetadata)
        A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.
        Parameters:
        nodeMetadata - the value to set
        Returns:
        this builder
      • nodeSourceDetails

        public UpdateNodePoolDetails.Builder nodeSourceDetails​(NodeSourceDetails nodeSourceDetails)
        Specify the source to use to launch nodes in the node pool.

        Currently, image is the only supported source.

        Parameters:
        nodeSourceDetails - the value to set
        Returns:
        this builder
      • sshPublicKey

        public UpdateNodePoolDetails.Builder sshPublicKey​(String sshPublicKey)
        The SSH public key to add to each node in the node pool on launch.
        Parameters:
        sshPublicKey - the value to set
        Returns:
        this builder
      • nodeShape

        public UpdateNodePoolDetails.Builder nodeShape​(String nodeShape)
        The name of the node shape of the nodes in the node pool used on launch.
        Parameters:
        nodeShape - the value to set
        Returns:
        this builder
      • freeformTags

        public UpdateNodePoolDetails.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

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

        public UpdateNodePoolDetails.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

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