Package com.morpheusdata.model
Class Policy
- java.lang.Object
-
- com.morpheusdata.model.MorpheusModel
-
- com.morpheusdata.model.Policy
-
public class Policy extends MorpheusModel
Represents a Policy from the PolicyService that affects governance within Morpheus. These could be naming policies or max vm, max network, max memory type policies. Information specific to the specific policy is stored in theMorpheusModel.getConfigMap()
.- Since:
- 0.12.2
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Boolean
allAccounts
protected java.lang.String
description
protected java.lang.Boolean
eachUser
protected java.lang.Boolean
enabled
protected java.lang.String
name
protected PolicyType
policyType
protected java.lang.Long
refId
protected java.lang.String
refType
-
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
-
Constructor Summary
Constructors Constructor Description Policy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getAllAccounts()
java.lang.String
getDescription()
java.lang.Boolean
getEachUser()
java.lang.Boolean
getEnabled()
java.lang.String
getName()
PolicyType
getPolicyType()
java.lang.Long
getRefId()
java.lang.String
getRefType()
void
setAllAccounts(java.lang.Boolean allAccounts)
void
setDescription(java.lang.String description)
void
setEachUser(java.lang.Boolean eachUser)
void
setEnabled(java.lang.Boolean enabled)
void
setName(java.lang.String name)
void
setPolicyType(PolicyType policyType)
void
setRefId(java.lang.Long refId)
void
setRefType(java.lang.String refType)
-
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
-
-
-
Field Detail
-
name
protected java.lang.String name
-
description
protected java.lang.String description
-
policyType
protected PolicyType policyType
-
refType
protected java.lang.String refType
-
refId
protected java.lang.Long refId
-
enabled
protected java.lang.Boolean enabled
-
eachUser
protected java.lang.Boolean eachUser
-
allAccounts
protected java.lang.Boolean allAccounts
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getDescription
public java.lang.String getDescription()
-
setName
public void setName(java.lang.String name)
-
setDescription
public void setDescription(java.lang.String description)
-
getPolicyType
public PolicyType getPolicyType()
-
setPolicyType
public void setPolicyType(PolicyType policyType)
-
getRefType
public java.lang.String getRefType()
-
setRefType
public void setRefType(java.lang.String refType)
-
getRefId
public java.lang.Long getRefId()
-
setRefId
public void setRefId(java.lang.Long refId)
-
getEnabled
public java.lang.Boolean getEnabled()
-
setEnabled
public void setEnabled(java.lang.Boolean enabled)
-
getEachUser
public java.lang.Boolean getEachUser()
-
setEachUser
public void setEachUser(java.lang.Boolean eachUser)
-
getAllAccounts
public java.lang.Boolean getAllAccounts()
-
setAllAccounts
public void setAllAccounts(java.lang.Boolean allAccounts)
-
-