Interface CreateSegmentResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<CreateSegmentResponse.Builder,CreateSegmentResponse>, EvidentlyResponse.Builder, SdkBuilder<CreateSegmentResponse.Builder,CreateSegmentResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
CreateSegmentResponse

public static interface CreateSegmentResponse.Builder extends EvidentlyResponse.Builder, SdkPojo, CopyableBuilder<CreateSegmentResponse.Builder,CreateSegmentResponse>
  • Method Details

    • segment

      A structure that contains the complete information about the segment that was just created.

      Parameters:
      segment - A structure that contains the complete information about the segment that was just created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • segment

      A structure that contains the complete information about the segment that was just created.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to segment(Segment).

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