Class AutoModSettings

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

public class AutoModSettings extends Object
  • Constructor Details

    • AutoModSettings

      public AutoModSettings()
    • AutoModSettings

      public AutoModSettings(String broadcasterId, String moderatorId, @Nullable @Nullable Integer overallLevel, Integer aggression, Integer bullying, Integer disability, Integer misogyny, Integer raceEthnicityOrReligion, Integer sexBasedTerms, Integer sexualitySexOrGender, Integer swearing)
      Creates a new AutoModSettings instance.
      Parameters:
      broadcasterId - The broadcaster’s ID.
      moderatorId - The moderator’s ID.
      overallLevel - The default AutoMod level for the broadcaster. This field is null if the broadcaster has set one or more of the individual settings.
      aggression - The Automod level for hostility involving aggression.
      bullying - The Automod level for hostility involving name calling or insults.
      disability - The Automod level for discrimination against disability.
      misogyny - The Automod level for discrimination against women.
      raceEthnicityOrReligion - The Automod level for racial discrimination.
      sexBasedTerms - The Automod level for sexual content.
      sexualitySexOrGender - The AutoMod level for discrimination based on sexuality, sex, or gender.
      swearing - The Automod level for profanity.
  • Method Details

    • isValidConfiguration

      public boolean isValidConfiguration()
      Returns:
      whether the settings are valid to be passed to TwitchHelix.updateChatSettings(String, String, String, ChatSettings)
    • builder

      public static AutoModSettings.AutoModSettingsBuilder builder()
    • toBuilder

    • withBroadcasterId

      public AutoModSettings withBroadcasterId(String broadcasterId)
      The broadcaster’s ID.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withModeratorId

      public AutoModSettings withModeratorId(String moderatorId)
      The moderator’s ID.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withOverallLevel

      public AutoModSettings withOverallLevel(@Nullable @Nullable Integer overallLevel)
      The default AutoMod level for the broadcaster. This field is null if the broadcaster has set one or more of the individual settings.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAggression

      public AutoModSettings withAggression(Integer aggression)
      The Automod level for hostility involving aggression.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBullying

      public AutoModSettings withBullying(Integer bullying)
      The Automod level for hostility involving name calling or insults.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDisability

      public AutoModSettings withDisability(Integer disability)
      The Automod level for discrimination against disability.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMisogyny

      public AutoModSettings withMisogyny(Integer misogyny)
      The Automod level for discrimination against women.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRaceEthnicityOrReligion

      public AutoModSettings withRaceEthnicityOrReligion(Integer raceEthnicityOrReligion)
      The Automod level for racial discrimination.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSexBasedTerms

      public AutoModSettings withSexBasedTerms(Integer sexBasedTerms)
      The Automod level for sexual content.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSexualitySexOrGender

      public AutoModSettings withSexualitySexOrGender(Integer sexualitySexOrGender)
      The AutoMod level for discrimination based on sexuality, sex, or gender.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSwearing

      public AutoModSettings withSwearing(Integer swearing)
      The Automod level for profanity.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • getBroadcasterId

      public String getBroadcasterId()
      The broadcaster’s ID.
    • getModeratorId

      public String getModeratorId()
      The moderator’s ID.
    • getOverallLevel

      @Nullable public @Nullable Integer getOverallLevel()
      The default AutoMod level for the broadcaster. This field is null if the broadcaster has set one or more of the individual settings.
    • getAggression

      public Integer getAggression()
      The Automod level for hostility involving aggression.
    • getBullying

      public Integer getBullying()
      The Automod level for hostility involving name calling or insults.
    • getDisability

      public Integer getDisability()
      The Automod level for discrimination against disability.
    • getMisogyny

      public Integer getMisogyny()
      The Automod level for discrimination against women.
    • getRaceEthnicityOrReligion

      public Integer getRaceEthnicityOrReligion()
      The Automod level for racial discrimination.
    • getSexBasedTerms

      public Integer getSexBasedTerms()
      The Automod level for sexual content.
    • getSexualitySexOrGender

      public Integer getSexualitySexOrGender()
      The AutoMod level for discrimination based on sexuality, sex, or gender.
    • getSwearing

      public Integer getSwearing()
      The Automod level for profanity.
    • 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