Class SecurityGroupContextQuery.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.SecurityGroupContextQuery.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecurityGroupContextQuery>
- Enclosing interface:
- SecurityGroupContextQuery
@Stability(Stable) public static final class SecurityGroupContextQuery.Builder extends Object implements software.amazon.jsii.Builder<SecurityGroupContextQuery>
A builder forSecurityGroupContextQuery
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
securityGroupId
@Stability(Stable) public SecurityGroupContextQuery.Builder securityGroupId(String securityGroupId)
Sets the value ofSecurityGroupContextQuery.getSecurityGroupId()- Parameters:
securityGroupId- Security group id.- Returns:
this
-
securityGroupName
@Stability(Stable) public SecurityGroupContextQuery.Builder securityGroupName(String securityGroupName)
Sets the value ofSecurityGroupContextQuery.getSecurityGroupName()- Parameters:
securityGroupName- Security group name.- Returns:
this
-
vpcId
@Stability(Stable) public SecurityGroupContextQuery.Builder vpcId(String vpcId)
Sets the value ofSecurityGroupContextQuery.getVpcId()- Parameters:
vpcId- VPC ID.- Returns:
this
-
account
@Stability(Stable) public SecurityGroupContextQuery.Builder account(String account)
Sets the value ofContextLookupRoleOptions.getAccount()- Parameters:
account- Query account. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public SecurityGroupContextQuery.Builder region(String region)
Sets the value ofContextLookupRoleOptions.getRegion()- Parameters:
region- Query region. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public SecurityGroupContextQuery.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 SecurityGroupContextQuery.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 SecurityGroupContextQuery.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 SecurityGroupContextQuery build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecurityGroupContextQuery>- Returns:
- a new instance of
SecurityGroupContextQuery - Throws:
NullPointerException- if any required attribute was not provided
-
-