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

com.pulumi.azurenative.apimanagement.inputs.ApiLicenseInformationArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.apimanagement.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;


/**
 * API license information
 * 
 */
public final class ApiLicenseInformationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApiLicenseInformationArgs Empty = new ApiLicenseInformationArgs();

    /**
     * The license name used for the API
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The license name used for the API
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A URL to the license used for the API. MUST be in the format of a URL
     * 
     */
    @Import(name="url")
    private @Nullable Output url;

    /**
     * @return A URL to the license used for the API. MUST be in the format of a URL
     * 
     */
    public Optional> url() {
        return Optional.ofNullable(this.url);
    }

    private ApiLicenseInformationArgs() {}

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

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

    public static final class Builder {
        private ApiLicenseInformationArgs $;

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

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

        /**
         * @param name The license name used for the API
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param url A URL to the license used for the API. MUST be in the format of a URL
         * 
         * @return builder
         * 
         */
        public Builder url(@Nullable Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url A URL to the license used for the API. MUST be in the format of a URL
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

        public ApiLicenseInformationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy