com.pulumi.azurenative.security.outputs.JitNetworkAccessRequestPortResponse 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class JitNetworkAccessRequestPortResponse {
/**
* @return Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
*
*/
private @Nullable String allowedSourceAddressPrefix;
/**
* @return Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
*
*/
private @Nullable List allowedSourceAddressPrefixes;
/**
* @return The date & time at which the request ends in UTC
*
*/
private String endTimeUtc;
/**
* @return The port which is mapped to this port's `number` in the Azure Firewall, if applicable
*
*/
private @Nullable Integer mappedPort;
private Integer number;
/**
* @return The status of the port
*
*/
private String status;
/**
* @return A description of why the `status` has its value
*
*/
private String statusReason;
private JitNetworkAccessRequestPortResponse() {}
/**
* @return Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
*
*/
public Optional allowedSourceAddressPrefix() {
return Optional.ofNullable(this.allowedSourceAddressPrefix);
}
/**
* @return Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
*
*/
public List allowedSourceAddressPrefixes() {
return this.allowedSourceAddressPrefixes == null ? List.of() : this.allowedSourceAddressPrefixes;
}
/**
* @return The date & time at which the request ends in UTC
*
*/
public String endTimeUtc() {
return this.endTimeUtc;
}
/**
* @return The port which is mapped to this port's `number` in the Azure Firewall, if applicable
*
*/
public Optional mappedPort() {
return Optional.ofNullable(this.mappedPort);
}
public Integer number() {
return this.number;
}
/**
* @return The status of the port
*
*/
public String status() {
return this.status;
}
/**
* @return A description of why the `status` has its value
*
*/
public String statusReason() {
return this.statusReason;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JitNetworkAccessRequestPortResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String allowedSourceAddressPrefix;
private @Nullable List allowedSourceAddressPrefixes;
private String endTimeUtc;
private @Nullable Integer mappedPort;
private Integer number;
private String status;
private String statusReason;
public Builder() {}
public Builder(JitNetworkAccessRequestPortResponse defaults) {
Objects.requireNonNull(defaults);
this.allowedSourceAddressPrefix = defaults.allowedSourceAddressPrefix;
this.allowedSourceAddressPrefixes = defaults.allowedSourceAddressPrefixes;
this.endTimeUtc = defaults.endTimeUtc;
this.mappedPort = defaults.mappedPort;
this.number = defaults.number;
this.status = defaults.status;
this.statusReason = defaults.statusReason;
}
@CustomType.Setter
public Builder allowedSourceAddressPrefix(@Nullable String allowedSourceAddressPrefix) {
this.allowedSourceAddressPrefix = allowedSourceAddressPrefix;
return this;
}
@CustomType.Setter
public Builder allowedSourceAddressPrefixes(@Nullable List allowedSourceAddressPrefixes) {
this.allowedSourceAddressPrefixes = allowedSourceAddressPrefixes;
return this;
}
public Builder allowedSourceAddressPrefixes(String... allowedSourceAddressPrefixes) {
return allowedSourceAddressPrefixes(List.of(allowedSourceAddressPrefixes));
}
@CustomType.Setter
public Builder endTimeUtc(String endTimeUtc) {
if (endTimeUtc == null) {
throw new MissingRequiredPropertyException("JitNetworkAccessRequestPortResponse", "endTimeUtc");
}
this.endTimeUtc = endTimeUtc;
return this;
}
@CustomType.Setter
public Builder mappedPort(@Nullable Integer mappedPort) {
this.mappedPort = mappedPort;
return this;
}
@CustomType.Setter
public Builder number(Integer number) {
if (number == null) {
throw new MissingRequiredPropertyException("JitNetworkAccessRequestPortResponse", "number");
}
this.number = number;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("JitNetworkAccessRequestPortResponse", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder statusReason(String statusReason) {
if (statusReason == null) {
throw new MissingRequiredPropertyException("JitNetworkAccessRequestPortResponse", "statusReason");
}
this.statusReason = statusReason;
return this;
}
public JitNetworkAccessRequestPortResponse build() {
final var _resultValue = new JitNetworkAccessRequestPortResponse();
_resultValue.allowedSourceAddressPrefix = allowedSourceAddressPrefix;
_resultValue.allowedSourceAddressPrefixes = allowedSourceAddressPrefixes;
_resultValue.endTimeUtc = endTimeUtc;
_resultValue.mappedPort = mappedPort;
_resultValue.number = number;
_resultValue.status = status;
_resultValue.statusReason = statusReason;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy