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