public static final class SourceInfo.Builder extends Object
SourceInfo
.Constructor and Description |
---|
SourceInfo.Builder(SourceType type)
Constructor with parameters for the required properties of
SourceInfo . |
Modifier and Type | Method and Description |
---|---|
SourceInfo |
build() |
SourceInfo.Builder |
setFileName(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(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(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 SourceInfo.Builder(SourceType type)
SourceInfo
.public SourceInfo.Builder setFileName(String fileName)
getType()
is SourceType.FILE
.fileName
- New value for the property.public SourceInfo.Builder setRemoteAddr(String remoteAddr)
getType()
is SourceType.REMOTE
.remoteAddr
- New value for the property.public SourceInfo.Builder setMsgProtocol(String msgProtocol)
getType()
is SourceType.REMOTE
.msgProtocol
- New value for the property.public SourceInfo build()
Copyright © 2016. All Rights Reserved.