All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.finra.herd.model.api.xml.EmrCluster Maven / Gradle / Ivy

Go to download

This project contains the model API classes. This contains the herd XSD and generates Java POJO's from them. These classes are used for incoming and outgoing calls into the system (e.g. via REST).

There is a newer version: 0.160.0
Show newest version

package org.finra.herd.model.api.xml;

import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for emrCluster complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="emrCluster">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="status" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="statusChangeReason" type="{}statusChangeReason" minOccurs="0"/>
 *         <element name="statusTimeline" type="{}statusTimeline" minOccurs="0"/>
 *         <element name="namespace" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="emrClusterDefinitionName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="emrClusterName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="accountId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="activeStep" type="{}emrStep" minOccurs="0"/>
 *         <element name="step" type="{}emrStep" minOccurs="0"/>
 *         <element name="dryRun" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="emrClusterCreated" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="emrClusterDefinition" type="{}emrClusterDefinition" minOccurs="0"/>
 *         <element name="instanceFleets" type="{}emrClusterInstanceFleets" minOccurs="0"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "emrCluster", propOrder = { }) @XmlRootElement(name = "emrCluster") public class EmrCluster implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = -1L; protected String id; protected String status; protected StatusChangeReason statusChangeReason; protected StatusTimeline statusTimeline; @XmlElement(required = true) protected String namespace; @XmlElement(required = true) protected String emrClusterDefinitionName; @XmlElement(required = true) protected String emrClusterName; protected String accountId; protected EmrStep activeStep; protected EmrStep step; protected Boolean dryRun; protected Boolean emrClusterCreated; protected EmrClusterDefinition emrClusterDefinition; @XmlElementWrapper @XmlElement(name = "instanceFleet") protected List instanceFleets; /** * Default no-arg constructor * */ public EmrCluster() { super(); } /** * Fully-initialising value constructor * */ public EmrCluster(final String id, final String status, final StatusChangeReason statusChangeReason, final StatusTimeline statusTimeline, final String namespace, final String emrClusterDefinitionName, final String emrClusterName, final String accountId, final EmrStep activeStep, final EmrStep step, final Boolean dryRun, final Boolean emrClusterCreated, final EmrClusterDefinition emrClusterDefinition, final List instanceFleets) { this.id = id; this.status = status; this.statusChangeReason = statusChangeReason; this.statusTimeline = statusTimeline; this.namespace = namespace; this.emrClusterDefinitionName = emrClusterDefinitionName; this.emrClusterName = emrClusterName; this.accountId = accountId; this.activeStep = activeStep; this.step = step; this.dryRun = dryRun; this.emrClusterCreated = emrClusterCreated; this.emrClusterDefinition = emrClusterDefinition; this.instanceFleets = instanceFleets; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link String } * */ public String getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link String } * */ public void setStatus(String value) { this.status = value; } /** * Gets the value of the statusChangeReason property. * * @return * possible object is * {@link StatusChangeReason } * */ public StatusChangeReason getStatusChangeReason() { return statusChangeReason; } /** * Sets the value of the statusChangeReason property. * * @param value * allowed object is * {@link StatusChangeReason } * */ public void setStatusChangeReason(StatusChangeReason value) { this.statusChangeReason = value; } /** * Gets the value of the statusTimeline property. * * @return * possible object is * {@link StatusTimeline } * */ public StatusTimeline getStatusTimeline() { return statusTimeline; } /** * Sets the value of the statusTimeline property. * * @param value * allowed object is * {@link StatusTimeline } * */ public void setStatusTimeline(StatusTimeline value) { this.statusTimeline = value; } /** * Gets the value of the namespace property. * * @return * possible object is * {@link String } * */ public String getNamespace() { return namespace; } /** * Sets the value of the namespace property. * * @param value * allowed object is * {@link String } * */ public void setNamespace(String value) { this.namespace = value; } /** * Gets the value of the emrClusterDefinitionName property. * * @return * possible object is * {@link String } * */ public String getEmrClusterDefinitionName() { return emrClusterDefinitionName; } /** * Sets the value of the emrClusterDefinitionName property. * * @param value * allowed object is * {@link String } * */ public void setEmrClusterDefinitionName(String value) { this.emrClusterDefinitionName = value; } /** * Gets the value of the emrClusterName property. * * @return * possible object is * {@link String } * */ public String getEmrClusterName() { return emrClusterName; } /** * Sets the value of the emrClusterName property. * * @param value * allowed object is * {@link String } * */ public void setEmrClusterName(String value) { this.emrClusterName = value; } /** * Gets the value of the accountId property. * * @return * possible object is * {@link String } * */ public String getAccountId() { return accountId; } /** * Sets the value of the accountId property. * * @param value * allowed object is * {@link String } * */ public void setAccountId(String value) { this.accountId = value; } /** * Gets the value of the activeStep property. * * @return * possible object is * {@link EmrStep } * */ public EmrStep getActiveStep() { return activeStep; } /** * Sets the value of the activeStep property. * * @param value * allowed object is * {@link EmrStep } * */ public void setActiveStep(EmrStep value) { this.activeStep = value; } /** * Gets the value of the step property. * * @return * possible object is * {@link EmrStep } * */ public EmrStep getStep() { return step; } /** * Sets the value of the step property. * * @param value * allowed object is * {@link EmrStep } * */ public void setStep(EmrStep value) { this.step = value; } /** * Gets the value of the dryRun property. * * @return * possible object is * {@link Boolean } * */ public Boolean isDryRun() { return dryRun; } /** * Sets the value of the dryRun property. * * @param value * allowed object is * {@link Boolean } * */ public void setDryRun(Boolean value) { this.dryRun = value; } /** * Gets the value of the emrClusterCreated property. * * @return * possible object is * {@link Boolean } * */ public Boolean isEmrClusterCreated() { return emrClusterCreated; } /** * Sets the value of the emrClusterCreated property. * * @param value * allowed object is * {@link Boolean } * */ public void setEmrClusterCreated(Boolean value) { this.emrClusterCreated = value; } /** * Gets the value of the emrClusterDefinition property. * * @return * possible object is * {@link EmrClusterDefinition } * */ public EmrClusterDefinition getEmrClusterDefinition() { return emrClusterDefinition; } /** * Sets the value of the emrClusterDefinition property. * * @param value * allowed object is * {@link EmrClusterDefinition } * */ public void setEmrClusterDefinition(EmrClusterDefinition value) { this.emrClusterDefinition = value; } public List getInstanceFleets() { return instanceFleets; } public void setInstanceFleets(List instanceFleets) { this.instanceFleets = instanceFleets; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null)); } { String theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { StatusChangeReason theStatusChangeReason; theStatusChangeReason = this.getStatusChangeReason(); strategy.appendField(locator, this, "statusChangeReason", buffer, theStatusChangeReason, (this.statusChangeReason!= null)); } { StatusTimeline theStatusTimeline; theStatusTimeline = this.getStatusTimeline(); strategy.appendField(locator, this, "statusTimeline", buffer, theStatusTimeline, (this.statusTimeline!= null)); } { String theNamespace; theNamespace = this.getNamespace(); strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null)); } { String theEmrClusterDefinitionName; theEmrClusterDefinitionName = this.getEmrClusterDefinitionName(); strategy.appendField(locator, this, "emrClusterDefinitionName", buffer, theEmrClusterDefinitionName, (this.emrClusterDefinitionName!= null)); } { String theEmrClusterName; theEmrClusterName = this.getEmrClusterName(); strategy.appendField(locator, this, "emrClusterName", buffer, theEmrClusterName, (this.emrClusterName!= null)); } { String theAccountId; theAccountId = this.getAccountId(); strategy.appendField(locator, this, "accountId", buffer, theAccountId, (this.accountId!= null)); } { EmrStep theActiveStep; theActiveStep = this.getActiveStep(); strategy.appendField(locator, this, "activeStep", buffer, theActiveStep, (this.activeStep!= null)); } { EmrStep theStep; theStep = this.getStep(); strategy.appendField(locator, this, "step", buffer, theStep, (this.step!= null)); } { Boolean theDryRun; theDryRun = this.isDryRun(); strategy.appendField(locator, this, "dryRun", buffer, theDryRun, (this.dryRun!= null)); } { Boolean theEmrClusterCreated; theEmrClusterCreated = this.isEmrClusterCreated(); strategy.appendField(locator, this, "emrClusterCreated", buffer, theEmrClusterCreated, (this.emrClusterCreated!= null)); } { EmrClusterDefinition theEmrClusterDefinition; theEmrClusterDefinition = this.getEmrClusterDefinition(); strategy.appendField(locator, this, "emrClusterDefinition", buffer, theEmrClusterDefinition, (this.emrClusterDefinition!= null)); } { List theInstanceFleets; theInstanceFleets = ((this.instanceFleets!= null)?this.getInstanceFleets():null); strategy.appendField(locator, this, "instanceFleets", buffer, theInstanceFleets, (this.instanceFleets!= null)); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final EmrCluster that = ((EmrCluster) object); { String lhsId; lhsId = this.getId(); String rhsId; rhsId = that.getId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) { return false; } } { String lhsStatus; lhsStatus = this.getStatus(); String rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) { return false; } } { StatusChangeReason lhsStatusChangeReason; lhsStatusChangeReason = this.getStatusChangeReason(); StatusChangeReason rhsStatusChangeReason; rhsStatusChangeReason = that.getStatusChangeReason(); if (!strategy.equals(LocatorUtils.property(thisLocator, "statusChangeReason", lhsStatusChangeReason), LocatorUtils.property(thatLocator, "statusChangeReason", rhsStatusChangeReason), lhsStatusChangeReason, rhsStatusChangeReason, (this.statusChangeReason!= null), (that.statusChangeReason!= null))) { return false; } } { StatusTimeline lhsStatusTimeline; lhsStatusTimeline = this.getStatusTimeline(); StatusTimeline rhsStatusTimeline; rhsStatusTimeline = that.getStatusTimeline(); if (!strategy.equals(LocatorUtils.property(thisLocator, "statusTimeline", lhsStatusTimeline), LocatorUtils.property(thatLocator, "statusTimeline", rhsStatusTimeline), lhsStatusTimeline, rhsStatusTimeline, (this.statusTimeline!= null), (that.statusTimeline!= null))) { return false; } } { String lhsNamespace; lhsNamespace = this.getNamespace(); String rhsNamespace; rhsNamespace = that.getNamespace(); if (!strategy.equals(LocatorUtils.property(thisLocator, "namespace", lhsNamespace), LocatorUtils.property(thatLocator, "namespace", rhsNamespace), lhsNamespace, rhsNamespace, (this.namespace!= null), (that.namespace!= null))) { return false; } } { String lhsEmrClusterDefinitionName; lhsEmrClusterDefinitionName = this.getEmrClusterDefinitionName(); String rhsEmrClusterDefinitionName; rhsEmrClusterDefinitionName = that.getEmrClusterDefinitionName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterDefinitionName", lhsEmrClusterDefinitionName), LocatorUtils.property(thatLocator, "emrClusterDefinitionName", rhsEmrClusterDefinitionName), lhsEmrClusterDefinitionName, rhsEmrClusterDefinitionName, (this.emrClusterDefinitionName!= null), (that.emrClusterDefinitionName!= null))) { return false; } } { String lhsEmrClusterName; lhsEmrClusterName = this.getEmrClusterName(); String rhsEmrClusterName; rhsEmrClusterName = that.getEmrClusterName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterName", lhsEmrClusterName), LocatorUtils.property(thatLocator, "emrClusterName", rhsEmrClusterName), lhsEmrClusterName, rhsEmrClusterName, (this.emrClusterName!= null), (that.emrClusterName!= null))) { return false; } } { String lhsAccountId; lhsAccountId = this.getAccountId(); String rhsAccountId; rhsAccountId = that.getAccountId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "accountId", lhsAccountId), LocatorUtils.property(thatLocator, "accountId", rhsAccountId), lhsAccountId, rhsAccountId, (this.accountId!= null), (that.accountId!= null))) { return false; } } { EmrStep lhsActiveStep; lhsActiveStep = this.getActiveStep(); EmrStep rhsActiveStep; rhsActiveStep = that.getActiveStep(); if (!strategy.equals(LocatorUtils.property(thisLocator, "activeStep", lhsActiveStep), LocatorUtils.property(thatLocator, "activeStep", rhsActiveStep), lhsActiveStep, rhsActiveStep, (this.activeStep!= null), (that.activeStep!= null))) { return false; } } { EmrStep lhsStep; lhsStep = this.getStep(); EmrStep rhsStep; rhsStep = that.getStep(); if (!strategy.equals(LocatorUtils.property(thisLocator, "step", lhsStep), LocatorUtils.property(thatLocator, "step", rhsStep), lhsStep, rhsStep, (this.step!= null), (that.step!= null))) { return false; } } { Boolean lhsDryRun; lhsDryRun = this.isDryRun(); Boolean rhsDryRun; rhsDryRun = that.isDryRun(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dryRun", lhsDryRun), LocatorUtils.property(thatLocator, "dryRun", rhsDryRun), lhsDryRun, rhsDryRun, (this.dryRun!= null), (that.dryRun!= null))) { return false; } } { Boolean lhsEmrClusterCreated; lhsEmrClusterCreated = this.isEmrClusterCreated(); Boolean rhsEmrClusterCreated; rhsEmrClusterCreated = that.isEmrClusterCreated(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterCreated", lhsEmrClusterCreated), LocatorUtils.property(thatLocator, "emrClusterCreated", rhsEmrClusterCreated), lhsEmrClusterCreated, rhsEmrClusterCreated, (this.emrClusterCreated!= null), (that.emrClusterCreated!= null))) { return false; } } { EmrClusterDefinition lhsEmrClusterDefinition; lhsEmrClusterDefinition = this.getEmrClusterDefinition(); EmrClusterDefinition rhsEmrClusterDefinition; rhsEmrClusterDefinition = that.getEmrClusterDefinition(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterDefinition", lhsEmrClusterDefinition), LocatorUtils.property(thatLocator, "emrClusterDefinition", rhsEmrClusterDefinition), lhsEmrClusterDefinition, rhsEmrClusterDefinition, (this.emrClusterDefinition!= null), (that.emrClusterDefinition!= null))) { return false; } } { List lhsInstanceFleets; lhsInstanceFleets = ((this.instanceFleets!= null)?this.getInstanceFleets():null); List rhsInstanceFleets; rhsInstanceFleets = ((that.instanceFleets!= null)?that.getInstanceFleets():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "instanceFleets", lhsInstanceFleets), LocatorUtils.property(thatLocator, "instanceFleets", rhsInstanceFleets), lhsInstanceFleets, rhsInstanceFleets, (this.instanceFleets!= null), (that.instanceFleets!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null)); } { String theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { StatusChangeReason theStatusChangeReason; theStatusChangeReason = this.getStatusChangeReason(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "statusChangeReason", theStatusChangeReason), currentHashCode, theStatusChangeReason, (this.statusChangeReason!= null)); } { StatusTimeline theStatusTimeline; theStatusTimeline = this.getStatusTimeline(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "statusTimeline", theStatusTimeline), currentHashCode, theStatusTimeline, (this.statusTimeline!= null)); } { String theNamespace; theNamespace = this.getNamespace(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "namespace", theNamespace), currentHashCode, theNamespace, (this.namespace!= null)); } { String theEmrClusterDefinitionName; theEmrClusterDefinitionName = this.getEmrClusterDefinitionName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterDefinitionName", theEmrClusterDefinitionName), currentHashCode, theEmrClusterDefinitionName, (this.emrClusterDefinitionName!= null)); } { String theEmrClusterName; theEmrClusterName = this.getEmrClusterName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterName", theEmrClusterName), currentHashCode, theEmrClusterName, (this.emrClusterName!= null)); } { String theAccountId; theAccountId = this.getAccountId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accountId", theAccountId), currentHashCode, theAccountId, (this.accountId!= null)); } { EmrStep theActiveStep; theActiveStep = this.getActiveStep(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "activeStep", theActiveStep), currentHashCode, theActiveStep, (this.activeStep!= null)); } { EmrStep theStep; theStep = this.getStep(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "step", theStep), currentHashCode, theStep, (this.step!= null)); } { Boolean theDryRun; theDryRun = this.isDryRun(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dryRun", theDryRun), currentHashCode, theDryRun, (this.dryRun!= null)); } { Boolean theEmrClusterCreated; theEmrClusterCreated = this.isEmrClusterCreated(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterCreated", theEmrClusterCreated), currentHashCode, theEmrClusterCreated, (this.emrClusterCreated!= null)); } { EmrClusterDefinition theEmrClusterDefinition; theEmrClusterDefinition = this.getEmrClusterDefinition(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterDefinition", theEmrClusterDefinition), currentHashCode, theEmrClusterDefinition, (this.emrClusterDefinition!= null)); } { List theInstanceFleets; theInstanceFleets = ((this.instanceFleets!= null)?this.getInstanceFleets():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "instanceFleets", theInstanceFleets), currentHashCode, theInstanceFleets, (this.instanceFleets!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public Object clone() { return copyTo(createNewInstance()); } public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); } public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof EmrCluster) { final EmrCluster copy = ((EmrCluster) draftCopy); { Boolean idShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.id!= null)); if (idShouldBeCopiedAndSet == Boolean.TRUE) { String sourceId; sourceId = this.getId(); String copyId = ((String) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null))); copy.setId(copyId); } else { if (idShouldBeCopiedAndSet == Boolean.FALSE) { copy.id = null; } } } { Boolean statusShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.status!= null)); if (statusShouldBeCopiedAndSet == Boolean.TRUE) { String sourceStatus; sourceStatus = this.getStatus(); String copyStatus = ((String) strategy.copy(LocatorUtils.property(locator, "status", sourceStatus), sourceStatus, (this.status!= null))); copy.setStatus(copyStatus); } else { if (statusShouldBeCopiedAndSet == Boolean.FALSE) { copy.status = null; } } } { Boolean statusChangeReasonShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.statusChangeReason!= null)); if (statusChangeReasonShouldBeCopiedAndSet == Boolean.TRUE) { StatusChangeReason sourceStatusChangeReason; sourceStatusChangeReason = this.getStatusChangeReason(); StatusChangeReason copyStatusChangeReason = ((StatusChangeReason) strategy.copy(LocatorUtils.property(locator, "statusChangeReason", sourceStatusChangeReason), sourceStatusChangeReason, (this.statusChangeReason!= null))); copy.setStatusChangeReason(copyStatusChangeReason); } else { if (statusChangeReasonShouldBeCopiedAndSet == Boolean.FALSE) { copy.statusChangeReason = null; } } } { Boolean statusTimelineShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.statusTimeline!= null)); if (statusTimelineShouldBeCopiedAndSet == Boolean.TRUE) { StatusTimeline sourceStatusTimeline; sourceStatusTimeline = this.getStatusTimeline(); StatusTimeline copyStatusTimeline = ((StatusTimeline) strategy.copy(LocatorUtils.property(locator, "statusTimeline", sourceStatusTimeline), sourceStatusTimeline, (this.statusTimeline!= null))); copy.setStatusTimeline(copyStatusTimeline); } else { if (statusTimelineShouldBeCopiedAndSet == Boolean.FALSE) { copy.statusTimeline = null; } } } { Boolean namespaceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.namespace!= null)); if (namespaceShouldBeCopiedAndSet == Boolean.TRUE) { String sourceNamespace; sourceNamespace = this.getNamespace(); String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null))); copy.setNamespace(copyNamespace); } else { if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) { copy.namespace = null; } } } { Boolean emrClusterDefinitionNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.emrClusterDefinitionName!= null)); if (emrClusterDefinitionNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEmrClusterDefinitionName; sourceEmrClusterDefinitionName = this.getEmrClusterDefinitionName(); String copyEmrClusterDefinitionName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterDefinitionName", sourceEmrClusterDefinitionName), sourceEmrClusterDefinitionName, (this.emrClusterDefinitionName!= null))); copy.setEmrClusterDefinitionName(copyEmrClusterDefinitionName); } else { if (emrClusterDefinitionNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.emrClusterDefinitionName = null; } } } { Boolean emrClusterNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.emrClusterName!= null)); if (emrClusterNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEmrClusterName; sourceEmrClusterName = this.getEmrClusterName(); String copyEmrClusterName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterName", sourceEmrClusterName), sourceEmrClusterName, (this.emrClusterName!= null))); copy.setEmrClusterName(copyEmrClusterName); } else { if (emrClusterNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.emrClusterName = null; } } } { Boolean accountIdShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.accountId!= null)); if (accountIdShouldBeCopiedAndSet == Boolean.TRUE) { String sourceAccountId; sourceAccountId = this.getAccountId(); String copyAccountId = ((String) strategy.copy(LocatorUtils.property(locator, "accountId", sourceAccountId), sourceAccountId, (this.accountId!= null))); copy.setAccountId(copyAccountId); } else { if (accountIdShouldBeCopiedAndSet == Boolean.FALSE) { copy.accountId = null; } } } { Boolean activeStepShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.activeStep!= null)); if (activeStepShouldBeCopiedAndSet == Boolean.TRUE) { EmrStep sourceActiveStep; sourceActiveStep = this.getActiveStep(); EmrStep copyActiveStep = ((EmrStep) strategy.copy(LocatorUtils.property(locator, "activeStep", sourceActiveStep), sourceActiveStep, (this.activeStep!= null))); copy.setActiveStep(copyActiveStep); } else { if (activeStepShouldBeCopiedAndSet == Boolean.FALSE) { copy.activeStep = null; } } } { Boolean stepShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.step!= null)); if (stepShouldBeCopiedAndSet == Boolean.TRUE) { EmrStep sourceStep; sourceStep = this.getStep(); EmrStep copyStep = ((EmrStep) strategy.copy(LocatorUtils.property(locator, "step", sourceStep), sourceStep, (this.step!= null))); copy.setStep(copyStep); } else { if (stepShouldBeCopiedAndSet == Boolean.FALSE) { copy.step = null; } } } { Boolean dryRunShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.dryRun!= null)); if (dryRunShouldBeCopiedAndSet == Boolean.TRUE) { Boolean sourceDryRun; sourceDryRun = this.isDryRun(); Boolean copyDryRun = ((Boolean) strategy.copy(LocatorUtils.property(locator, "dryRun", sourceDryRun), sourceDryRun, (this.dryRun!= null))); copy.setDryRun(copyDryRun); } else { if (dryRunShouldBeCopiedAndSet == Boolean.FALSE) { copy.dryRun = null; } } } { Boolean emrClusterCreatedShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.emrClusterCreated!= null)); if (emrClusterCreatedShouldBeCopiedAndSet == Boolean.TRUE) { Boolean sourceEmrClusterCreated; sourceEmrClusterCreated = this.isEmrClusterCreated(); Boolean copyEmrClusterCreated = ((Boolean) strategy.copy(LocatorUtils.property(locator, "emrClusterCreated", sourceEmrClusterCreated), sourceEmrClusterCreated, (this.emrClusterCreated!= null))); copy.setEmrClusterCreated(copyEmrClusterCreated); } else { if (emrClusterCreatedShouldBeCopiedAndSet == Boolean.FALSE) { copy.emrClusterCreated = null; } } } { Boolean emrClusterDefinitionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.emrClusterDefinition!= null)); if (emrClusterDefinitionShouldBeCopiedAndSet == Boolean.TRUE) { EmrClusterDefinition sourceEmrClusterDefinition; sourceEmrClusterDefinition = this.getEmrClusterDefinition(); EmrClusterDefinition copyEmrClusterDefinition = ((EmrClusterDefinition) strategy.copy(LocatorUtils.property(locator, "emrClusterDefinition", sourceEmrClusterDefinition), sourceEmrClusterDefinition, (this.emrClusterDefinition!= null))); copy.setEmrClusterDefinition(copyEmrClusterDefinition); } else { if (emrClusterDefinitionShouldBeCopiedAndSet == Boolean.FALSE) { copy.emrClusterDefinition = null; } } } { Boolean instanceFleetsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.instanceFleets!= null)); if (instanceFleetsShouldBeCopiedAndSet == Boolean.TRUE) { List sourceInstanceFleets; sourceInstanceFleets = ((this.instanceFleets!= null)?this.getInstanceFleets():null); @SuppressWarnings("unchecked") List copyInstanceFleets = ((List ) strategy.copy(LocatorUtils.property(locator, "instanceFleets", sourceInstanceFleets), sourceInstanceFleets, (this.instanceFleets!= null))); copy.instanceFleets = null; if (copyInstanceFleets!= null) { copy.setInstanceFleets(copyInstanceFleets); } } else { if (instanceFleetsShouldBeCopiedAndSet == Boolean.FALSE) { copy.instanceFleets = null; } } } } return draftCopy; } public Object createNewInstance() { return new EmrCluster(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy