Class ProtectionReference.Builder
java.lang.Object
software.amazon.awscdk.services.shield.ProtectionReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProtectionReference>
- Enclosing interface:
ProtectionReference
@Stability(Stable)
public static final class ProtectionReference.Builder
extends Object
implements software.amazon.jsii.Builder<ProtectionReference>
A builder for
ProtectionReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.protectionArn(String protectionArn) Sets the value ofProtectionReference.getProtectionArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
protectionArn
Sets the value ofProtectionReference.getProtectionArn()- Parameters:
protectionArn- The ProtectionArn of the Protection resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ProtectionReference>- Returns:
- a new instance of
ProtectionReference - Throws:
NullPointerException- if any required attribute was not provided
-