
com.pulumi.azurenative.network.outputs.GetDefaultUserRuleResult 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.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetDefaultUserRuleResult {
/**
* @return A description for this rule. Restricted to 140 chars.
*
*/
private String description;
/**
* @return The destination port ranges.
*
*/
private List destinationPortRanges;
/**
* @return The destination address prefixes. CIDR or destination IP ranges.
*
*/
private 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 Default rule flag.
*
*/
private @Nullable String flag;
/**
* @return Resource ID.
*
*/
private String id;
/**
* @return Whether the rule is custom or default.
* Expected value is 'Default'.
*
*/
private String kind;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return Network protocol this rule applies to.
*
*/
private String protocol;
/**
* @return The provisioning state of the security configuration user rule resource.
*
*/
private String provisioningState;
/**
* @return The source port ranges.
*
*/
private List sourcePortRanges;
/**
* @return The CIDR or source IP ranges.
*
*/
private List sources;
/**
* @return The system metadata related to this resource.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource type.
*
*/
private String type;
private GetDefaultUserRuleResult() {}
/**
* @return A description for this rule. Restricted to 140 chars.
*
*/
public String description() {
return this.description;
}
/**
* @return The destination port ranges.
*
*/
public List destinationPortRanges() {
return this.destinationPortRanges;
}
/**
* @return The destination address prefixes. CIDR or destination IP ranges.
*
*/
public List destinations() {
return 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 Default rule flag.
*
*/
public Optional flag() {
return Optional.ofNullable(this.flag);
}
/**
* @return Resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Whether the rule is custom or default.
* Expected value is 'Default'.
*
*/
public String kind() {
return this.kind;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return Network protocol this rule applies to.
*
*/
public String protocol() {
return this.protocol;
}
/**
* @return The provisioning state of the security configuration user rule resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The source port ranges.
*
*/
public List sourcePortRanges() {
return this.sourcePortRanges;
}
/**
* @return The CIDR or source IP ranges.
*
*/
public List sources() {
return 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(GetDefaultUserRuleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String description;
private List destinationPortRanges;
private List destinations;
private String direction;
private String etag;
private @Nullable String flag;
private String id;
private String kind;
private String name;
private String protocol;
private String provisioningState;
private List sourcePortRanges;
private List sources;
private SystemDataResponse systemData;
private String type;
public Builder() {}
public Builder(GetDefaultUserRuleResult defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.destinationPortRanges = defaults.destinationPortRanges;
this.destinations = defaults.destinations;
this.direction = defaults.direction;
this.etag = defaults.etag;
this.flag = defaults.flag;
this.id = defaults.id;
this.kind = defaults.kind;
this.name = defaults.name;
this.protocol = defaults.protocol;
this.provisioningState = defaults.provisioningState;
this.sourcePortRanges = defaults.sourcePortRanges;
this.sources = defaults.sources;
this.systemData = defaults.systemData;
this.type = defaults.type;
}
@CustomType.Setter
public Builder description(String description) {
if (description == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "description");
}
this.description = description;
return this;
}
@CustomType.Setter
public Builder destinationPortRanges(List destinationPortRanges) {
if (destinationPortRanges == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "destinationPortRanges");
}
this.destinationPortRanges = destinationPortRanges;
return this;
}
public Builder destinationPortRanges(String... destinationPortRanges) {
return destinationPortRanges(List.of(destinationPortRanges));
}
@CustomType.Setter
public Builder destinations(List destinations) {
if (destinations == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "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("GetDefaultUserRuleResult", "direction");
}
this.direction = direction;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder flag(@Nullable String flag) {
this.flag = flag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "protocol");
}
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder sourcePortRanges(List sourcePortRanges) {
if (sourcePortRanges == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "sourcePortRanges");
}
this.sourcePortRanges = sourcePortRanges;
return this;
}
public Builder sourcePortRanges(String... sourcePortRanges) {
return sourcePortRanges(List.of(sourcePortRanges));
}
@CustomType.Setter
public Builder sources(List sources) {
if (sources == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "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("GetDefaultUserRuleResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetDefaultUserRuleResult", "type");
}
this.type = type;
return this;
}
public GetDefaultUserRuleResult build() {
final var _resultValue = new GetDefaultUserRuleResult();
_resultValue.description = description;
_resultValue.destinationPortRanges = destinationPortRanges;
_resultValue.destinations = destinations;
_resultValue.direction = direction;
_resultValue.etag = etag;
_resultValue.flag = flag;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.protocol = protocol;
_resultValue.provisioningState = provisioningState;
_resultValue.sourcePortRanges = sourcePortRanges;
_resultValue.sources = sources;
_resultValue.systemData = systemData;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy