
com.pulumi.azurenative.resources.outputs.ProviderExtendedLocationResponse 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.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ProviderExtendedLocationResponse {
/**
* @return The extended locations for the azure location.
*
*/
private @Nullable List extendedLocations;
/**
* @return The azure location.
*
*/
private @Nullable String location;
/**
* @return The extended location type.
*
*/
private @Nullable String type;
private ProviderExtendedLocationResponse() {}
/**
* @return The extended locations for the azure location.
*
*/
public List extendedLocations() {
return this.extendedLocations == null ? List.of() : this.extendedLocations;
}
/**
* @return The azure location.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return The extended location type.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ProviderExtendedLocationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List extendedLocations;
private @Nullable String location;
private @Nullable String type;
public Builder() {}
public Builder(ProviderExtendedLocationResponse defaults) {
Objects.requireNonNull(defaults);
this.extendedLocations = defaults.extendedLocations;
this.location = defaults.location;
this.type = defaults.type;
}
@CustomType.Setter
public Builder extendedLocations(@Nullable List extendedLocations) {
this.extendedLocations = extendedLocations;
return this;
}
public Builder extendedLocations(String... extendedLocations) {
return extendedLocations(List.of(extendedLocations));
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public ProviderExtendedLocationResponse build() {
final var _resultValue = new ProviderExtendedLocationResponse();
_resultValue.extendedLocations = extendedLocations;
_resultValue.location = location;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy