Interface Resource.Builder

    • Method Detail

      • id

        Resource.Builder id​(String id)

        The identifier of the resource.

        Parameters:
        id - The identifier of the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • email

        Resource.Builder email​(String email)

        The email of the resource.

        Parameters:
        email - The email of the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        Resource.Builder name​(String name)

        The name of the resource.

        Parameters:
        name - The name of the 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: equipment or room.

        Parameters:
        type - The type of the resource: equipment or room.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • type

        Resource.Builder type​(ResourceType type)

        The type of the resource: equipment or room.

        Parameters:
        type - The type of the resource: equipment or room.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • state

        Resource.Builder state​(String state)

        The state of the resource, which can be ENABLED, DISABLED, or DELETED.

        Parameters:
        state - The state of the resource, which can be ENABLED, DISABLED, or DELETED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EntityState, EntityState
      • state

        Resource.Builder state​(EntityState state)

        The state of the resource, which can be ENABLED, DISABLED, or DELETED.

        Parameters:
        state - The state of the resource, which can be ENABLED, DISABLED, or DELETED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EntityState, EntityState
      • enabledDate

        Resource.Builder enabledDate​(Instant enabledDate)

        The date indicating when the resource was enabled for WorkMail use.

        Parameters:
        enabledDate - The date indicating when the resource was enabled for WorkMail use.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • disabledDate

        Resource.Builder disabledDate​(Instant disabledDate)

        The date indicating when the resource was disabled from WorkMail use.

        Parameters:
        disabledDate - The date indicating when the resource was disabled from WorkMail use.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        Resource.Builder description​(String description)

        Resource description.

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