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

com.pulumi.azurenative.resources.outputs.AliasPathResponse 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.azurenative.resources.outputs;

import com.pulumi.azurenative.resources.outputs.AliasPathMetadataResponse;
import com.pulumi.azurenative.resources.outputs.AliasPatternResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AliasPathResponse {
    /**
     * @return The API versions.
     * 
     */
    private @Nullable List apiVersions;
    /**
     * @return The metadata of the alias path. If missing, fall back to the default metadata of the alias.
     * 
     */
    private AliasPathMetadataResponse metadata;
    /**
     * @return The path of an alias.
     * 
     */
    private @Nullable String path;
    /**
     * @return The pattern for an alias path.
     * 
     */
    private @Nullable AliasPatternResponse pattern;

    private AliasPathResponse() {}
    /**
     * @return The API versions.
     * 
     */
    public List apiVersions() {
        return this.apiVersions == null ? List.of() : this.apiVersions;
    }
    /**
     * @return The metadata of the alias path. If missing, fall back to the default metadata of the alias.
     * 
     */
    public AliasPathMetadataResponse metadata() {
        return this.metadata;
    }
    /**
     * @return The path of an alias.
     * 
     */
    public Optional path() {
        return Optional.ofNullable(this.path);
    }
    /**
     * @return The pattern for an alias path.
     * 
     */
    public Optional pattern() {
        return Optional.ofNullable(this.pattern);
    }

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

    public static Builder builder(AliasPathResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List apiVersions;
        private AliasPathMetadataResponse metadata;
        private @Nullable String path;
        private @Nullable AliasPatternResponse pattern;
        public Builder() {}
        public Builder(AliasPathResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.apiVersions = defaults.apiVersions;
    	      this.metadata = defaults.metadata;
    	      this.path = defaults.path;
    	      this.pattern = defaults.pattern;
        }

        @CustomType.Setter
        public Builder apiVersions(@Nullable List apiVersions) {

            this.apiVersions = apiVersions;
            return this;
        }
        public Builder apiVersions(String... apiVersions) {
            return apiVersions(List.of(apiVersions));
        }
        @CustomType.Setter
        public Builder metadata(AliasPathMetadataResponse metadata) {
            if (metadata == null) {
              throw new MissingRequiredPropertyException("AliasPathResponse", "metadata");
            }
            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder path(@Nullable String path) {

            this.path = path;
            return this;
        }
        @CustomType.Setter
        public Builder pattern(@Nullable AliasPatternResponse pattern) {

            this.pattern = pattern;
            return this;
        }
        public AliasPathResponse build() {
            final var _resultValue = new AliasPathResponse();
            _resultValue.apiVersions = apiVersions;
            _resultValue.metadata = metadata;
            _resultValue.path = path;
            _resultValue.pattern = pattern;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy