001
002package com.commercetools.api.predicates.query.attribute_group;
003
004import java.util.function.Function;
005
006import com.commercetools.api.predicates.query.*;
007
008public class AttributeGroupRemoveAttributeActionQueryBuilderDsl {
009    public AttributeGroupRemoveAttributeActionQueryBuilderDsl() {
010    }
011
012    public static AttributeGroupRemoveAttributeActionQueryBuilderDsl of() {
013        return new AttributeGroupRemoveAttributeActionQueryBuilderDsl();
014    }
015
016    public StringComparisonPredicateBuilder<AttributeGroupRemoveAttributeActionQueryBuilderDsl> action() {
017        return new StringComparisonPredicateBuilder<>(
018            BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")),
019            p -> new CombinationQueryPredicate<>(p, AttributeGroupRemoveAttributeActionQueryBuilderDsl::of));
020    }
021
022    public CombinationQueryPredicate<AttributeGroupRemoveAttributeActionQueryBuilderDsl> attribute(
023            Function<com.commercetools.api.predicates.query.attribute_group.AttributeReferenceQueryBuilderDsl, CombinationQueryPredicate<com.commercetools.api.predicates.query.attribute_group.AttributeReferenceQueryBuilderDsl>> fn) {
024        return new CombinationQueryPredicate<>(
025            ContainerQueryPredicate.of()
026                    .parent(ConstantQueryPredicate.of().constant("attribute"))
027                    .inner(fn.apply(
028                        com.commercetools.api.predicates.query.attribute_group.AttributeReferenceQueryBuilderDsl.of())),
029            AttributeGroupRemoveAttributeActionQueryBuilderDsl::of);
030    }
031
032}