com.commercetools.graphql.api.client.ReviewRatingSetFragmentProjection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commercetools-graphql-api Show documentation
Show all versions of commercetools-graphql-api Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
package com.commercetools.graphql.api.client;
import com.netflix.graphql.dgs.client.codegen.BaseSubProjectionNode;
import java.lang.Override;
import java.lang.String;
public class ReviewRatingSetFragmentProjection, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
{
getFields().put("__typename", null);
}
public ReviewRatingSetFragmentProjection(PARENT parent, ROOT root) {
super(parent, root, java.util.Optional.of("ReviewRatingSet"));
}
public ReviewRatingSetFragmentProjection __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 ReferenceProjection, ROOT> targetRef() {
ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
getFields().put("targetRef", projection);
return projection;
}
public ReviewRatingSetFragmentProjection oldRating() {
getFields().put("oldRating", null);
return this;
}
public ReviewRatingSetFragmentProjection newRating() {
getFields().put("newRating", null);
return this;
}
public ReviewRatingSetFragmentProjection includedInStatistics() {
getFields().put("includedInStatistics", null);
return this;
}
public ReviewRatingSetFragmentProjection type() {
getFields().put("type", null);
return this;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("... on ReviewRatingSet {");
getFields().forEach((k, v) -> {
builder.append(" ").append(k);
if(v != null) {
builder.append(" ").append(v.toString());
}
});
builder.append("}");
return builder.toString();
}
}