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

com.pulumi.azurenative.apicenter.inputs.LicenseArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.apicenter.inputs;

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


/**
 * The license information for the API.
 * 
 */
public final class LicenseArgs extends com.pulumi.resources.ResourceArgs {

    public static final LicenseArgs Empty = new LicenseArgs();

    /**
     * SPDX license information for the API. The identifier field is mutually
     * exclusive of the URL field.
     * 
     */
    @Import(name="identifier")
    private @Nullable Output identifier;

    /**
     * @return SPDX license information for the API. The identifier field is mutually
     * exclusive of the URL field.
     * 
     */
    public Optional> identifier() {
        return Optional.ofNullable(this.identifier);
    }

    /**
     * Name of the license.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the license.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * URL pointing to the license details. The URL field is mutually exclusive of the
     * identifier field.
     * 
     */
    @Import(name="url")
    private @Nullable Output url;

    /**
     * @return URL pointing to the license details. The URL field is mutually exclusive of the
     * identifier field.
     * 
     */
    public Optional> url() {
        return Optional.ofNullable(this.url);
    }

    private LicenseArgs() {}

    private LicenseArgs(LicenseArgs $) {
        this.identifier = $.identifier;
        this.name = $.name;
        this.url = $.url;
    }

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

    public static final class Builder {
        private LicenseArgs $;

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

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

        /**
         * @param identifier SPDX license information for the API. The identifier field is mutually
         * exclusive of the URL field.
         * 
         * @return builder
         * 
         */
        public Builder identifier(@Nullable Output identifier) {
            $.identifier = identifier;
            return this;
        }

        /**
         * @param identifier SPDX license information for the API. The identifier field is mutually
         * exclusive of the URL field.
         * 
         * @return builder
         * 
         */
        public Builder identifier(String identifier) {
            return identifier(Output.of(identifier));
        }

        /**
         * @param name Name of the license.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the license.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param url URL pointing to the license details. The URL field is mutually exclusive of the
         * identifier field.
         * 
         * @return builder
         * 
         */
        public Builder url(@Nullable Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url URL pointing to the license details. The URL field is mutually exclusive of the
         * identifier field.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

        public LicenseArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy