Class IngressRule.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.IngressRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IngressRule>
- Enclosing interface:
IngressRule
@Stability(Experimental)
public static final class IngressRule.Builder
extends Object
implements software.amazon.jsii.Builder<IngressRule>
A builder for
IngressRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofIngressRule.getPort()
Sets the value ofIngressRule.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
port
Sets the value ofIngressRule.getPort()
- Parameters:
port
- The port range used for ingress traffic. This parameter is required.- Returns:
this
-
source
Sets the value ofIngressRule.getSource()
- Parameters:
source
- A range of allowed IP addresses . This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IngressRule>
- Returns:
- a new instance of
IngressRule
- Throws:
NullPointerException
- if any required attribute was not provided
-