com.splunk
Class ModularInputKind

java.lang.Object
  extended by com.splunk.Resource
      extended by com.splunk.Entity
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
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 ModularInputKindArguments 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
clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, keySet, put, putAll, refresh, remove, remove, size, update, update, validate, values
 
Methods inherited from class com.splunk.Resource
getName, getPath, getService, invalidate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Method Detail

getArguments

public java.util.Map<java.lang.String,ModularInputKindArgument> getArguments()
Returns an argument map that contains the argument names as keys, and the ModularInputKindArguments 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.