com.pulumi.azurenative.network.outputs.GetUserRuleResult 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 GetUserRuleResult {
/**
* @return A description for this rule.
*
*/
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 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 @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 GetUserRuleResult() {}
/**
* @return A description for this rule.
*
*/
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 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 == 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(GetUserRuleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
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 String protocol;
private String provisioningState;
private @Nullable List sourcePortRanges;
private @Nullable List sources;
private SystemDataResponse systemData;
private String type;
public Builder() {}
public Builder(GetUserRuleResult 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.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(@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("GetUserRuleResult", "direction");
}
this.direction = direction;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetUserRuleResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetUserRuleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("GetUserRuleResult", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetUserRuleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("GetUserRuleResult", "protocol");
}
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetUserRuleResult", "provisioningState");
}
this.provisioningState = provisioningState;
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("GetUserRuleResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetUserRuleResult", "type");
}
this.type = type;
return this;
}
public GetUserRuleResult build() {
final var _resultValue = new GetUserRuleResult();
_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.protocol = protocol;
_resultValue.provisioningState = provisioningState;
_resultValue.sourcePortRanges = sourcePortRanges;
_resultValue.sources = sources;
_resultValue.systemData = systemData;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy