Interface ApproveTimeOffRequest.Builder

  • Method Details

    • instanceId

      ApproveTimeOffRequest.Builder instanceId(String instanceId)

      The identifier of the Connect Customer instance. This can be the ID or the ARN of the instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

      Parameters:
      instanceId - The identifier of the Connect Customer instance. This can be the ID or the ARN of the instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userId

      The identifier of the user who the time off request belongs to. This can be the ID or the ARN of the user.

      Parameters:
      userId - The identifier of the user who the time off request belongs to. This can be the ID or the ARN of the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeOffId

      ApproveTimeOffRequest.Builder timeOffId(String timeOffId)

      The unique identifier of the time off request to approve. If the time off request doesn't belong to UserId, the operation returns ResourceNotFoundException.

      Parameters:
      timeOffId - The unique identifier of the time off request to approve. If the time off request doesn't belong to UserId, the operation returns ResourceNotFoundException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      ApproveTimeOffRequest.Builder description(String description)

      A description recorded with the approval. GetTimeOff doesn't return it.

      Parameters:
      description - A description recorded with the approval. GetTimeOff doesn't return it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleFailureAction

      ApproveTimeOffRequest.Builder ruleFailureAction(String ruleFailureAction)

      Controls what happens when a configured rule fails. REJECT, the default, records an ERROR and leaves the request REJECTED. OVERRIDE records a WARNING and approves the request, like the Override time off rules option in the Connect Customer admin website. OVERRIDE never waives CONFLICTING_TIME_OFF_REQUEST.

      Parameters:
      ruleFailureAction - Controls what happens when a configured rule fails. REJECT, the default, records an ERROR and leaves the request REJECTED. OVERRIDE records a WARNING and approves the request, like the Override time off rules option in the Connect Customer admin website. OVERRIDE never waives CONFLICTING_TIME_OFF_REQUEST.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ruleFailureAction

      ApproveTimeOffRequest.Builder ruleFailureAction(RuleFailureAction ruleFailureAction)

      Controls what happens when a configured rule fails. REJECT, the default, records an ERROR and leaves the request REJECTED. OVERRIDE records a WARNING and approves the request, like the Override time off rules option in the Connect Customer admin website. OVERRIDE never waives CONFLICTING_TIME_OFF_REQUEST.

      Parameters:
      ruleFailureAction - Controls what happens when a configured rule fails. REJECT, the default, records an ERROR and leaves the request REJECTED. OVERRIDE records a WARNING and approves the request, like the Override time off rules option in the Connect Customer admin website. OVERRIDE never waives CONFLICTING_TIME_OFF_REQUEST.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      ApproveTimeOffRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.