Class LoadBalancerListenerContextQuery.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.LoadBalancerListenerContextQuery.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoadBalancerListenerContextQuery>
- Enclosing interface:
- LoadBalancerListenerContextQuery
@Stability(Stable) public static final class LoadBalancerListenerContextQuery.Builder extends Object implements software.amazon.jsii.Builder<LoadBalancerListenerContextQuery>
A builder forLoadBalancerListenerContextQuery
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
listenerArn
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder listenerArn(String listenerArn)
Sets the value ofLoadBalancerListenerContextQuery.getListenerArn()- Parameters:
listenerArn- Find by listener's arn.- Returns:
this
-
listenerPort
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder listenerPort(Number listenerPort)
Sets the value ofLoadBalancerListenerContextQuery.getListenerPort()- Parameters:
listenerPort- Filter listeners by listener port.- Returns:
this
-
listenerProtocol
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder listenerProtocol(LoadBalancerListenerProtocol listenerProtocol)
Sets the value ofLoadBalancerListenerContextQuery.getListenerProtocol()- Parameters:
listenerProtocol- Filter by listener protocol.- Returns:
this
-
loadBalancerType
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder loadBalancerType(LoadBalancerType loadBalancerType)
Sets the value ofLoadBalancerFilter.getLoadBalancerType()- Parameters:
loadBalancerType- Filter load balancers by their type. This parameter is required.- Returns:
this
-
loadBalancerArn
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder loadBalancerArn(String loadBalancerArn)
Sets the value ofLoadBalancerFilter.getLoadBalancerArn()- Parameters:
loadBalancerArn- Find by load balancer's ARN.- Returns:
this
-
loadBalancerTags
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder loadBalancerTags(List<? extends Tag> loadBalancerTags)
Sets the value ofLoadBalancerFilter.getLoadBalancerTags()- Parameters:
loadBalancerTags- Match load balancer tags.- Returns:
this
-
account
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder account(String account)
Sets the value ofContextLookupRoleOptions.getAccount()- Parameters:
account- Query account. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder region(String region)
Sets the value ofContextLookupRoleOptions.getRegion()- Parameters:
region- Query region. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder assumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)
Sets the value ofContextLookupRoleOptions.getAssumeRoleAdditionalOptions()- Parameters:
assumeRoleAdditionalOptions- Additional options to pass to STS when assuming the lookup role.RoleArnshould not be used. Use the dedicatedlookupRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedlookupRoleExternalIdinstead.
- Returns:
this
-
lookupRoleArn
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder lookupRoleArn(String lookupRoleArn)
Sets the value ofContextLookupRoleOptions.getLookupRoleArn()- Parameters:
lookupRoleArn- The ARN of the role that should be used to look up the missing values.- Returns:
this
-
lookupRoleExternalId
@Stability(Stable) public LoadBalancerListenerContextQuery.Builder lookupRoleExternalId(String lookupRoleExternalId)
Sets the value ofContextLookupRoleOptions.getLookupRoleExternalId()- Parameters:
lookupRoleExternalId- The ExternalId that needs to be supplied while assuming this role.- Returns:
this
-
build
@Stability(Stable) public LoadBalancerListenerContextQuery build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoadBalancerListenerContextQuery>- Returns:
- a new instance of
LoadBalancerListenerContextQuery - Throws:
NullPointerException- if any required attribute was not provided
-
-