Class CfnTrustAnchor.SourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rolesanywhere.CfnTrustAnchor.SourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrustAnchor.SourceProperty>
- Enclosing interface:
CfnTrustAnchor.SourceProperty
@Stability(Stable)
public static final class CfnTrustAnchor.SourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrustAnchor.SourceProperty>
A builder for
CfnTrustAnchor.SourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.sourceData(IResolvable sourceData) Sets the value ofCfnTrustAnchor.SourceProperty.getSourceData()sourceData(CfnTrustAnchor.SourceDataProperty sourceData) Sets the value ofCfnTrustAnchor.SourceProperty.getSourceData()sourceType(String sourceType) Sets the value ofCfnTrustAnchor.SourceProperty.getSourceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceData
Sets the value ofCfnTrustAnchor.SourceProperty.getSourceData()- Parameters:
sourceData- A union object representing the data field of the TrustAnchor depending on its type. This parameter is required.- Returns:
this
-
sourceData
@Stability(Stable) public CfnTrustAnchor.SourceProperty.Builder sourceData(CfnTrustAnchor.SourceDataProperty sourceData) Sets the value ofCfnTrustAnchor.SourceProperty.getSourceData()- Parameters:
sourceData- A union object representing the data field of the TrustAnchor depending on its type. This parameter is required.- Returns:
this
-
sourceType
Sets the value ofCfnTrustAnchor.SourceProperty.getSourceType()- Parameters:
sourceType- The type of the TrustAnchor. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrustAnchor.SourceProperty>- Returns:
- a new instance of
CfnTrustAnchor.SourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-