com.pulumi.azurenative.devtestlab.outputs.SubnetResponse 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.devtestlab.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SubnetResponse {
/**
* @return The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
*
*/
private @Nullable String allowPublicIp;
/**
* @return The name of the subnet as seen in the lab.
*
*/
private @Nullable String labSubnetName;
/**
* @return The resource ID of the subnet.
*
*/
private @Nullable String resourceId;
private SubnetResponse() {}
/**
* @return The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
*
*/
public Optional allowPublicIp() {
return Optional.ofNullable(this.allowPublicIp);
}
/**
* @return The name of the subnet as seen in the lab.
*
*/
public Optional labSubnetName() {
return Optional.ofNullable(this.labSubnetName);
}
/**
* @return The resource ID of the subnet.
*
*/
public Optional resourceId() {
return Optional.ofNullable(this.resourceId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SubnetResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String allowPublicIp;
private @Nullable String labSubnetName;
private @Nullable String resourceId;
public Builder() {}
public Builder(SubnetResponse defaults) {
Objects.requireNonNull(defaults);
this.allowPublicIp = defaults.allowPublicIp;
this.labSubnetName = defaults.labSubnetName;
this.resourceId = defaults.resourceId;
}
@CustomType.Setter
public Builder allowPublicIp(@Nullable String allowPublicIp) {
this.allowPublicIp = allowPublicIp;
return this;
}
@CustomType.Setter
public Builder labSubnetName(@Nullable String labSubnetName) {
this.labSubnetName = labSubnetName;
return this;
}
@CustomType.Setter
public Builder resourceId(@Nullable String resourceId) {
this.resourceId = resourceId;
return this;
}
public SubnetResponse build() {
final var _resultValue = new SubnetResponse();
_resultValue.allowPublicIp = allowPublicIp;
_resultValue.labSubnetName = labSubnetName;
_resultValue.resourceId = resourceId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy