Class ExtensionConfigurationSegmentInput

java.lang.Object
com.github.twitch4j.helix.domain.ExtensionConfigurationSegmentInput

public class ExtensionConfigurationSegmentInput extends Object
  • Constructor Details

    • ExtensionConfigurationSegmentInput

      public ExtensionConfigurationSegmentInput()
    • ExtensionConfigurationSegmentInput

      public ExtensionConfigurationSegmentInput(String extensionId, ExtensionSegment segment, @Nullable @Nullable String broadcasterId, @Nullable @Nullable String content, @Nullable @Nullable String version)
      Creates a new ExtensionConfigurationSegmentInput instance.
      Parameters:
      extensionId - Required: ID for the Extension which the configuration is for.
      segment - Required: Configuration type.
      broadcasterId - User ID of the broadcaster. Required if the segment type is "developer" or "broadcaster".
      content - Configuration in a string-encoded format.
      version - Configuration version with the segment type.
  • Method Details

    • builder

    • toBuilder

    • withExtensionId

      public ExtensionConfigurationSegmentInput withExtensionId(String extensionId)
      Required: ID for the Extension which the configuration is for.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSegment

      Required: Configuration type.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBroadcasterId

      public ExtensionConfigurationSegmentInput withBroadcasterId(@Nullable @Nullable String broadcasterId)
      User ID of the broadcaster. Required if the segment type is "developer" or "broadcaster".
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withContent

      public ExtensionConfigurationSegmentInput withContent(@Nullable @Nullable String content)
      Configuration in a string-encoded format.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withVersion

      public ExtensionConfigurationSegmentInput withVersion(@Nullable @Nullable String version)
      Configuration version with the segment type.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • getExtensionId

      public String getExtensionId()
      Required: ID for the Extension which the configuration is for.
    • getSegment

      public ExtensionSegment getSegment()
      Required: Configuration type.
    • getBroadcasterId

      @Nullable public @Nullable String getBroadcasterId()
      User ID of the broadcaster. Required if the segment type is "developer" or "broadcaster".
    • getContent

      @Nullable public @Nullable String getContent()
      Configuration in a string-encoded format.
    • getVersion

      @Nullable public @Nullable String getVersion()
      Configuration version with the segment type.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object