Class PillarExact
- java.lang.Object
-
- com.suse.salt.netapi.datatypes.target.PillarExact
-
-
Field Summary
Fields Modifier and Type Field Description static char
DEFAULT_DELIMITER
protected char
delimiter
protected String
key
protected T
target
protected TargetType
type
protected String
value
-
Constructor Summary
Constructors Constructor Description PillarExact(String target)
Creates a pillar matcherPillarExact(String target, char delimiter)
Creates a pillar matcherPillarExact(String pillar, String value)
Creates a pillar matcherPillarExact(String pillar, String value, char delimiter)
Creates a pillar matcher
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
getDelimiter()
String
getKey()
Map<String,Object>
getProps()
T
getTarget()
TargetType
getType()
String
getValue()
-
-
-
Field Detail
-
DEFAULT_DELIMITER
public static final char DEFAULT_DELIMITER
- See Also:
- Constant Field Values
-
key
protected final String key
-
value
protected final String value
-
delimiter
protected final char delimiter
-
target
protected final T target
-
type
protected final TargetType type
-
-
Constructor Detail
-
PillarExact
public PillarExact(String target)
Creates a pillar matcher- Parameters:
target
- the targeting expression
-
PillarExact
public PillarExact(String target, char delimiter)
Creates a pillar matcher- Parameters:
target
- the targeting expressiondelimiter
- the character to delimit nesting in the grain name
-
PillarExact
public PillarExact(String pillar, String value)
Creates a pillar matcher- Parameters:
pillar
- the pillar namevalue
- the value to match
-
-
Method Detail
-
getKey
public String getKey()
- Returns:
- the grain name of this matcher
-
getValue
public String getValue()
- Returns:
- the value to match the grain
-
getDelimiter
public char getDelimiter()
- Returns:
- the delimiter used by this target
-
getProps
public Map<String,Object> getProps()
- Returns:
- a map of items to include in the API call payload This will include the 'delimiter' key if not using the default delimiter.
-
getTarget
public T getTarget()
-
getType
public TargetType getType()
-
-