Class VirtualRouterReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.appmesh.VirtualRouterReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VirtualRouterReference>
- Enclosing interface:
VirtualRouterReference
@Stability(Stable)
public static final class VirtualRouterReference.Builder
extends Object
implements software.amazon.jsii.Builder<VirtualRouterReference>
A builder for
VirtualRouterReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.virtualRouterArn(String virtualRouterArn) Sets the value ofVirtualRouterReference.getVirtualRouterArn()virtualRouterId(String virtualRouterId) Sets the value ofVirtualRouterReference.getVirtualRouterId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
virtualRouterArn
Sets the value ofVirtualRouterReference.getVirtualRouterArn()- Parameters:
virtualRouterArn- The ARN of the VirtualRouter resource. This parameter is required.- Returns:
this
-
virtualRouterId
Sets the value ofVirtualRouterReference.getVirtualRouterId()- Parameters:
virtualRouterId- The Id of the VirtualRouter resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VirtualRouterReference>- Returns:
- a new instance of
VirtualRouterReference - Throws:
NullPointerException- if any required attribute was not provided
-