public class UnionTypeBuilder<P extends TypeBuilder> extends AbstractBuilder<UnionType> implements TypeBuilder<UnionType>, WithAnnotation<UnionTypeBuilder>
annotations, format| Modifier | Constructor and Description |
|---|---|
protected |
UnionTypeBuilder(MetadataFormat format) |
| Modifier and Type | Method and Description |
|---|---|
UnionType |
build() |
UnionTypeBuilder<P> |
id(String typeIdentifier) |
BaseTypeBuilder<UnionTypeBuilder<P>> |
of() |
UnionTypeBuilder<P> |
of(MetadataType type) |
UnionTypeBuilder<P> |
of(TypeBuilder<?> builder) |
UnionTypeBuilder<P> |
with(TypeAnnotation extension)
Contributes a builder with
TypeAnnotations |
addExtensionprotected UnionTypeBuilder(MetadataFormat format)
public BaseTypeBuilder<UnionTypeBuilder<P>> of()
public UnionTypeBuilder<P> of(TypeBuilder<?> builder)
public UnionTypeBuilder<P> of(MetadataType type)
public UnionTypeBuilder<P> id(String typeIdentifier)
public UnionTypeBuilder<P> with(TypeAnnotation extension)
WithAnnotationTypeAnnotationswith in interface WithAnnotation<UnionTypeBuilder>extension - TypeAnnotation to addpublic UnionType build()
build in interface TypeBuilder<UnionType>Copyright © 2016 MuleSoft, Inc.. All rights reserved.