com.pulumi.azurenative.security.outputs.JitNetworkAccessRequestVirtualMachineResponse 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.JitNetworkAccessRequestPortResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class JitNetworkAccessRequestVirtualMachineResponse {
/**
* @return Resource ID of the virtual machine that is linked to this policy
*
*/
private String id;
/**
* @return The ports that were opened for the virtual machine
*
*/
private List ports;
private JitNetworkAccessRequestVirtualMachineResponse() {}
/**
* @return Resource ID of the virtual machine that is linked to this policy
*
*/
public String id() {
return this.id;
}
/**
* @return The ports that were opened for the virtual machine
*
*/
public List ports() {
return this.ports;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JitNetworkAccessRequestVirtualMachineResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private List ports;
public Builder() {}
public Builder(JitNetworkAccessRequestVirtualMachineResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.ports = defaults.ports;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("JitNetworkAccessRequestVirtualMachineResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ports(List ports) {
if (ports == null) {
throw new MissingRequiredPropertyException("JitNetworkAccessRequestVirtualMachineResponse", "ports");
}
this.ports = ports;
return this;
}
public Builder ports(JitNetworkAccessRequestPortResponse... ports) {
return ports(List.of(ports));
}
public JitNetworkAccessRequestVirtualMachineResponse build() {
final var _resultValue = new JitNetworkAccessRequestVirtualMachineResponse();
_resultValue.id = id;
_resultValue.ports = ports;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy