Interface Resource.Builder

    • Method Detail

      • name

        Resource.Builder name​(String name)

        The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a user-defined resource.

        Parameters:
        name - The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a user-defined resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        Resource.Builder type​(String type)

        The type of the resource. Valid values: INTEGER, DOUBLE, LONG, or STRINGSET.

        Parameters:
        type - The type of the resource. Valid values: INTEGER, DOUBLE, LONG, or STRINGSET.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • doubleValue

        Resource.Builder doubleValue​(Double doubleValue)

        When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

        Parameters:
        doubleValue - When the doubleValue type is set, the value of the resource must be a double precision floating-point type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • longValue

        Resource.Builder longValue​(Long longValue)

        When the longValue type is set, the value of the resource must be an extended precision floating-point type.

        Parameters:
        longValue - When the longValue type is set, the value of the resource must be an extended precision floating-point type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • integerValue

        Resource.Builder integerValue​(Integer integerValue)

        When the integerValue type is set, the value of the resource must be an integer.

        Parameters:
        integerValue - When the integerValue type is set, the value of the resource must be an integer.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • stringSetValue

        Resource.Builder stringSetValue​(Collection<String> stringSetValue)

        When the stringSetValue type is set, the value of the resource must be a string type.

        Parameters:
        stringSetValue - When the stringSetValue type is set, the value of the resource must be a string type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • stringSetValue

        Resource.Builder stringSetValue​(String... stringSetValue)

        When the stringSetValue type is set, the value of the resource must be a string type.

        Parameters:
        stringSetValue - When the stringSetValue type is set, the value of the resource must be a string type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.