com.pulumi.aws.gamelift.outputs.FleetEc2InboundPermission Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.gamelift.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class FleetEc2InboundPermission {
/**
* @return Starting value for a range of allowed port numbers.
*
*/
private Integer fromPort;
/**
* @return Range of allowed IP addresses expressed in CIDR notationE.g., `000.000.000.000/[subnet mask]` or `0.0.0.0/[subnet mask]`.
*
*/
private String ipRange;
/**
* @return Network communication protocol used by the fleetE.g., `TCP` or `UDP`
*
*/
private String protocol;
/**
* @return Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than `from_port`.
*
*/
private Integer toPort;
private FleetEc2InboundPermission() {}
/**
* @return Starting value for a range of allowed port numbers.
*
*/
public Integer fromPort() {
return this.fromPort;
}
/**
* @return Range of allowed IP addresses expressed in CIDR notationE.g., `000.000.000.000/[subnet mask]` or `0.0.0.0/[subnet mask]`.
*
*/
public String ipRange() {
return this.ipRange;
}
/**
* @return Network communication protocol used by the fleetE.g., `TCP` or `UDP`
*
*/
public String protocol() {
return this.protocol;
}
/**
* @return Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than `from_port`.
*
*/
public Integer toPort() {
return this.toPort;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FleetEc2InboundPermission defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer fromPort;
private String ipRange;
private String protocol;
private Integer toPort;
public Builder() {}
public Builder(FleetEc2InboundPermission defaults) {
Objects.requireNonNull(defaults);
this.fromPort = defaults.fromPort;
this.ipRange = defaults.ipRange;
this.protocol = defaults.protocol;
this.toPort = defaults.toPort;
}
@CustomType.Setter
public Builder fromPort(Integer fromPort) {
if (fromPort == null) {
throw new MissingRequiredPropertyException("FleetEc2InboundPermission", "fromPort");
}
this.fromPort = fromPort;
return this;
}
@CustomType.Setter
public Builder ipRange(String ipRange) {
if (ipRange == null) {
throw new MissingRequiredPropertyException("FleetEc2InboundPermission", "ipRange");
}
this.ipRange = ipRange;
return this;
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("FleetEc2InboundPermission", "protocol");
}
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder toPort(Integer toPort) {
if (toPort == null) {
throw new MissingRequiredPropertyException("FleetEc2InboundPermission", "toPort");
}
this.toPort = toPort;
return this;
}
public FleetEc2InboundPermission build() {
final var _resultValue = new FleetEc2InboundPermission();
_resultValue.fromPort = fromPort;
_resultValue.ipRange = ipRange;
_resultValue.protocol = protocol;
_resultValue.toPort = toPort;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy