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

com.commercetools.graphql.api.client.ReviewStateTransitionFragmentProjection Maven / Gradle / Ivy

There is a newer version: 17.15.1
Show newest version
package com.commercetools.graphql.api.client;

import com.netflix.graphql.dgs.client.codegen.BaseSubProjectionNode;
import java.lang.Override;
import java.lang.String;

public class ReviewStateTransitionFragmentProjection, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  {
    getFields().put("__typename", null);
  }

  public ReviewStateTransitionFragmentProjection(PARENT parent, ROOT root) {
    super(parent, root, java.util.Optional.of("ReviewStateTransition"));
  }

  public ReviewStateTransitionFragmentProjection __typename() {
    getFields().put("__typename", null);
    return this;
  }

  public ReviewTargetProjection, ROOT> target(
      ) {
     ReviewTargetProjection, ROOT> projection = new ReviewTargetProjection<>(this, getRoot());
     getFields().put("target", projection);
     return projection;
  }

  public StateProjection, ROOT> oldState() {
     StateProjection, ROOT> projection = new StateProjection<>(this, getRoot());
     getFields().put("oldState", projection);
     return projection;
  }

  public StateProjection, ROOT> newState() {
     StateProjection, ROOT> projection = new StateProjection<>(this, getRoot());
     getFields().put("newState", projection);
     return projection;
  }

  public ReferenceProjection, ROOT> targetRef(
      ) {
     ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
     getFields().put("targetRef", projection);
     return projection;
  }

  public ReferenceProjection, ROOT> oldStateRef(
      ) {
     ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
     getFields().put("oldStateRef", projection);
     return projection;
  }

  public ReferenceProjection, ROOT> newStateRef(
      ) {
     ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
     getFields().put("newStateRef", projection);
     return projection;
  }

  public ReviewStateTransitionFragmentProjection oldIncludedInStatistics() {
    getFields().put("oldIncludedInStatistics", null);
    return this;
  }

  public ReviewStateTransitionFragmentProjection newIncludedInStatistics() {
    getFields().put("newIncludedInStatistics", null);
    return this;
  }

  public ReviewStateTransitionFragmentProjection force() {
    getFields().put("force", null);
    return this;
  }

  public ReviewStateTransitionFragmentProjection type() {
    getFields().put("type", null);
    return this;
  }

  @Override
  public String toString() {
    StringBuilder builder = new StringBuilder();
    builder.append("... on ReviewStateTransition {");
    getFields().forEach((k, v) -> {
        builder.append(" ").append(k);
        if(v != null) {
            builder.append(" ").append(v.toString());
        }
    });
    builder.append("}");
     
    return builder.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy