All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.stigg.api.operations.fragment.ResetPeriodConfigurationFragment Maven / Gradle / Ivy

There is a newer version: 2.129.0
Show newest version
//
// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL version '3.8.2'.
//
package io.stigg.api.operations.fragment;

import com.apollographql.apollo3.api.Fragment;
import io.stigg.api.operations.type.MonthlyAccordingTo;
import io.stigg.api.operations.type.WeeklyAccordingTo;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;

public class ResetPeriodConfigurationFragment implements Fragment.Data {
  public String __typename;

  /**
   * Synthetic field for inline fragment on MonthlyResetPeriodConfig
   */
  public OnMonthlyResetPeriodConfig onMonthlyResetPeriodConfig;

  /**
   * Synthetic field for inline fragment on WeeklyResetPeriodConfig
   */
  public OnWeeklyResetPeriodConfig onWeeklyResetPeriodConfig;

  private transient volatile int $hashCode;

  private transient volatile boolean $hashCodeMemoized;

  private transient volatile String $toString;

  public ResetPeriodConfigurationFragment(String __typename,
      OnMonthlyResetPeriodConfig onMonthlyResetPeriodConfig,
      OnWeeklyResetPeriodConfig onWeeklyResetPeriodConfig) {
    this.__typename = __typename;
    this.onMonthlyResetPeriodConfig = onMonthlyResetPeriodConfig;
    this.onWeeklyResetPeriodConfig = onWeeklyResetPeriodConfig;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ResetPeriodConfigurationFragment) {
      ResetPeriodConfigurationFragment that = (ResetPeriodConfigurationFragment) o;
      return ((this.__typename == null) ? (that.__typename == null) : this.__typename.equals(that.__typename))
       &&((this.onMonthlyResetPeriodConfig == null) ? (that.onMonthlyResetPeriodConfig == null) : this.onMonthlyResetPeriodConfig.equals(that.onMonthlyResetPeriodConfig))
       &&((this.onWeeklyResetPeriodConfig == null) ? (that.onWeeklyResetPeriodConfig == null) : this.onWeeklyResetPeriodConfig.equals(that.onWeeklyResetPeriodConfig));
    }
    return false;
  }

  @Override
  public int hashCode() {
    if (!$hashCodeMemoized) {
      int __h = 1;
      __h *= 1000003;
      __h ^= (__typename == null) ? 0 : __typename.hashCode();
      __h *= 1000003;
      __h ^= (onMonthlyResetPeriodConfig == null) ? 0 : onMonthlyResetPeriodConfig.hashCode();
      __h *= 1000003;
      __h ^= (onWeeklyResetPeriodConfig == null) ? 0 : onWeeklyResetPeriodConfig.hashCode();
      $hashCode = __h;
      $hashCodeMemoized = true;
    }
    return $hashCode;
  }

  @Override
  public String toString() {
    if ($toString == null) {
      $toString = "ResetPeriodConfigurationFragment{"
        + "__typename=" + __typename + ", "
        + "onMonthlyResetPeriodConfig=" + onMonthlyResetPeriodConfig + ", "
        + "onWeeklyResetPeriodConfig=" + onWeeklyResetPeriodConfig
        + "}";
    }
    return $toString;
  }

  public static class OnMonthlyResetPeriodConfig {
    public MonthlyAccordingTo monthlyAccordingTo;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public OnMonthlyResetPeriodConfig(MonthlyAccordingTo monthlyAccordingTo) {
      this.monthlyAccordingTo = monthlyAccordingTo;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof OnMonthlyResetPeriodConfig) {
        OnMonthlyResetPeriodConfig that = (OnMonthlyResetPeriodConfig) o;
        return ((this.monthlyAccordingTo == null) ? (that.monthlyAccordingTo == null) : this.monthlyAccordingTo.equals(that.monthlyAccordingTo));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (monthlyAccordingTo == null) ? 0 : monthlyAccordingTo.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "OnMonthlyResetPeriodConfig{"
          + "monthlyAccordingTo=" + monthlyAccordingTo
          + "}";
      }
      return $toString;
    }
  }

  public static class OnWeeklyResetPeriodConfig {
    public WeeklyAccordingTo weeklyAccordingTo;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public OnWeeklyResetPeriodConfig(WeeklyAccordingTo weeklyAccordingTo) {
      this.weeklyAccordingTo = weeklyAccordingTo;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof OnWeeklyResetPeriodConfig) {
        OnWeeklyResetPeriodConfig that = (OnWeeklyResetPeriodConfig) o;
        return ((this.weeklyAccordingTo == null) ? (that.weeklyAccordingTo == null) : this.weeklyAccordingTo.equals(that.weeklyAccordingTo));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (weeklyAccordingTo == null) ? 0 : weeklyAccordingTo.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "OnWeeklyResetPeriodConfig{"
          + "weeklyAccordingTo=" + weeklyAccordingTo
          + "}";
      }
      return $toString;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy