public static class AutoScalingConfig.TriggerConfig extends Object implements MapWriter
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
List<AutoScalingConfig.ActionConfig> |
actions
List of configured actions, never null.
|
boolean |
enabled
Enabled flag.
|
TriggerEventType |
event
Trigger event type.
|
String |
name
Trigger name.
|
Map<String,Object> |
properties
Map of additional trigger properties, never null.
|
Constructor and Description |
---|
TriggerConfig(String name,
Map<String,Object> properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
AutoScalingConfig.TriggerConfig |
withEnabled(boolean enabled)
Create a copy of this config with specified enabled flag.
|
AutoScalingConfig.TriggerConfig |
withProperty(String key,
Object value)
Create a copy of this config with specified property.
|
void |
writeMap(MapWriter.EntryWriter ew) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
public final String name
public final TriggerEventType event
public final boolean enabled
public final List<AutoScalingConfig.ActionConfig> actions
public AutoScalingConfig.TriggerConfig withEnabled(boolean enabled)
enabled
- true when enabled, false otherwise.public AutoScalingConfig.TriggerConfig withProperty(String key, Object value)
key
- property namevalue
- property valuepublic void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.