Package software.amazon.awscdk.cxapi
Class SecurityGroupContextResponse.Builder
java.lang.Object
software.amazon.awscdk.cxapi.SecurityGroupContextResponse.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecurityGroupContextResponse>
- Enclosing interface:
- SecurityGroupContextResponse
@Stability(Stable)
public static final class SecurityGroupContextResponse.Builder
extends Object
implements software.amazon.jsii.Builder<SecurityGroupContextResponse>
A builder for
SecurityGroupContextResponse-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowAllOutbound(Boolean allowAllOutbound) Sets the value ofSecurityGroupContextResponse.getAllowAllOutbound()build()Builds the configured instance.securityGroupId(String securityGroupId) Sets the value ofSecurityGroupContextResponse.getSecurityGroupId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowAllOutbound
@Stability(Stable) public SecurityGroupContextResponse.Builder allowAllOutbound(Boolean allowAllOutbound) Sets the value ofSecurityGroupContextResponse.getAllowAllOutbound()- Parameters:
allowAllOutbound- Whether the security group allows all outbound traffic. This parameter is required. This will be true when the security group has all-protocol egress permissions to access both0.0.0.0/0and::/0.- Returns:
this
-
securityGroupId
@Stability(Stable) public SecurityGroupContextResponse.Builder securityGroupId(String securityGroupId) Sets the value ofSecurityGroupContextResponse.getSecurityGroupId()- Parameters:
securityGroupId- The security group's id. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecurityGroupContextResponse>- Returns:
- a new instance of
SecurityGroupContextResponse - Throws:
NullPointerException- if any required attribute was not provided
-