com.pulumi.alicloud.vpc.outputs.NetworkAclIngressAclEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.vpc.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NetworkAclIngressAclEntry {
/**
* @return Description of the inbound rule. The description must be 1 to 256 characters in length and cannot start with http:// or https.
*
*/
private @Nullable String description;
/**
* @return The route entry type. The value can be `custom`, indicating custom.
*
*/
private @Nullable String entryType;
/**
* @return The IP protocol version of the route entry. Valid values: "IPV4" and "IPV6'.
*
*/
private @Nullable String ipVersion;
/**
* @return The name of the inbound rule entry. The name must be 1 to 128 characters in length and cannot start with http:// or https.
*
*/
private @Nullable String networkAclEntryName;
/**
* @return Authorization policy. Value:
* - accept: Allow.
* - drop: Refused.
*
*/
private @Nullable String policy;
/**
* @return The source port range of the inbound rule. When the Protocol type of the inbound rule is all, icmp, or gre, the port range is - 1/-1, indicating that the port is not restricted. When the Protocol type of the inbound rule is tcp or udp, the port range is 1 to 65535, and the format is 1/200 or 80/80, indicating port 1 to port 200 or port 80.
*
*/
private @Nullable String port;
/**
* @return The protocol type. Value:
* - icmp: Network Control Message Protocol.
* - gre: Generic Routing Encapsulation Protocol.
* - tcp: Transmission Control Protocol.
* - udp: User Datagram Protocol.
* - all: Supports all protocols.
*
*/
private @Nullable String protocol;
/**
* @return Source address network segment.
*
*/
private @Nullable String sourceCidrIp;
private NetworkAclIngressAclEntry() {}
/**
* @return Description of the inbound rule. The description must be 1 to 256 characters in length and cannot start with http:// or https.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The route entry type. The value can be `custom`, indicating custom.
*
*/
public Optional entryType() {
return Optional.ofNullable(this.entryType);
}
/**
* @return The IP protocol version of the route entry. Valid values: "IPV4" and "IPV6'.
*
*/
public Optional ipVersion() {
return Optional.ofNullable(this.ipVersion);
}
/**
* @return The name of the inbound rule entry. The name must be 1 to 128 characters in length and cannot start with http:// or https.
*
*/
public Optional networkAclEntryName() {
return Optional.ofNullable(this.networkAclEntryName);
}
/**
* @return Authorization policy. Value:
* - accept: Allow.
* - drop: Refused.
*
*/
public Optional policy() {
return Optional.ofNullable(this.policy);
}
/**
* @return The source port range of the inbound rule. When the Protocol type of the inbound rule is all, icmp, or gre, the port range is - 1/-1, indicating that the port is not restricted. When the Protocol type of the inbound rule is tcp or udp, the port range is 1 to 65535, and the format is 1/200 or 80/80, indicating port 1 to port 200 or port 80.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
/**
* @return The protocol type. Value:
* - icmp: Network Control Message Protocol.
* - gre: Generic Routing Encapsulation Protocol.
* - tcp: Transmission Control Protocol.
* - udp: User Datagram Protocol.
* - all: Supports all protocols.
*
*/
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
/**
* @return Source address network segment.
*
*/
public Optional sourceCidrIp() {
return Optional.ofNullable(this.sourceCidrIp);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkAclIngressAclEntry defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private @Nullable String entryType;
private @Nullable String ipVersion;
private @Nullable String networkAclEntryName;
private @Nullable String policy;
private @Nullable String port;
private @Nullable String protocol;
private @Nullable String sourceCidrIp;
public Builder() {}
public Builder(NetworkAclIngressAclEntry defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.entryType = defaults.entryType;
this.ipVersion = defaults.ipVersion;
this.networkAclEntryName = defaults.networkAclEntryName;
this.policy = defaults.policy;
this.port = defaults.port;
this.protocol = defaults.protocol;
this.sourceCidrIp = defaults.sourceCidrIp;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder entryType(@Nullable String entryType) {
this.entryType = entryType;
return this;
}
@CustomType.Setter
public Builder ipVersion(@Nullable String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
@CustomType.Setter
public Builder networkAclEntryName(@Nullable String networkAclEntryName) {
this.networkAclEntryName = networkAclEntryName;
return this;
}
@CustomType.Setter
public Builder policy(@Nullable String policy) {
this.policy = policy;
return this;
}
@CustomType.Setter
public Builder port(@Nullable String port) {
this.port = port;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder sourceCidrIp(@Nullable String sourceCidrIp) {
this.sourceCidrIp = sourceCidrIp;
return this;
}
public NetworkAclIngressAclEntry build() {
final var _resultValue = new NetworkAclIngressAclEntry();
_resultValue.description = description;
_resultValue.entryType = entryType;
_resultValue.ipVersion = ipVersion;
_resultValue.networkAclEntryName = networkAclEntryName;
_resultValue.policy = policy;
_resultValue.port = port;
_resultValue.protocol = protocol;
_resultValue.sourceCidrIp = sourceCidrIp;
return _resultValue;
}
}
}