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

com.pulumi.aws.appsync.DomainNameApiAssociationArgs Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.appsync;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class DomainNameApiAssociationArgs extends com.pulumi.resources.ResourceArgs {

    public static final DomainNameApiAssociationArgs Empty = new DomainNameApiAssociationArgs();

    /**
     * API ID.
     * 
     */
    @Import(name="apiId", required=true)
    private Output apiId;

    /**
     * @return API ID.
     * 
     */
    public Output apiId() {
        return this.apiId;
    }

    /**
     * Appsync domain name.
     * 
     */
    @Import(name="domainName", required=true)
    private Output domainName;

    /**
     * @return Appsync domain name.
     * 
     */
    public Output domainName() {
        return this.domainName;
    }

    private DomainNameApiAssociationArgs() {}

    private DomainNameApiAssociationArgs(DomainNameApiAssociationArgs $) {
        this.apiId = $.apiId;
        this.domainName = $.domainName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(DomainNameApiAssociationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DomainNameApiAssociationArgs $;

        public Builder() {
            $ = new DomainNameApiAssociationArgs();
        }

        public Builder(DomainNameApiAssociationArgs defaults) {
            $ = new DomainNameApiAssociationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param apiId API ID.
         * 
         * @return builder
         * 
         */
        public Builder apiId(Output apiId) {
            $.apiId = apiId;
            return this;
        }

        /**
         * @param apiId API ID.
         * 
         * @return builder
         * 
         */
        public Builder apiId(String apiId) {
            return apiId(Output.of(apiId));
        }

        /**
         * @param domainName Appsync domain name.
         * 
         * @return builder
         * 
         */
        public Builder domainName(Output domainName) {
            $.domainName = domainName;
            return this;
        }

        /**
         * @param domainName Appsync domain name.
         * 
         * @return builder
         * 
         */
        public Builder domainName(String domainName) {
            return domainName(Output.of(domainName));
        }

        public DomainNameApiAssociationArgs build() {
            if ($.apiId == null) {
                throw new MissingRequiredPropertyException("DomainNameApiAssociationArgs", "apiId");
            }
            if ($.domainName == null) {
                throw new MissingRequiredPropertyException("DomainNameApiAssociationArgs", "domainName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy