public class DeploymentPlan
extends java.lang.Object
Constructor and Description |
---|
DeploymentPlan() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Artifact> |
getArtifacts() |
<T> Maybe<T> |
getCustomAttribute(java.lang.String attributeName,
java.lang.Class<T> type,
boolean throwIfTypeMismatch)
Returns a present
Maybe of the custom attribute with the given name if the attribute is
non-null and is an instance of the given type. |
java.util.Map<java.lang.String,java.lang.Object> |
getCustomAttributes() |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
java.lang.String |
getOrigin() |
java.util.List<Service> |
getServices() |
java.lang.String |
getSourceCode() |
static DeploymentPlan |
of(java.util.Map<java.lang.String,java.lang.Object> root)
Deprecated.
|
static DeploymentPlan |
of(java.util.Map<java.lang.String,java.lang.Object> root,
java.lang.String optionalSourceCode) |
java.lang.String |
toString() |
@Deprecated public static DeploymentPlan of(java.util.Map<java.lang.String,java.lang.Object> root)
public static DeploymentPlan of(java.util.Map<java.lang.String,java.lang.Object> root, java.lang.String optionalSourceCode)
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getOrigin()
public java.lang.String getSourceCode()
public java.util.List<Artifact> getArtifacts()
public java.util.List<Service> getServices()
public java.util.Map<java.lang.String,java.lang.Object> getCustomAttributes()
public <T> Maybe<T> getCustomAttribute(java.lang.String attributeName, java.lang.Class<T> type, boolean throwIfTypeMismatch)
Maybe
of the custom attribute with the given name if the attribute is
non-null and is an instance of the given type. Otherwise returns absent.
Does not remove the attribute from the custom attribute map.public java.lang.String toString()
toString
in class java.lang.Object