Class 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 the MorpheusModel.getConfigMap().
    • Field Detail

      • name

        protected java.lang.String name
      • description

        protected java.lang.String description
      • 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
    • Constructor Detail

      • Policy

        public Policy()
    • 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)