com.pulumi.azurenative.security.outputs.JitNetworkAccessPolicyVirtualMachineResponse 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.security.outputs;
import com.pulumi.azurenative.security.outputs.JitNetworkAccessPortRuleResponse;
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 JitNetworkAccessPolicyVirtualMachineResponse {
/**
* @return Resource ID of the virtual machine that is linked to this policy
*
*/
private String id;
/**
* @return Port configurations for the virtual machine
*
*/
private List ports;
/**
* @return Public IP address of the Azure Firewall that is linked to this policy, if applicable
*
*/
private @Nullable String publicIpAddress;
private JitNetworkAccessPolicyVirtualMachineResponse() {}
/**
* @return Resource ID of the virtual machine that is linked to this policy
*
*/
public String id() {
return this.id;
}
/**
* @return Port configurations for the virtual machine
*
*/
public List ports() {
return this.ports;
}
/**
* @return Public IP address of the Azure Firewall that is linked to this policy, if applicable
*
*/
public Optional publicIpAddress() {
return Optional.ofNullable(this.publicIpAddress);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JitNetworkAccessPolicyVirtualMachineResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private List ports;
private @Nullable String publicIpAddress;
public Builder() {}
public Builder(JitNetworkAccessPolicyVirtualMachineResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.ports = defaults.ports;
this.publicIpAddress = defaults.publicIpAddress;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("JitNetworkAccessPolicyVirtualMachineResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ports(List ports) {
if (ports == null) {
throw new MissingRequiredPropertyException("JitNetworkAccessPolicyVirtualMachineResponse", "ports");
}
this.ports = ports;
return this;
}
public Builder ports(JitNetworkAccessPortRuleResponse... ports) {
return ports(List.of(ports));
}
@CustomType.Setter
public Builder publicIpAddress(@Nullable String publicIpAddress) {
this.publicIpAddress = publicIpAddress;
return this;
}
public JitNetworkAccessPolicyVirtualMachineResponse build() {
final var _resultValue = new JitNetworkAccessPolicyVirtualMachineResponse();
_resultValue.id = id;
_resultValue.ports = ports;
_resultValue.publicIpAddress = publicIpAddress;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy