Class HostedZoneContextQuery.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.HostedZoneContextQuery.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HostedZoneContextQuery>
- Enclosing interface:
- HostedZoneContextQuery
@Stability(Stable) public static final class HostedZoneContextQuery.Builder extends Object implements software.amazon.jsii.Builder<HostedZoneContextQuery>
A builder forHostedZoneContextQuery
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
domainName
@Stability(Stable) public HostedZoneContextQuery.Builder domainName(String domainName)
Sets the value ofHostedZoneContextQuery.getDomainName()- Parameters:
domainName- The domain name e.g. example.com to lookup. This parameter is required.- Returns:
this
-
privateZone
@Stability(Stable) public HostedZoneContextQuery.Builder privateZone(Boolean privateZone)
Sets the value ofHostedZoneContextQuery.getPrivateZone()- Parameters:
privateZone- True if the zone you want to find is a private hosted zone.- Returns:
this
-
vpcId
@Stability(Stable) public HostedZoneContextQuery.Builder vpcId(String vpcId)
Sets the value ofHostedZoneContextQuery.getVpcId()- Parameters:
vpcId- The VPC ID to that the private zone must be associated with. If you provide VPC ID and privateZone is false, this will return no results and raise an error.- Returns:
this
-
account
@Stability(Stable) public HostedZoneContextQuery.Builder account(String account)
Sets the value ofContextLookupRoleOptions.getAccount()- Parameters:
account- Query account. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public HostedZoneContextQuery.Builder region(String region)
Sets the value ofContextLookupRoleOptions.getRegion()- Parameters:
region- Query region. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public HostedZoneContextQuery.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 HostedZoneContextQuery.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 HostedZoneContextQuery.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 HostedZoneContextQuery build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HostedZoneContextQuery>- Returns:
- a new instance of
HostedZoneContextQuery - Throws:
NullPointerException- if any required attribute was not provided
-
-