public static final class SourceInfo.Builder
extends java.lang.Object
SourceInfo
.Constructor and Description |
---|
Builder(SourceType type)
Constructor with parameters for the required properties of
SourceInfo . |
Modifier and Type | Method and Description |
---|---|
SourceInfo |
build() |
SourceInfo.Builder |
setFileName(java.lang.String fileName)
Name of the metadata source file
This property is optional and it is only relevant when the value of
getType() is SourceType.FILE . |
SourceInfo.Builder |
setMsgProtocol(java.lang.String msgProtocol)
Message protocol to be used
This property is optional and it is only relevant when the value of
getType() is SourceType.REMOTE . |
SourceInfo.Builder |
setRemoteAddr(java.lang.String remoteAddr)
Address of the remote metadata source
This property is optional and it is only relevant when the value of
getType() is SourceType.REMOTE . |
public Builder(SourceType type)
SourceInfo
.public SourceInfo.Builder setFileName(java.lang.String fileName)
getType()
is SourceType.FILE
.fileName
- New value for the property.public SourceInfo.Builder setRemoteAddr(java.lang.String remoteAddr)
getType()
is SourceType.REMOTE
.remoteAddr
- New value for the property.public SourceInfo.Builder setMsgProtocol(java.lang.String msgProtocol)
getType()
is SourceType.REMOTE
.msgProtocol
- New value for the property.public SourceInfo build()