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

io.github.cdklabs.awscdk.appsync.utils.CodeFirstSchema Maven / Gradle / Ivy

There is a newer version: 0.0.579
Show newest version
package io.github.cdklabs.awscdk.appsync.utils;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-28T00:18:00.282Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.awscdk.appsync.utils.$Module.class, fqn = "awscdk-appsync-utils.CodeFirstSchema")
public class CodeFirstSchema extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.appsync.ISchema {

    protected CodeFirstSchema(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected CodeFirstSchema(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public CodeFirstSchema() {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
    }

    /**
     * Add a mutation field to the schema's Mutation. CDK will create an Object Type called 'Mutation'. For example,.
     * 

* type Mutation { * fieldName: Field.returnType * } *

* @param fieldName the name of the Mutation. This parameter is required. * @param field the resolvable field to for this Mutation. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull io.github.cdklabs.awscdk.appsync.utils.ObjectType addMutation(final @org.jetbrains.annotations.NotNull java.lang.String fieldName, final @org.jetbrains.annotations.NotNull io.github.cdklabs.awscdk.appsync.utils.ResolvableField field) { return software.amazon.jsii.Kernel.call(this, "addMutation", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.awscdk.appsync.utils.ObjectType.class), new Object[] { java.util.Objects.requireNonNull(fieldName, "fieldName is required"), java.util.Objects.requireNonNull(field, "field is required") }); } /** * Add a query field to the schema's Query. CDK will create an Object Type called 'Query'. For example,. *

* type Query { * fieldName: Field.returnType * } *

* @param fieldName the name of the query. This parameter is required. * @param field the resolvable field to for this query. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull io.github.cdklabs.awscdk.appsync.utils.ObjectType addQuery(final @org.jetbrains.annotations.NotNull java.lang.String fieldName, final @org.jetbrains.annotations.NotNull io.github.cdklabs.awscdk.appsync.utils.ResolvableField field) { return software.amazon.jsii.Kernel.call(this, "addQuery", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.awscdk.appsync.utils.ObjectType.class), new Object[] { java.util.Objects.requireNonNull(fieldName, "fieldName is required"), java.util.Objects.requireNonNull(field, "field is required") }); } /** * Add a subscription field to the schema's Subscription. CDK will create an Object Type called 'Subscription'. For example,. *

* type Subscription { * fieldName: Field.returnType * } *

* @param fieldName the name of the Subscription. This parameter is required. * @param field the resolvable field to for this Subscription. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull io.github.cdklabs.awscdk.appsync.utils.ObjectType addSubscription(final @org.jetbrains.annotations.NotNull java.lang.String fieldName, final @org.jetbrains.annotations.NotNull io.github.cdklabs.awscdk.appsync.utils.Field field) { return software.amazon.jsii.Kernel.call(this, "addSubscription", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.awscdk.appsync.utils.ObjectType.class), new Object[] { java.util.Objects.requireNonNull(fieldName, "fieldName is required"), java.util.Objects.requireNonNull(field, "field is required") }); } /** * Escape hatch to add to Schema as desired. *

* Will always result * in a newline. *

* Default: - '' *

* @param addition the addition to add to schema. This parameter is required. * @param delimiter the delimiter between schema and addition. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void addToSchema(final @org.jetbrains.annotations.NotNull java.lang.String addition, final @org.jetbrains.annotations.Nullable java.lang.String delimiter) { software.amazon.jsii.Kernel.call(this, "addToSchema", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(addition, "addition is required"), delimiter }); } /** * Escape hatch to add to Schema as desired. *

* Will always result * in a newline. *

* Default: - '' *

* @param addition the addition to add to schema. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void addToSchema(final @org.jetbrains.annotations.NotNull java.lang.String addition) { software.amazon.jsii.Kernel.call(this, "addToSchema", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(addition, "addition is required") }); } /** * Add type to the schema. *

* @param type the intermediate type to add to the schema. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull io.github.cdklabs.awscdk.appsync.utils.IIntermediateType addType(final @org.jetbrains.annotations.NotNull io.github.cdklabs.awscdk.appsync.utils.IIntermediateType type) { return software.amazon.jsii.Kernel.call(this, "addType", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.awscdk.appsync.utils.IIntermediateType.class), new Object[] { java.util.Objects.requireNonNull(type, "type is required") }); } /** * Called when the GraphQL Api is initialized to allow this object to bind to the stack. *

* @param api The binding GraphQL Api. This parameter is required. * @param _options */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.ISchemaConfig bind(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.IGraphqlApi api, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.appsync.SchemaBindOptions _options) { return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.ISchemaConfig.class), new Object[] { java.util.Objects.requireNonNull(api, "api is required"), _options }); } /** * Called when the GraphQL Api is initialized to allow this object to bind to the stack. *

* @param api The binding GraphQL Api. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.ISchemaConfig bind(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.IGraphqlApi api) { return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.ISchemaConfig.class), new Object[] { java.util.Objects.requireNonNull(api, "api is required") }); } /** * The definition for this schema. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getDefinition() { return software.amazon.jsii.Kernel.get(this, "definition", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The definition for this schema. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setDefinition(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "definition", java.util.Objects.requireNonNull(value, "definition is required")); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy