
com.pulumi.azurenative.resources.outputs.ZoneMappingResponse 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 ZoneMappingResponse {
/**
* @return The location of the zone mapping.
*
*/
private @Nullable String location;
private @Nullable List zones;
private ZoneMappingResponse() {}
/**
* @return The location of the zone mapping.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
public List zones() {
return this.zones == null ? List.of() : this.zones;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ZoneMappingResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String location;
private @Nullable List zones;
public Builder() {}
public Builder(ZoneMappingResponse defaults) {
Objects.requireNonNull(defaults);
this.location = defaults.location;
this.zones = defaults.zones;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder zones(@Nullable List zones) {
this.zones = zones;
return this;
}
public Builder zones(String... zones) {
return zones(List.of(zones));
}
public ZoneMappingResponse build() {
final var _resultValue = new ZoneMappingResponse();
_resultValue.location = location;
_resultValue.zones = zones;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy