com.splunk
Class ModularInputKind
java.lang.Object
com.splunk.Resource
com.splunk.Entity
com.splunk.ModularInputKind
- All Implemented Interfaces:
- java.util.Map<java.lang.String,java.lang.Object>
public class ModularInputKind
- extends Entity
The ModularInputKind
class represents a particular modular input.
The actual inputs of this kind can be accessed from the
InputCollection
object.
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Field Summary |
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
args
|
Method Summary |
ModularInputKindArgument |
getArgument(java.lang.String argumentName)
Returns a map-like object representing a particular argument of this
modular input kind. |
java.util.Map<java.lang.String,ModularInputKindArgument> |
getArguments()
Returns an argument map that contains the argument names as keys, and the
ModularInputKindArgument s as corresponding values. |
java.lang.String |
getDescription()
Returns the description of this modular input kind. |
java.lang.String |
getStreamingMode()
Returns the streaming mode of this modular input kind. |
java.lang.String |
getTitle()
Returns the title of this modular input kind, which is also displayed in
Splunk Web (rather than the name used in the REST API). |
boolean |
hasArgument(java.lang.String argumentName)
Indicates whether this modular input kind has a given argument. |
Methods inherited from class com.splunk.Entity |
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, update, validate, values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
args
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> args
getArguments
public java.util.Map<java.lang.String,ModularInputKindArgument> getArguments()
- Returns an argument map that contains the argument names as keys, and the
ModularInputKindArgument
s as corresponding values.
- Returns:
- A
Map
containing the argument key-value pairs.
getStreamingMode
public java.lang.String getStreamingMode()
- Returns the streaming mode of this modular input kind.
- Returns:
- The streaming mode ("xml" or "simple").
getArgument
public ModularInputKindArgument getArgument(java.lang.String argumentName)
- Returns a map-like object representing a particular argument of this
modular input kind.
- Parameters:
argumentName
- The name of the argument to retrieve.
- Returns:
- A
ModularInputKindArgument
object representing the given
argument, or null
if the argument does not exist.
getDescription
public java.lang.String getDescription()
- Returns the description of this modular input kind.
- Returns:
- A string containing the description.
getTitle
public java.lang.String getTitle()
- Returns the title of this modular input kind, which is also displayed in
Splunk Web (rather than the name used in the REST API).
- Overrides:
getTitle
in class Resource
- Returns:
- A string containing the title.
hasArgument
public boolean hasArgument(java.lang.String argumentName)
- Indicates whether this modular input kind has a given argument.
- Parameters:
argumentName
- The argument to look up.
- Returns:
true
if the argument exists, false
if not.