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) |
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) |
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-2017 Apache Software Foundation. All Rights Reserved.