
com.pulumi.azurenative.network.outputs.GetAdminRuleResult 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.network.outputs;
import com.pulumi.azurenative.network.outputs.AddressPrefixItemResponse;
import com.pulumi.azurenative.network.outputs.SystemDataResponse;
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 GetAdminRuleResult {
/**
* @return Indicates the access allowed for this particular rule
*
*/
private String access;
/**
* @return A description for this rule. Restricted to 140 chars.
*
*/
private @Nullable String description;
/**
* @return The destination port ranges.
*
*/
private @Nullable List destinationPortRanges;
/**
* @return The destination address prefixes. CIDR or destination IP ranges.
*
*/
private @Nullable List destinations;
/**
* @return Indicates if the traffic matched against the rule in inbound or outbound.
*
*/
private String direction;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private String id;
/**
* @return Whether the rule is custom or default.
* Expected value is 'Custom'.
*
*/
private String kind;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
*
*/
private Integer priority;
/**
* @return Network protocol this rule applies to.
*
*/
private String protocol;
/**
* @return The provisioning state of the resource.
*
*/
private String provisioningState;
/**
* @return Unique identifier for this resource.
*
*/
private String resourceGuid;
/**
* @return The source port ranges.
*
*/
private @Nullable List sourcePortRanges;
/**
* @return The CIDR or source IP ranges.
*
*/
private @Nullable List sources;
/**
* @return The system metadata related to this resource.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource type.
*
*/
private String type;
private GetAdminRuleResult() {}
/**
* @return Indicates the access allowed for this particular rule
*
*/
public String access() {
return this.access;
}
/**
* @return A description for this rule. Restricted to 140 chars.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The destination port ranges.
*
*/
public List destinationPortRanges() {
return this.destinationPortRanges == null ? List.of() : this.destinationPortRanges;
}
/**
* @return The destination address prefixes. CIDR or destination IP ranges.
*
*/
public List destinations() {
return this.destinations == null ? List.of() : this.destinations;
}
/**
* @return Indicates if the traffic matched against the rule in inbound or outbound.
*
*/
public String direction() {
return this.direction;
}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return Resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Whether the rule is custom or default.
* Expected value is 'Custom'.
*
*/
public String kind() {
return this.kind;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
*
*/
public Integer priority() {
return this.priority;
}
/**
* @return Network protocol this rule applies to.
*
*/
public String protocol() {
return this.protocol;
}
/**
* @return The provisioning state of the resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Unique identifier for this resource.
*
*/
public String resourceGuid() {
return this.resourceGuid;
}
/**
* @return The source port ranges.
*
*/
public List sourcePortRanges() {
return this.sourcePortRanges == null ? List.of() : this.sourcePortRanges;
}
/**
* @return The CIDR or source IP ranges.
*
*/
public List sources() {
return this.sources == null ? List.of() : this.sources;
}
/**
* @return The system metadata related to this resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAdminRuleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String access;
private @Nullable String description;
private @Nullable List destinationPortRanges;
private @Nullable List destinations;
private String direction;
private String etag;
private String id;
private String kind;
private String name;
private Integer priority;
private String protocol;
private String provisioningState;
private String resourceGuid;
private @Nullable List sourcePortRanges;
private @Nullable List sources;
private SystemDataResponse systemData;
private String type;
public Builder() {}
public Builder(GetAdminRuleResult defaults) {
Objects.requireNonNull(defaults);
this.access = defaults.access;
this.description = defaults.description;
this.destinationPortRanges = defaults.destinationPortRanges;
this.destinations = defaults.destinations;
this.direction = defaults.direction;
this.etag = defaults.etag;
this.id = defaults.id;
this.kind = defaults.kind;
this.name = defaults.name;
this.priority = defaults.priority;
this.protocol = defaults.protocol;
this.provisioningState = defaults.provisioningState;
this.resourceGuid = defaults.resourceGuid;
this.sourcePortRanges = defaults.sourcePortRanges;
this.sources = defaults.sources;
this.systemData = defaults.systemData;
this.type = defaults.type;
}
@CustomType.Setter
public Builder access(String access) {
if (access == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "access");
}
this.access = access;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder destinationPortRanges(@Nullable List destinationPortRanges) {
this.destinationPortRanges = destinationPortRanges;
return this;
}
public Builder destinationPortRanges(String... destinationPortRanges) {
return destinationPortRanges(List.of(destinationPortRanges));
}
@CustomType.Setter
public Builder destinations(@Nullable List destinations) {
this.destinations = destinations;
return this;
}
public Builder destinations(AddressPrefixItemResponse... destinations) {
return destinations(List.of(destinations));
}
@CustomType.Setter
public Builder direction(String direction) {
if (direction == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "direction");
}
this.direction = direction;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder priority(Integer priority) {
if (priority == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "priority");
}
this.priority = priority;
return this;
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "protocol");
}
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder resourceGuid(String resourceGuid) {
if (resourceGuid == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "resourceGuid");
}
this.resourceGuid = resourceGuid;
return this;
}
@CustomType.Setter
public Builder sourcePortRanges(@Nullable List sourcePortRanges) {
this.sourcePortRanges = sourcePortRanges;
return this;
}
public Builder sourcePortRanges(String... sourcePortRanges) {
return sourcePortRanges(List.of(sourcePortRanges));
}
@CustomType.Setter
public Builder sources(@Nullable List sources) {
this.sources = sources;
return this;
}
public Builder sources(AddressPrefixItemResponse... sources) {
return sources(List.of(sources));
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetAdminRuleResult", "type");
}
this.type = type;
return this;
}
public GetAdminRuleResult build() {
final var _resultValue = new GetAdminRuleResult();
_resultValue.access = access;
_resultValue.description = description;
_resultValue.destinationPortRanges = destinationPortRanges;
_resultValue.destinations = destinations;
_resultValue.direction = direction;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.priority = priority;
_resultValue.protocol = protocol;
_resultValue.provisioningState = provisioningState;
_resultValue.resourceGuid = resourceGuid;
_resultValue.sourcePortRanges = sourcePortRanges;
_resultValue.sources = sources;
_resultValue.systemData = systemData;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy