com.pulumi.azurenative.resources.outputs.AliasResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.AliasPathResponse;
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 AliasResponse {
/**
* @return The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata
*
*/
private AliasPathMetadataResponse defaultMetadata;
/**
* @return The default path for an alias.
*
*/
private @Nullable String defaultPath;
/**
* @return The default pattern for an alias.
*
*/
private @Nullable AliasPatternResponse defaultPattern;
/**
* @return The alias name.
*
*/
private @Nullable String name;
/**
* @return The paths for an alias.
*
*/
private @Nullable List paths;
/**
* @return The type of the alias.
*
*/
private @Nullable String type;
private AliasResponse() {}
/**
* @return The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata
*
*/
public AliasPathMetadataResponse defaultMetadata() {
return this.defaultMetadata;
}
/**
* @return The default path for an alias.
*
*/
public Optional defaultPath() {
return Optional.ofNullable(this.defaultPath);
}
/**
* @return The default pattern for an alias.
*
*/
public Optional defaultPattern() {
return Optional.ofNullable(this.defaultPattern);
}
/**
* @return The alias name.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The paths for an alias.
*
*/
public List paths() {
return this.paths == null ? List.of() : this.paths;
}
/**
* @return The type of the alias.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AliasResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private AliasPathMetadataResponse defaultMetadata;
private @Nullable String defaultPath;
private @Nullable AliasPatternResponse defaultPattern;
private @Nullable String name;
private @Nullable List paths;
private @Nullable String type;
public Builder() {}
public Builder(AliasResponse defaults) {
Objects.requireNonNull(defaults);
this.defaultMetadata = defaults.defaultMetadata;
this.defaultPath = defaults.defaultPath;
this.defaultPattern = defaults.defaultPattern;
this.name = defaults.name;
this.paths = defaults.paths;
this.type = defaults.type;
}
@CustomType.Setter
public Builder defaultMetadata(AliasPathMetadataResponse defaultMetadata) {
if (defaultMetadata == null) {
throw new MissingRequiredPropertyException("AliasResponse", "defaultMetadata");
}
this.defaultMetadata = defaultMetadata;
return this;
}
@CustomType.Setter
public Builder defaultPath(@Nullable String defaultPath) {
this.defaultPath = defaultPath;
return this;
}
@CustomType.Setter
public Builder defaultPattern(@Nullable AliasPatternResponse defaultPattern) {
this.defaultPattern = defaultPattern;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder paths(@Nullable List paths) {
this.paths = paths;
return this;
}
public Builder paths(AliasPathResponse... paths) {
return paths(List.of(paths));
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public AliasResponse build() {
final var _resultValue = new AliasResponse();
_resultValue.defaultMetadata = defaultMetadata;
_resultValue.defaultPath = defaultPath;
_resultValue.defaultPattern = defaultPattern;
_resultValue.name = name;
_resultValue.paths = paths;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy