com.pulumi.alicloud.vpc.outputs.NetworkAclEntriesEgress 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 NetworkAclEntriesEgress {
private @Nullable String description;
/**
* @return The destination ip of the egress entry.
*
*/
private @Nullable String destinationCidrIp;
private @Nullable String entryType;
private @Nullable String name;
private @Nullable String policy;
private @Nullable String port;
private @Nullable String protocol;
private NetworkAclEntriesEgress() {}
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The destination ip of the egress entry.
*
*/
public Optional destinationCidrIp() {
return Optional.ofNullable(this.destinationCidrIp);
}
public Optional entryType() {
return Optional.ofNullable(this.entryType);
}
public Optional name() {
return Optional.ofNullable(this.name);
}
public Optional policy() {
return Optional.ofNullable(this.policy);
}
public Optional port() {
return Optional.ofNullable(this.port);
}
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkAclEntriesEgress defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private @Nullable String destinationCidrIp;
private @Nullable String entryType;
private @Nullable String name;
private @Nullable String policy;
private @Nullable String port;
private @Nullable String protocol;
public Builder() {}
public Builder(NetworkAclEntriesEgress defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.destinationCidrIp = defaults.destinationCidrIp;
this.entryType = defaults.entryType;
this.name = defaults.name;
this.policy = defaults.policy;
this.port = defaults.port;
this.protocol = defaults.protocol;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder destinationCidrIp(@Nullable String destinationCidrIp) {
this.destinationCidrIp = destinationCidrIp;
return this;
}
@CustomType.Setter
public Builder entryType(@Nullable String entryType) {
this.entryType = entryType;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
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;
}
public NetworkAclEntriesEgress build() {
final var _resultValue = new NetworkAclEntriesEgress();
_resultValue.description = description;
_resultValue.destinationCidrIp = destinationCidrIp;
_resultValue.entryType = entryType;
_resultValue.name = name;
_resultValue.policy = policy;
_resultValue.port = port;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}