com.commercetools.graphql.api.client.ReviewFragmentProjection 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 ReviewFragmentProjection, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
{
getFields().put("__typename", null);
}
public ReviewFragmentProjection(PARENT parent, ROOT root) {
super(parent, root, java.util.Optional.of("Review"));
}
public ReviewFragmentProjection __typename() {
getFields().put("__typename", null);
return this;
}
public ReferenceProjection, ROOT> targetRef() {
ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
getFields().put("targetRef", projection);
return projection;
}
public ReviewTargetProjection, ROOT> target() {
ReviewTargetProjection, ROOT> projection = new ReviewTargetProjection<>(this, getRoot());
getFields().put("target", projection);
return projection;
}
public ReferenceProjection, ROOT> stateRef() {
ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
getFields().put("stateRef", projection);
return projection;
}
public StateProjection, ROOT> state() {
StateProjection, ROOT> projection = new StateProjection<>(this, getRoot());
getFields().put("state", projection);
return projection;
}
public ReferenceProjection, ROOT> customerRef() {
ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
getFields().put("customerRef", projection);
return projection;
}
public CustomerProjection, ROOT> customer() {
CustomerProjection, ROOT> projection = new CustomerProjection<>(this, getRoot());
getFields().put("customer", projection);
return projection;
}
public CustomFieldsTypeProjection, ROOT> custom() {
CustomFieldsTypeProjection, ROOT> projection = new CustomFieldsTypeProjection<>(this, getRoot());
getFields().put("custom", projection);
return projection;
}
public InitiatorProjection, ROOT> createdBy() {
InitiatorProjection, ROOT> projection = new InitiatorProjection<>(this, getRoot());
getFields().put("createdBy", projection);
return projection;
}
public InitiatorProjection, ROOT> lastModifiedBy() {
InitiatorProjection, ROOT> projection = new InitiatorProjection<>(this, getRoot());
getFields().put("lastModifiedBy", projection);
return projection;
}
public ReviewFragmentProjection key() {
getFields().put("key", null);
return this;
}
public ReviewFragmentProjection uniquenessValue() {
getFields().put("uniquenessValue", null);
return this;
}
public ReviewFragmentProjection locale() {
getFields().put("locale", null);
return this;
}
public ReviewFragmentProjection authorName() {
getFields().put("authorName", null);
return this;
}
public ReviewFragmentProjection title() {
getFields().put("title", null);
return this;
}
public ReviewFragmentProjection text() {
getFields().put("text", null);
return this;
}
public ReviewFragmentProjection rating() {
getFields().put("rating", null);
return this;
}
public ReviewFragmentProjection includedInStatistics() {
getFields().put("includedInStatistics", null);
return this;
}
public ReviewFragmentProjection id() {
getFields().put("id", null);
return this;
}
public ReviewFragmentProjection version() {
getFields().put("version", null);
return this;
}
public ReviewFragmentProjection createdAt() {
getFields().put("createdAt", null);
return this;
}
public ReviewFragmentProjection lastModifiedAt() {
getFields().put("lastModifiedAt", null);
return this;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("... on Review {");
getFields().forEach((k, v) -> {
builder.append(" ").append(k);
if(v != null) {
builder.append(" ").append(v.toString());
}
});
builder.append("}");
return builder.toString();
}
}