Interface GetLimitResponse.Builder

  • Method Details

    • displayName

      GetLimitResponse.Builder displayName(String displayName)

      The display name of the limit.

      This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

      Parameters:
      displayName - The display name of the limit.

      This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • amountRequirementName

      GetLimitResponse.Builder amountRequirementName(String amountRequirementName)

      The value that you specify as the name in the amounts field of the hostRequirements in a step of a job template to declare the limit requirement.

      Parameters:
      amountRequirementName - The value that you specify as the name in the amounts field of the hostRequirements in a step of a job template to declare the limit requirement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxCount

      GetLimitResponse.Builder maxCount(Integer maxCount)

      The maximum number of resources constrained by this limit. When all of the resources are in use, steps that require the limit won't be scheduled until the resource is available.

      The maxValue must not be 0. If the value is -1, there is no restriction on the number of resources that can be acquired for this limit.

      Parameters:
      maxCount - The maximum number of resources constrained by this limit. When all of the resources are in use, steps that require the limit won't be scheduled until the resource is available.

      The maxValue must not be 0. If the value is -1, there is no restriction on the number of resources that can be acquired for this limit.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      GetLimitResponse.Builder createdAt(Instant createdAt)

      The Unix timestamp of the date and time that the limit was created.

      Parameters:
      createdAt - The Unix timestamp of the date and time that the limit was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdBy

      GetLimitResponse.Builder createdBy(String createdBy)

      The user identifier of the person that created the limit.

      Parameters:
      createdBy - The user identifier of the person that created the limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      GetLimitResponse.Builder updatedAt(Instant updatedAt)

      The Unix timestamp of the date and time that the limit was last updated.

      Parameters:
      updatedAt - The Unix timestamp of the date and time that the limit was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedBy

      GetLimitResponse.Builder updatedBy(String updatedBy)

      The user identifier of the person that last updated the limit.

      Parameters:
      updatedBy - The user identifier of the person that last updated the limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • farmId

      The unique identifier of the farm that contains the limit.

      Parameters:
      farmId - The unique identifier of the farm that contains the limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • limitId

      GetLimitResponse.Builder limitId(String limitId)

      The unique identifier of the limit.

      Parameters:
      limitId - The unique identifier of the limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentCount

      GetLimitResponse.Builder currentCount(Integer currentCount)

      The number of resources from the limit that are being used by jobs. The result is delayed and may not be the count at the time that you called the operation.

      Parameters:
      currentCount - The number of resources from the limit that are being used by jobs. The result is delayed and may not be the count at the time that you called the operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      GetLimitResponse.Builder description(String description)

      The description of the limit that helps identify what the limit is used for.

      This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

      Parameters:
      description - The description of the limit that helps identify what the limit is used for.

      This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

      Returns:
      Returns a reference to this object so that method calls can be chained together.