Class LoadBalancerTargetProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.LoadBalancerTargetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoadBalancerTargetProps>
- Enclosing interface:
LoadBalancerTargetProps
@Stability(Stable)
public static final class LoadBalancerTargetProps.Builder
extends Object
implements software.amazon.jsii.Builder<LoadBalancerTargetProps>
A builder for
LoadBalancerTargetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.targetJson
(Object targetJson) Sets the value ofLoadBalancerTargetProps.getTargetJson()
targetType
(TargetType targetType) Sets the value ofLoadBalancerTargetProps.getTargetType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetType
Sets the value ofLoadBalancerTargetProps.getTargetType()
- Parameters:
targetType
- What kind of target this is. This parameter is required.- Returns:
this
-
targetJson
Sets the value ofLoadBalancerTargetProps.getTargetJson()
- Parameters:
targetJson
- JSON representing the target's direct addition to the TargetGroup list. May be omitted if the target is going to register itself later.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LoadBalancerTargetProps>
- Returns:
- a new instance of
LoadBalancerTargetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-