com.pulumi.alicloud.ecs.outputs.DedicatedHostNetworkAttribute 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.ecs.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DedicatedHostNetworkAttribute {
/**
* @return The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds. Valid values: 15 to 310.
*
*/
private @Nullable Integer slbUdpTimeout;
/**
* @return The timeout period for a UDP session between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds. Valid values: 15 to 310.
*
*/
private @Nullable Integer udpTimeout;
private DedicatedHostNetworkAttribute() {}
/**
* @return The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds. Valid values: 15 to 310.
*
*/
public Optional slbUdpTimeout() {
return Optional.ofNullable(this.slbUdpTimeout);
}
/**
* @return The timeout period for a UDP session between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds. Valid values: 15 to 310.
*
*/
public Optional udpTimeout() {
return Optional.ofNullable(this.udpTimeout);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DedicatedHostNetworkAttribute defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer slbUdpTimeout;
private @Nullable Integer udpTimeout;
public Builder() {}
public Builder(DedicatedHostNetworkAttribute defaults) {
Objects.requireNonNull(defaults);
this.slbUdpTimeout = defaults.slbUdpTimeout;
this.udpTimeout = defaults.udpTimeout;
}
@CustomType.Setter
public Builder slbUdpTimeout(@Nullable Integer slbUdpTimeout) {
this.slbUdpTimeout = slbUdpTimeout;
return this;
}
@CustomType.Setter
public Builder udpTimeout(@Nullable Integer udpTimeout) {
this.udpTimeout = udpTimeout;
return this;
}
public DedicatedHostNetworkAttribute build() {
final var _resultValue = new DedicatedHostNetworkAttribute();
_resultValue.slbUdpTimeout = slbUdpTimeout;
_resultValue.udpTimeout = udpTimeout;
return _resultValue;
}
}
}