Interface StateEndpoint.Builder

  • Method Details

    • endpointId

      StateEndpoint.Builder endpointId(String endpointId)

      Numeric identifier of the endpoint

      Parameters:
      endpointId - Numeric identifier of the endpoint
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capabilities

      StateEndpoint.Builder capabilities(Collection<StateCapability> capabilities)

      Describe the endpoint with an id, a name, and the relevant capabilities for the reporting state.

      Parameters:
      capabilities - Describe the endpoint with an id, a name, and the relevant capabilities for the reporting state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capabilities

      StateEndpoint.Builder capabilities(StateCapability... capabilities)

      Describe the endpoint with an id, a name, and the relevant capabilities for the reporting state.

      Parameters:
      capabilities - Describe the endpoint with an id, a name, and the relevant capabilities for the reporting state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capabilities

      StateEndpoint.Builder capabilities(Consumer<StateCapability.Builder>... capabilities)

      Describe the endpoint with an id, a name, and the relevant capabilities for the reporting state.

      This is a convenience method that creates an instance of the StateCapability.Builder avoiding the need to create one manually via StateCapability.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to capabilities(List<StateCapability>).

      Parameters:
      capabilities - a consumer that will call methods on StateCapability.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: