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

com.pulumi.azure.apimanagement.GlobalSchemaArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.azure.apimanagement;

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


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

    public static final GlobalSchemaArgs Empty = new GlobalSchemaArgs();

    /**
     * The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="apiManagementName", required=true)
    private Output apiManagementName;

    /**
     * @return The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
     * 
     */
    public Output apiManagementName() {
        return this.apiManagementName;
    }

    /**
     * The description of the schema.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the schema.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * A unique identifier for this Schema. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="schemaId", required=true)
    private Output schemaId;

    /**
     * @return A unique identifier for this Schema. Changing this forces a new resource to be created.
     * 
     */
    public Output schemaId() {
        return this.schemaId;
    }

    /**
     * The content type of the Schema. Possible values are `xml` and `json`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The content type of the Schema. Possible values are `xml` and `json`.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The string defining the document representing the Schema.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return The string defining the document representing the Schema.
     * 
     */
    public Output value() {
        return this.value;
    }

    private GlobalSchemaArgs() {}

    private GlobalSchemaArgs(GlobalSchemaArgs $) {
        this.apiManagementName = $.apiManagementName;
        this.description = $.description;
        this.resourceGroupName = $.resourceGroupName;
        this.schemaId = $.schemaId;
        this.type = $.type;
        this.value = $.value;
    }

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

    public static final class Builder {
        private GlobalSchemaArgs $;

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

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

        /**
         * @param apiManagementName The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(Output apiManagementName) {
            $.apiManagementName = apiManagementName;
            return this;
        }

        /**
         * @param apiManagementName The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(String apiManagementName) {
            return apiManagementName(Output.of(apiManagementName));
        }

        /**
         * @param description The description of the schema.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the schema.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param resourceGroupName The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param schemaId A unique identifier for this Schema. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder schemaId(Output schemaId) {
            $.schemaId = schemaId;
            return this;
        }

        /**
         * @param schemaId A unique identifier for this Schema. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder schemaId(String schemaId) {
            return schemaId(Output.of(schemaId));
        }

        /**
         * @param type The content type of the Schema. Possible values are `xml` and `json`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The content type of the Schema. Possible values are `xml` and `json`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param value The string defining the document representing the Schema.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The string defining the document representing the Schema.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public GlobalSchemaArgs build() {
            if ($.apiManagementName == null) {
                throw new MissingRequiredPropertyException("GlobalSchemaArgs", "apiManagementName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GlobalSchemaArgs", "resourceGroupName");
            }
            if ($.schemaId == null) {
                throw new MissingRequiredPropertyException("GlobalSchemaArgs", "schemaId");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("GlobalSchemaArgs", "type");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("GlobalSchemaArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy