
com.morpheusdata.model.Policy Maven / Gradle / Ivy
/*
* Copyright 2024 Morpheus Data, LLC.
*
* Licensed under the PLUGIN CORE SOURCE LICENSE (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://raw.githubusercontent.com/gomorpheus/morpheus-plugin-core/v1.0.x/LICENSE
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.morpheusdata.model;
/**
* 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 {@link #getConfigMap()}.
*
* @author David Estes
* @since 0.12.2
*/
public class Policy extends MorpheusModel {
protected String name;
protected String description;
protected PolicyType policyType;
protected String refType;
protected Long refId;
protected Boolean enabled;
protected Boolean eachUser;
protected Boolean allAccounts;
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public void setName(String name) {
this.name = name;
markDirty("name", name);
}
public void setDescription(String description) {
this.description = description;
markDirty("description", description);
}
public PolicyType getPolicyType() {
return policyType;
}
public void setPolicyType(PolicyType policyType) {
this.policyType = policyType;
markDirty("policyType",policyType);
}
public String getRefType() {
return refType;
}
public void setRefType(String refType) {
this.refType = refType;
markDirty("refType",refType);
}
public Long getRefId() {
return refId;
}
public void setRefId(Long refId) {
this.refId = refId;
markDirty("refId",refId);
}
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
markDirty("enabled",enabled);
}
public Boolean getEachUser() {
return eachUser;
}
public void setEachUser(Boolean eachUser) {
this.eachUser = eachUser;
markDirty("eachUser",eachUser);
}
public Boolean getAllAccounts() {
return allAccounts;
}
public void setAllAccounts(Boolean allAccounts) {
this.allAccounts = allAccounts;
markDirty("allAccounts",allAccounts);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy