public static class AutoScalingConfig.TriggerConfig extends Object implements MapWriter
MapWriter.EntryWriter| Modifier and Type | Field and Description | 
|---|---|
| List<AutoScalingConfig.ActionConfig> | actionsList of configured actions, never null. | 
| boolean | enabledEnabled flag. | 
| TriggerEventType | eventTrigger event type. | 
| String | nameTrigger name. | 
| Map<String,Object> | propertiesMap 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, _sizepublic 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 MapWriterIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.