com.pulumi.azurenative.network.outputs.AzureFirewallApplicationRuleResponse 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.
The newest version!
// *** 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.AzureFirewallApplicationRuleProtocolResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AzureFirewallApplicationRuleResponse {
/**
* @return Description of the rule.
*
*/
private @Nullable String description;
/**
* @return List of FQDN Tags for this rule.
*
*/
private @Nullable List fqdnTags;
/**
* @return Name of the application rule.
*
*/
private @Nullable String name;
/**
* @return Array of ApplicationRuleProtocols.
*
*/
private @Nullable List protocols;
/**
* @return List of source IP addresses for this rule.
*
*/
private @Nullable List sourceAddresses;
/**
* @return List of source IpGroups for this rule.
*
*/
private @Nullable List sourceIpGroups;
/**
* @return List of FQDNs for this rule.
*
*/
private @Nullable List targetFqdns;
private AzureFirewallApplicationRuleResponse() {}
/**
* @return Description of the rule.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return List of FQDN Tags for this rule.
*
*/
public List fqdnTags() {
return this.fqdnTags == null ? List.of() : this.fqdnTags;
}
/**
* @return Name of the application rule.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Array of ApplicationRuleProtocols.
*
*/
public List protocols() {
return this.protocols == null ? List.of() : this.protocols;
}
/**
* @return List of source IP addresses for this rule.
*
*/
public List sourceAddresses() {
return this.sourceAddresses == null ? List.of() : this.sourceAddresses;
}
/**
* @return List of source IpGroups for this rule.
*
*/
public List sourceIpGroups() {
return this.sourceIpGroups == null ? List.of() : this.sourceIpGroups;
}
/**
* @return List of FQDNs for this rule.
*
*/
public List targetFqdns() {
return this.targetFqdns == null ? List.of() : this.targetFqdns;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AzureFirewallApplicationRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private @Nullable List fqdnTags;
private @Nullable String name;
private @Nullable List protocols;
private @Nullable List sourceAddresses;
private @Nullable List sourceIpGroups;
private @Nullable List targetFqdns;
public Builder() {}
public Builder(AzureFirewallApplicationRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.fqdnTags = defaults.fqdnTags;
this.name = defaults.name;
this.protocols = defaults.protocols;
this.sourceAddresses = defaults.sourceAddresses;
this.sourceIpGroups = defaults.sourceIpGroups;
this.targetFqdns = defaults.targetFqdns;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder fqdnTags(@Nullable List fqdnTags) {
this.fqdnTags = fqdnTags;
return this;
}
public Builder fqdnTags(String... fqdnTags) {
return fqdnTags(List.of(fqdnTags));
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder protocols(@Nullable List protocols) {
this.protocols = protocols;
return this;
}
public Builder protocols(AzureFirewallApplicationRuleProtocolResponse... protocols) {
return protocols(List.of(protocols));
}
@CustomType.Setter
public Builder sourceAddresses(@Nullable List sourceAddresses) {
this.sourceAddresses = sourceAddresses;
return this;
}
public Builder sourceAddresses(String... sourceAddresses) {
return sourceAddresses(List.of(sourceAddresses));
}
@CustomType.Setter
public Builder sourceIpGroups(@Nullable List sourceIpGroups) {
this.sourceIpGroups = sourceIpGroups;
return this;
}
public Builder sourceIpGroups(String... sourceIpGroups) {
return sourceIpGroups(List.of(sourceIpGroups));
}
@CustomType.Setter
public Builder targetFqdns(@Nullable List targetFqdns) {
this.targetFqdns = targetFqdns;
return this;
}
public Builder targetFqdns(String... targetFqdns) {
return targetFqdns(List.of(targetFqdns));
}
public AzureFirewallApplicationRuleResponse build() {
final var _resultValue = new AzureFirewallApplicationRuleResponse();
_resultValue.description = description;
_resultValue.fqdnTags = fqdnTags;
_resultValue.name = name;
_resultValue.protocols = protocols;
_resultValue.sourceAddresses = sourceAddresses;
_resultValue.sourceIpGroups = sourceIpGroups;
_resultValue.targetFqdns = targetFqdns;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy