public class DefaultImportedResourceBuilder extends Object implements ImportedResourceBuilder
| Constructor and Description |
|---|
DefaultImportedResourceBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ImportedResource |
build()
Builds the target imported resource.
|
ImportedResourceBuilder |
withMetadata(ComponentMetadataAst metadata)
Sets the imported resource metadata to the builder.
|
ImportedResourceBuilder |
withResolutionFailure(String failureMessage)
Sets the failure caused when resolving this import, if resolution failed.
|
ImportedResourceBuilder |
withResourceLocation(String resourceLocation)
Sets the imported resource name to the builder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderpublic ImportedResourceBuilder withResourceLocation(String resourceLocation)
ImportedResourceBuilderwithResourceLocation in interface ImportedResourceBuilderresourceLocation - the resource location.public ImportedResourceBuilder withMetadata(ComponentMetadataAst metadata)
ImportedResourceBuilderwithMetadata in interface ImportedResourceBuildermetadata - the component metadata.public ImportedResourceBuilder withResolutionFailure(String failureMessage)
ImportedResourceBuilderwithResolutionFailure in interface ImportedResourceBuilderfailureMessage - a message explaining why the import resolution failed.public ImportedResource build()
ImportedResourceBuilderbuild in interface ImportedResourceBuilderCopyright © 2022 MuleSoft, Inc.. All rights reserved.