Class BrokerReference.Builder
java.lang.Object
software.amazon.awscdk.services.amazonmq.BrokerReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BrokerReference>
- Enclosing interface:
BrokerReference
@Stability(Stable)
public static final class BrokerReference.Builder
extends Object
implements software.amazon.jsii.Builder<BrokerReference>
A builder for
BrokerReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofBrokerReference.getBrokerArn()
Sets the value ofBrokerReference.getBrokerId()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
brokerArn
Sets the value ofBrokerReference.getBrokerArn()
- Parameters:
brokerArn
- The ARN of the Broker resource. This parameter is required.- Returns:
this
-
brokerId
Sets the value ofBrokerReference.getBrokerId()
- Parameters:
brokerId
- The Id of the Broker resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BrokerReference>
- Returns:
- a new instance of
BrokerReference
- Throws:
NullPointerException
- if any required attribute was not provided
-