Class CfnServiceNetworkServiceAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnServiceNetworkServiceAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceNetworkServiceAssociationProps>
- Enclosing interface:
CfnServiceNetworkServiceAssociationProps
@Stability(Stable)
public static final class CfnServiceNetworkServiceAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceNetworkServiceAssociationProps>
A builder for
CfnServiceNetworkServiceAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dnsEntry(IResolvable dnsEntry) Sets the value ofCfnServiceNetworkServiceAssociationProps.getDnsEntry()Sets the value ofCfnServiceNetworkServiceAssociationProps.getDnsEntry()serviceIdentifier(String serviceIdentifier) Sets the value ofCfnServiceNetworkServiceAssociationProps.getServiceIdentifier()serviceNetworkIdentifier(String serviceNetworkIdentifier) Sets the value ofCfnServiceNetworkServiceAssociationProps.getServiceNetworkIdentifier()Sets the value ofCfnServiceNetworkServiceAssociationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsEntry
@Stability(Stable) public CfnServiceNetworkServiceAssociationProps.Builder dnsEntry(IResolvable dnsEntry) Sets the value ofCfnServiceNetworkServiceAssociationProps.getDnsEntry()- Parameters:
dnsEntry- The DNS information of the service.- Returns:
this
-
dnsEntry
@Stability(Stable) public CfnServiceNetworkServiceAssociationProps.Builder dnsEntry(CfnServiceNetworkServiceAssociation.DnsEntryProperty dnsEntry) Sets the value ofCfnServiceNetworkServiceAssociationProps.getDnsEntry()- Parameters:
dnsEntry- The DNS information of the service.- Returns:
this
-
serviceIdentifier
@Stability(Stable) public CfnServiceNetworkServiceAssociationProps.Builder serviceIdentifier(String serviceIdentifier) Sets the value ofCfnServiceNetworkServiceAssociationProps.getServiceIdentifier()- Parameters:
serviceIdentifier- The ID or ARN of the service.- Returns:
this
-
serviceNetworkIdentifier
@Stability(Stable) public CfnServiceNetworkServiceAssociationProps.Builder serviceNetworkIdentifier(String serviceNetworkIdentifier) Sets the value ofCfnServiceNetworkServiceAssociationProps.getServiceNetworkIdentifier()- Parameters:
serviceNetworkIdentifier- The ID or ARN of the service network. You must use an ARN if the resources are in different accounts.- Returns:
this
-
tags
@Stability(Stable) public CfnServiceNetworkServiceAssociationProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnServiceNetworkServiceAssociationProps.getTags()- Parameters:
tags- The tags for the association.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceNetworkServiceAssociationProps>- Returns:
- a new instance of
CfnServiceNetworkServiceAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-