Class CfnServer.EndpointDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServer.EndpointDetailsProperty>
- Enclosing interface:
- CfnServer.EndpointDetailsProperty
CfnServer.EndpointDetailsProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressAllocationIds
(List<String> addressAllocationIds) Sets the value ofCfnServer.EndpointDetailsProperty.getAddressAllocationIds()
build()
Builds the configured instance.securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnServer.EndpointDetailsProperty.getSecurityGroupIds()
Sets the value ofCfnServer.EndpointDetailsProperty.getSubnetIds()
vpcEndpointId
(String vpcEndpointId) Sets the value ofCfnServer.EndpointDetailsProperty.getVpcEndpointId()
Sets the value ofCfnServer.EndpointDetailsProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addressAllocationIds
@Stability(Stable) public CfnServer.EndpointDetailsProperty.Builder addressAllocationIds(List<String> addressAllocationIds) Sets the value ofCfnServer.EndpointDetailsProperty.getAddressAllocationIds()
- Parameters:
addressAllocationIds
- A list of address allocation IDs that are required to attach an Elastic IP address to your server's endpoint.This property can only be set when
EndpointType
is set toVPC
and it is only valid in theUpdateServer
API.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnServer.EndpointDetailsProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnServer.EndpointDetailsProperty.getSecurityGroupIds()
- Parameters:
securityGroupIds
- A list of security groups IDs that are available to attach to your server's endpoint.This property can only be set when
EndpointType
is set toVPC
.You can edit the
SecurityGroupIds
property in the UpdateServer API only if you are changing theEndpointType
fromPUBLIC
orVPC_ENDPOINT
toVPC
. To change security groups associated with your server's VPC endpoint after creation, use the Amazon EC2 ModifyVpcEndpoint API.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnServer.EndpointDetailsProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnServer.EndpointDetailsProperty.getSubnetIds()
- Parameters:
subnetIds
- A list of subnet IDs that are required to host your server endpoint in your VPC.This property can only be set when
EndpointType
is set toVPC
.- Returns:
this
-
vpcEndpointId
@Stability(Stable) public CfnServer.EndpointDetailsProperty.Builder vpcEndpointId(String vpcEndpointId) Sets the value ofCfnServer.EndpointDetailsProperty.getVpcEndpointId()
- Parameters:
vpcEndpointId
- The ID of the VPC endpoint.This property can only be set when
EndpointType
is set toVPC_ENDPOINT
.- Returns:
this
-
vpcId
Sets the value ofCfnServer.EndpointDetailsProperty.getVpcId()
- Parameters:
vpcId
- The VPC ID of the virtual private cloud in which the server's endpoint will be hosted.This property can only be set when
EndpointType
is set toVPC
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnServer.EndpointDetailsProperty>
- Returns:
- a new instance of
CfnServer.EndpointDetailsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-