T - The type of policy to be createdpublic class PolicySpec<T extends Policy> extends AbstractBrooklynObjectSpec<T,PolicySpec<T>>
create(...) methods.| Modifier and Type | Method and Description | 
|---|---|
PolicySpec<T> | 
configure(java.lang.CharSequence key,
         java.lang.Object val)  | 
<V> PolicySpec<T> | 
configure(ConfigKey.HasConfigKey<V> key,
         Task<? extends V> val)  | 
<V> PolicySpec<T> | 
configure(ConfigKey.HasConfigKey<V> key,
         V val)  | 
<V> PolicySpec<T> | 
configure(ConfigKey<V> key,
         Task<? extends V> val)  | 
<V> PolicySpec<T> | 
configure(ConfigKey<V> key,
         V val)  | 
PolicySpec<T> | 
configure(java.util.Map<?,?> val)  | 
<V> PolicySpec<T> | 
configureIfNotNull(ConfigKey<V> key,
                  V val)  | 
static <T extends Policy>  | 
create(java.lang.Class<T> type)
Creates a new  
PolicySpec instance for a policy of the given type. | 
static <T extends Policy>  | 
create(java.util.Map<?,?> config,
      java.lang.Class<T> type)
Creates a new  
PolicySpec instance with the given config, for a policy of the given type. | 
java.util.Map<ConfigKey<?>,java.lang.Object> | 
getConfig()  | 
java.util.Map<java.lang.String,?> | 
getFlags()  | 
PolicySpec<T> | 
uniqueTag(java.lang.String uniqueTag)  | 
catalogItemId, displayName, equals, getCatalogItemId, getDisplayName, getTags, getType, hashCode, tag, tags, toStringpublic static <T extends Policy> PolicySpec<T> create(java.lang.Class<T> type)
PolicySpec instance for a policy of the given type. The returned 
 PolicySpec can then be customized.type - A Policy classpublic static <T extends Policy> PolicySpec<T> create(java.util.Map<?,?> config, java.lang.Class<T> type)
PolicySpec instance with the given config, for a policy of the given type.
 
 This is primarily for groovy code; equivalent to PolicySpec.create(type).configure(config).config - The spec's configuration (see configure(Map)).type - A Policy classpublic PolicySpec<T> uniqueTag(java.lang.String uniqueTag)
public PolicySpec<T> configure(java.util.Map<?,?> val)
public PolicySpec<T> configure(java.lang.CharSequence key, java.lang.Object val)
public <V> PolicySpec<T> configure(ConfigKey<V> key, V val)
public <V> PolicySpec<T> configureIfNotNull(ConfigKey<V> key, V val)
public <V> PolicySpec<T> configure(ConfigKey<V> key, Task<? extends V> val)
public <V> PolicySpec<T> configure(ConfigKey.HasConfigKey<V> key, V val)
public <V> PolicySpec<T> configure(ConfigKey.HasConfigKey<V> key, Task<? extends V> val)
public java.util.Map<java.lang.String,?> getFlags()
declarations on the policy typepublic java.util.Map<ConfigKey<?>,java.lang.Object> getConfig()