
org.ctoolkit.restapi.client.agent.model.MigrationSetKindOpRuleSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ctoolkit-client-agent Show documentation
Show all versions of ctoolkit-client-agent Show documentation
CtoolkiT REST API Client Implementation of Cloud Toolkit Migration Agent
package org.ctoolkit.restapi.client.agent.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* The bean holding migration set kind operation restrictions
*
* @author Jozef Pohorelec
*/
@XmlAccessorType( XmlAccessType.FIELD )
public class MigrationSetKindOpRuleSet
implements Serializable
{
public static final String AND = "and";
public static final String OR = "or";
@XmlAttribute( name = "operation" )
private String operation;
@XmlElement( name = "rule" )
private List rules;
public String getOperation()
{
return operation;
}
public void setOperation( String operation )
{
this.operation = operation;
}
public List getRules()
{
if ( rules == null )
{
rules = new ArrayList();
}
return rules;
}
public void setRules( List rules )
{
this.rules = rules;
}
@Override
public String toString()
{
return "MigrationSetKindOpRestriction{" +
", operation='" + operation + '\'' +
", rules=" + rules +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy