
com.pulumi.azurenative.security.outputs.GetJitNetworkAccessPolicyResult 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.JitNetworkAccessPolicyVirtualMachineResponse;
import com.pulumi.azurenative.security.outputs.JitNetworkAccessRequestResponse;
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 GetJitNetworkAccessPolicyResult {
/**
* @return Resource Id
*
*/
private String id;
/**
* @return Kind of the resource
*
*/
private @Nullable String kind;
/**
* @return Location where the resource is stored
*
*/
private String location;
/**
* @return Resource name
*
*/
private String name;
/**
* @return Gets the provisioning state of the Just-in-Time policy.
*
*/
private String provisioningState;
private @Nullable List requests;
/**
* @return Resource type
*
*/
private String type;
/**
* @return Configurations for Microsoft.Compute/virtualMachines resource type.
*
*/
private List virtualMachines;
private GetJitNetworkAccessPolicyResult() {}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return Kind of the resource
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Location where the resource is stored
*
*/
public String location() {
return this.location;
}
/**
* @return Resource name
*
*/
public String name() {
return this.name;
}
/**
* @return Gets the provisioning state of the Just-in-Time policy.
*
*/
public String provisioningState() {
return this.provisioningState;
}
public List requests() {
return this.requests == null ? List.of() : this.requests;
}
/**
* @return Resource type
*
*/
public String type() {
return this.type;
}
/**
* @return Configurations for Microsoft.Compute/virtualMachines resource type.
*
*/
public List virtualMachines() {
return this.virtualMachines;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetJitNetworkAccessPolicyResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable String kind;
private String location;
private String name;
private String provisioningState;
private @Nullable List requests;
private String type;
private List virtualMachines;
public Builder() {}
public Builder(GetJitNetworkAccessPolicyResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.kind = defaults.kind;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.requests = defaults.requests;
this.type = defaults.type;
this.virtualMachines = defaults.virtualMachines;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetJitNetworkAccessPolicyResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetJitNetworkAccessPolicyResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetJitNetworkAccessPolicyResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetJitNetworkAccessPolicyResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder requests(@Nullable List requests) {
this.requests = requests;
return this;
}
public Builder requests(JitNetworkAccessRequestResponse... requests) {
return requests(List.of(requests));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetJitNetworkAccessPolicyResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder virtualMachines(List virtualMachines) {
if (virtualMachines == null) {
throw new MissingRequiredPropertyException("GetJitNetworkAccessPolicyResult", "virtualMachines");
}
this.virtualMachines = virtualMachines;
return this;
}
public Builder virtualMachines(JitNetworkAccessPolicyVirtualMachineResponse... virtualMachines) {
return virtualMachines(List.of(virtualMachines));
}
public GetJitNetworkAccessPolicyResult build() {
final var _resultValue = new GetJitNetworkAccessPolicyResult();
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.requests = requests;
_resultValue.type = type;
_resultValue.virtualMachines = virtualMachines;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy