org.finra.herd.model.api.xml.EmrClusterInstanceFleet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of herd-model-api Show documentation
Show all versions of herd-model-api Show documentation
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).
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.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 emrClusterInstanceFleet complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="emrClusterInstanceFleet">
* <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="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="instanceFleetType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="targetOnDemandCapacity" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="targetSpotCapacity" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="provisionedOnDemandCapacity" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="provisionedSpotCapacity" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="instanceFleetStatus" type="{}emrClusterInstanceFleetStatus" minOccurs="0"/>
* <element name="instanceTypeSpecifications" type="{}emrClusterInstanceTypeSpecifications" minOccurs="0"/>
* <element name="launchSpecifications" type="{}emrClusterInstanceFleetProvisioningSpecifications" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "emrClusterInstanceFleet", propOrder = {
})
public class EmrClusterInstanceFleet implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = -1L;
protected String id;
protected String name;
protected String instanceFleetType;
protected Integer targetOnDemandCapacity;
protected Integer targetSpotCapacity;
protected Integer provisionedOnDemandCapacity;
protected Integer provisionedSpotCapacity;
protected EmrClusterInstanceFleetStatus instanceFleetStatus;
@XmlElementWrapper
@XmlElement(name = "InstanceTypeSpecification")
protected List instanceTypeSpecifications;
protected EmrClusterInstanceFleetProvisioningSpecifications launchSpecifications;
/**
* Default no-arg constructor
*
*/
public EmrClusterInstanceFleet() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public EmrClusterInstanceFleet(final String id, final String name, final String instanceFleetType, final Integer targetOnDemandCapacity, final Integer targetSpotCapacity, final Integer provisionedOnDemandCapacity, final Integer provisionedSpotCapacity, final EmrClusterInstanceFleetStatus instanceFleetStatus, final List instanceTypeSpecifications, final EmrClusterInstanceFleetProvisioningSpecifications launchSpecifications) {
this.id = id;
this.name = name;
this.instanceFleetType = instanceFleetType;
this.targetOnDemandCapacity = targetOnDemandCapacity;
this.targetSpotCapacity = targetSpotCapacity;
this.provisionedOnDemandCapacity = provisionedOnDemandCapacity;
this.provisionedSpotCapacity = provisionedSpotCapacity;
this.instanceFleetStatus = instanceFleetStatus;
this.instanceTypeSpecifications = instanceTypeSpecifications;
this.launchSpecifications = launchSpecifications;
}
/**
* 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 name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the instanceFleetType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInstanceFleetType() {
return instanceFleetType;
}
/**
* Sets the value of the instanceFleetType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInstanceFleetType(String value) {
this.instanceFleetType = value;
}
/**
* Gets the value of the targetOnDemandCapacity property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getTargetOnDemandCapacity() {
return targetOnDemandCapacity;
}
/**
* Sets the value of the targetOnDemandCapacity property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setTargetOnDemandCapacity(Integer value) {
this.targetOnDemandCapacity = value;
}
/**
* Gets the value of the targetSpotCapacity property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getTargetSpotCapacity() {
return targetSpotCapacity;
}
/**
* Sets the value of the targetSpotCapacity property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setTargetSpotCapacity(Integer value) {
this.targetSpotCapacity = value;
}
/**
* Gets the value of the provisionedOnDemandCapacity property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getProvisionedOnDemandCapacity() {
return provisionedOnDemandCapacity;
}
/**
* Sets the value of the provisionedOnDemandCapacity property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setProvisionedOnDemandCapacity(Integer value) {
this.provisionedOnDemandCapacity = value;
}
/**
* Gets the value of the provisionedSpotCapacity property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getProvisionedSpotCapacity() {
return provisionedSpotCapacity;
}
/**
* Sets the value of the provisionedSpotCapacity property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setProvisionedSpotCapacity(Integer value) {
this.provisionedSpotCapacity = value;
}
/**
* Gets the value of the instanceFleetStatus property.
*
* @return
* possible object is
* {@link EmrClusterInstanceFleetStatus }
*
*/
public EmrClusterInstanceFleetStatus getInstanceFleetStatus() {
return instanceFleetStatus;
}
/**
* Sets the value of the instanceFleetStatus property.
*
* @param value
* allowed object is
* {@link EmrClusterInstanceFleetStatus }
*
*/
public void setInstanceFleetStatus(EmrClusterInstanceFleetStatus value) {
this.instanceFleetStatus = value;
}
/**
* Gets the value of the launchSpecifications property.
*
* @return
* possible object is
* {@link EmrClusterInstanceFleetProvisioningSpecifications }
*
*/
public EmrClusterInstanceFleetProvisioningSpecifications getLaunchSpecifications() {
return launchSpecifications;
}
/**
* Sets the value of the launchSpecifications property.
*
* @param value
* allowed object is
* {@link EmrClusterInstanceFleetProvisioningSpecifications }
*
*/
public void setLaunchSpecifications(EmrClusterInstanceFleetProvisioningSpecifications value) {
this.launchSpecifications = value;
}
public List getInstanceTypeSpecifications() {
return instanceTypeSpecifications;
}
public void setInstanceTypeSpecifications(List instanceTypeSpecifications) {
this.instanceTypeSpecifications = instanceTypeSpecifications;
}
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 theName;
theName = this.getName();
strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null));
}
{
String theInstanceFleetType;
theInstanceFleetType = this.getInstanceFleetType();
strategy.appendField(locator, this, "instanceFleetType", buffer, theInstanceFleetType, (this.instanceFleetType!= null));
}
{
Integer theTargetOnDemandCapacity;
theTargetOnDemandCapacity = this.getTargetOnDemandCapacity();
strategy.appendField(locator, this, "targetOnDemandCapacity", buffer, theTargetOnDemandCapacity, (this.targetOnDemandCapacity!= null));
}
{
Integer theTargetSpotCapacity;
theTargetSpotCapacity = this.getTargetSpotCapacity();
strategy.appendField(locator, this, "targetSpotCapacity", buffer, theTargetSpotCapacity, (this.targetSpotCapacity!= null));
}
{
Integer theProvisionedOnDemandCapacity;
theProvisionedOnDemandCapacity = this.getProvisionedOnDemandCapacity();
strategy.appendField(locator, this, "provisionedOnDemandCapacity", buffer, theProvisionedOnDemandCapacity, (this.provisionedOnDemandCapacity!= null));
}
{
Integer theProvisionedSpotCapacity;
theProvisionedSpotCapacity = this.getProvisionedSpotCapacity();
strategy.appendField(locator, this, "provisionedSpotCapacity", buffer, theProvisionedSpotCapacity, (this.provisionedSpotCapacity!= null));
}
{
EmrClusterInstanceFleetStatus theInstanceFleetStatus;
theInstanceFleetStatus = this.getInstanceFleetStatus();
strategy.appendField(locator, this, "instanceFleetStatus", buffer, theInstanceFleetStatus, (this.instanceFleetStatus!= null));
}
{
List theInstanceTypeSpecifications;
theInstanceTypeSpecifications = ((this.instanceTypeSpecifications!= null)?this.getInstanceTypeSpecifications():null);
strategy.appendField(locator, this, "instanceTypeSpecifications", buffer, theInstanceTypeSpecifications, (this.instanceTypeSpecifications!= null));
}
{
EmrClusterInstanceFleetProvisioningSpecifications theLaunchSpecifications;
theLaunchSpecifications = this.getLaunchSpecifications();
strategy.appendField(locator, this, "launchSpecifications", buffer, theLaunchSpecifications, (this.launchSpecifications!= 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 EmrClusterInstanceFleet that = ((EmrClusterInstanceFleet) 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 lhsName;
lhsName = this.getName();
String rhsName;
rhsName = that.getName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName, (this.name!= null), (that.name!= null))) {
return false;
}
}
{
String lhsInstanceFleetType;
lhsInstanceFleetType = this.getInstanceFleetType();
String rhsInstanceFleetType;
rhsInstanceFleetType = that.getInstanceFleetType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "instanceFleetType", lhsInstanceFleetType), LocatorUtils.property(thatLocator, "instanceFleetType", rhsInstanceFleetType), lhsInstanceFleetType, rhsInstanceFleetType, (this.instanceFleetType!= null), (that.instanceFleetType!= null))) {
return false;
}
}
{
Integer lhsTargetOnDemandCapacity;
lhsTargetOnDemandCapacity = this.getTargetOnDemandCapacity();
Integer rhsTargetOnDemandCapacity;
rhsTargetOnDemandCapacity = that.getTargetOnDemandCapacity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "targetOnDemandCapacity", lhsTargetOnDemandCapacity), LocatorUtils.property(thatLocator, "targetOnDemandCapacity", rhsTargetOnDemandCapacity), lhsTargetOnDemandCapacity, rhsTargetOnDemandCapacity, (this.targetOnDemandCapacity!= null), (that.targetOnDemandCapacity!= null))) {
return false;
}
}
{
Integer lhsTargetSpotCapacity;
lhsTargetSpotCapacity = this.getTargetSpotCapacity();
Integer rhsTargetSpotCapacity;
rhsTargetSpotCapacity = that.getTargetSpotCapacity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "targetSpotCapacity", lhsTargetSpotCapacity), LocatorUtils.property(thatLocator, "targetSpotCapacity", rhsTargetSpotCapacity), lhsTargetSpotCapacity, rhsTargetSpotCapacity, (this.targetSpotCapacity!= null), (that.targetSpotCapacity!= null))) {
return false;
}
}
{
Integer lhsProvisionedOnDemandCapacity;
lhsProvisionedOnDemandCapacity = this.getProvisionedOnDemandCapacity();
Integer rhsProvisionedOnDemandCapacity;
rhsProvisionedOnDemandCapacity = that.getProvisionedOnDemandCapacity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "provisionedOnDemandCapacity", lhsProvisionedOnDemandCapacity), LocatorUtils.property(thatLocator, "provisionedOnDemandCapacity", rhsProvisionedOnDemandCapacity), lhsProvisionedOnDemandCapacity, rhsProvisionedOnDemandCapacity, (this.provisionedOnDemandCapacity!= null), (that.provisionedOnDemandCapacity!= null))) {
return false;
}
}
{
Integer lhsProvisionedSpotCapacity;
lhsProvisionedSpotCapacity = this.getProvisionedSpotCapacity();
Integer rhsProvisionedSpotCapacity;
rhsProvisionedSpotCapacity = that.getProvisionedSpotCapacity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "provisionedSpotCapacity", lhsProvisionedSpotCapacity), LocatorUtils.property(thatLocator, "provisionedSpotCapacity", rhsProvisionedSpotCapacity), lhsProvisionedSpotCapacity, rhsProvisionedSpotCapacity, (this.provisionedSpotCapacity!= null), (that.provisionedSpotCapacity!= null))) {
return false;
}
}
{
EmrClusterInstanceFleetStatus lhsInstanceFleetStatus;
lhsInstanceFleetStatus = this.getInstanceFleetStatus();
EmrClusterInstanceFleetStatus rhsInstanceFleetStatus;
rhsInstanceFleetStatus = that.getInstanceFleetStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "instanceFleetStatus", lhsInstanceFleetStatus), LocatorUtils.property(thatLocator, "instanceFleetStatus", rhsInstanceFleetStatus), lhsInstanceFleetStatus, rhsInstanceFleetStatus, (this.instanceFleetStatus!= null), (that.instanceFleetStatus!= null))) {
return false;
}
}
{
List lhsInstanceTypeSpecifications;
lhsInstanceTypeSpecifications = ((this.instanceTypeSpecifications!= null)?this.getInstanceTypeSpecifications():null);
List rhsInstanceTypeSpecifications;
rhsInstanceTypeSpecifications = ((that.instanceTypeSpecifications!= null)?that.getInstanceTypeSpecifications():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "instanceTypeSpecifications", lhsInstanceTypeSpecifications), LocatorUtils.property(thatLocator, "instanceTypeSpecifications", rhsInstanceTypeSpecifications), lhsInstanceTypeSpecifications, rhsInstanceTypeSpecifications, (this.instanceTypeSpecifications!= null), (that.instanceTypeSpecifications!= null))) {
return false;
}
}
{
EmrClusterInstanceFleetProvisioningSpecifications lhsLaunchSpecifications;
lhsLaunchSpecifications = this.getLaunchSpecifications();
EmrClusterInstanceFleetProvisioningSpecifications rhsLaunchSpecifications;
rhsLaunchSpecifications = that.getLaunchSpecifications();
if (!strategy.equals(LocatorUtils.property(thisLocator, "launchSpecifications", lhsLaunchSpecifications), LocatorUtils.property(thatLocator, "launchSpecifications", rhsLaunchSpecifications), lhsLaunchSpecifications, rhsLaunchSpecifications, (this.launchSpecifications!= null), (that.launchSpecifications!= 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 theName;
theName = this.getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null));
}
{
String theInstanceFleetType;
theInstanceFleetType = this.getInstanceFleetType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "instanceFleetType", theInstanceFleetType), currentHashCode, theInstanceFleetType, (this.instanceFleetType!= null));
}
{
Integer theTargetOnDemandCapacity;
theTargetOnDemandCapacity = this.getTargetOnDemandCapacity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetOnDemandCapacity", theTargetOnDemandCapacity), currentHashCode, theTargetOnDemandCapacity, (this.targetOnDemandCapacity!= null));
}
{
Integer theTargetSpotCapacity;
theTargetSpotCapacity = this.getTargetSpotCapacity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetSpotCapacity", theTargetSpotCapacity), currentHashCode, theTargetSpotCapacity, (this.targetSpotCapacity!= null));
}
{
Integer theProvisionedOnDemandCapacity;
theProvisionedOnDemandCapacity = this.getProvisionedOnDemandCapacity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "provisionedOnDemandCapacity", theProvisionedOnDemandCapacity), currentHashCode, theProvisionedOnDemandCapacity, (this.provisionedOnDemandCapacity!= null));
}
{
Integer theProvisionedSpotCapacity;
theProvisionedSpotCapacity = this.getProvisionedSpotCapacity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "provisionedSpotCapacity", theProvisionedSpotCapacity), currentHashCode, theProvisionedSpotCapacity, (this.provisionedSpotCapacity!= null));
}
{
EmrClusterInstanceFleetStatus theInstanceFleetStatus;
theInstanceFleetStatus = this.getInstanceFleetStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "instanceFleetStatus", theInstanceFleetStatus), currentHashCode, theInstanceFleetStatus, (this.instanceFleetStatus!= null));
}
{
List theInstanceTypeSpecifications;
theInstanceTypeSpecifications = ((this.instanceTypeSpecifications!= null)?this.getInstanceTypeSpecifications():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "instanceTypeSpecifications", theInstanceTypeSpecifications), currentHashCode, theInstanceTypeSpecifications, (this.instanceTypeSpecifications!= null));
}
{
EmrClusterInstanceFleetProvisioningSpecifications theLaunchSpecifications;
theLaunchSpecifications = this.getLaunchSpecifications();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "launchSpecifications", theLaunchSpecifications), currentHashCode, theLaunchSpecifications, (this.launchSpecifications!= 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 EmrClusterInstanceFleet) {
final EmrClusterInstanceFleet copy = ((EmrClusterInstanceFleet) 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 nameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.name!= null));
if (nameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceName;
sourceName = this.getName();
String copyName = ((String) strategy.copy(LocatorUtils.property(locator, "name", sourceName), sourceName, (this.name!= null)));
copy.setName(copyName);
} else {
if (nameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.name = null;
}
}
}
{
Boolean instanceFleetTypeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.instanceFleetType!= null));
if (instanceFleetTypeShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceInstanceFleetType;
sourceInstanceFleetType = this.getInstanceFleetType();
String copyInstanceFleetType = ((String) strategy.copy(LocatorUtils.property(locator, "instanceFleetType", sourceInstanceFleetType), sourceInstanceFleetType, (this.instanceFleetType!= null)));
copy.setInstanceFleetType(copyInstanceFleetType);
} else {
if (instanceFleetTypeShouldBeCopiedAndSet == Boolean.FALSE) {
copy.instanceFleetType = null;
}
}
}
{
Boolean targetOnDemandCapacityShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.targetOnDemandCapacity!= null));
if (targetOnDemandCapacityShouldBeCopiedAndSet == Boolean.TRUE) {
Integer sourceTargetOnDemandCapacity;
sourceTargetOnDemandCapacity = this.getTargetOnDemandCapacity();
Integer copyTargetOnDemandCapacity = ((Integer) strategy.copy(LocatorUtils.property(locator, "targetOnDemandCapacity", sourceTargetOnDemandCapacity), sourceTargetOnDemandCapacity, (this.targetOnDemandCapacity!= null)));
copy.setTargetOnDemandCapacity(copyTargetOnDemandCapacity);
} else {
if (targetOnDemandCapacityShouldBeCopiedAndSet == Boolean.FALSE) {
copy.targetOnDemandCapacity = null;
}
}
}
{
Boolean targetSpotCapacityShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.targetSpotCapacity!= null));
if (targetSpotCapacityShouldBeCopiedAndSet == Boolean.TRUE) {
Integer sourceTargetSpotCapacity;
sourceTargetSpotCapacity = this.getTargetSpotCapacity();
Integer copyTargetSpotCapacity = ((Integer) strategy.copy(LocatorUtils.property(locator, "targetSpotCapacity", sourceTargetSpotCapacity), sourceTargetSpotCapacity, (this.targetSpotCapacity!= null)));
copy.setTargetSpotCapacity(copyTargetSpotCapacity);
} else {
if (targetSpotCapacityShouldBeCopiedAndSet == Boolean.FALSE) {
copy.targetSpotCapacity = null;
}
}
}
{
Boolean provisionedOnDemandCapacityShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.provisionedOnDemandCapacity!= null));
if (provisionedOnDemandCapacityShouldBeCopiedAndSet == Boolean.TRUE) {
Integer sourceProvisionedOnDemandCapacity;
sourceProvisionedOnDemandCapacity = this.getProvisionedOnDemandCapacity();
Integer copyProvisionedOnDemandCapacity = ((Integer) strategy.copy(LocatorUtils.property(locator, "provisionedOnDemandCapacity", sourceProvisionedOnDemandCapacity), sourceProvisionedOnDemandCapacity, (this.provisionedOnDemandCapacity!= null)));
copy.setProvisionedOnDemandCapacity(copyProvisionedOnDemandCapacity);
} else {
if (provisionedOnDemandCapacityShouldBeCopiedAndSet == Boolean.FALSE) {
copy.provisionedOnDemandCapacity = null;
}
}
}
{
Boolean provisionedSpotCapacityShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.provisionedSpotCapacity!= null));
if (provisionedSpotCapacityShouldBeCopiedAndSet == Boolean.TRUE) {
Integer sourceProvisionedSpotCapacity;
sourceProvisionedSpotCapacity = this.getProvisionedSpotCapacity();
Integer copyProvisionedSpotCapacity = ((Integer) strategy.copy(LocatorUtils.property(locator, "provisionedSpotCapacity", sourceProvisionedSpotCapacity), sourceProvisionedSpotCapacity, (this.provisionedSpotCapacity!= null)));
copy.setProvisionedSpotCapacity(copyProvisionedSpotCapacity);
} else {
if (provisionedSpotCapacityShouldBeCopiedAndSet == Boolean.FALSE) {
copy.provisionedSpotCapacity = null;
}
}
}
{
Boolean instanceFleetStatusShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.instanceFleetStatus!= null));
if (instanceFleetStatusShouldBeCopiedAndSet == Boolean.TRUE) {
EmrClusterInstanceFleetStatus sourceInstanceFleetStatus;
sourceInstanceFleetStatus = this.getInstanceFleetStatus();
EmrClusterInstanceFleetStatus copyInstanceFleetStatus = ((EmrClusterInstanceFleetStatus) strategy.copy(LocatorUtils.property(locator, "instanceFleetStatus", sourceInstanceFleetStatus), sourceInstanceFleetStatus, (this.instanceFleetStatus!= null)));
copy.setInstanceFleetStatus(copyInstanceFleetStatus);
} else {
if (instanceFleetStatusShouldBeCopiedAndSet == Boolean.FALSE) {
copy.instanceFleetStatus = null;
}
}
}
{
Boolean instanceTypeSpecificationsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.instanceTypeSpecifications!= null));
if (instanceTypeSpecificationsShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceInstanceTypeSpecifications;
sourceInstanceTypeSpecifications = ((this.instanceTypeSpecifications!= null)?this.getInstanceTypeSpecifications():null);
@SuppressWarnings("unchecked")
List copyInstanceTypeSpecifications = ((List ) strategy.copy(LocatorUtils.property(locator, "instanceTypeSpecifications", sourceInstanceTypeSpecifications), sourceInstanceTypeSpecifications, (this.instanceTypeSpecifications!= null)));
copy.instanceTypeSpecifications = null;
if (copyInstanceTypeSpecifications!= null) {
copy.setInstanceTypeSpecifications(copyInstanceTypeSpecifications);
}
} else {
if (instanceTypeSpecificationsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.instanceTypeSpecifications = null;
}
}
}
{
Boolean launchSpecificationsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.launchSpecifications!= null));
if (launchSpecificationsShouldBeCopiedAndSet == Boolean.TRUE) {
EmrClusterInstanceFleetProvisioningSpecifications sourceLaunchSpecifications;
sourceLaunchSpecifications = this.getLaunchSpecifications();
EmrClusterInstanceFleetProvisioningSpecifications copyLaunchSpecifications = ((EmrClusterInstanceFleetProvisioningSpecifications) strategy.copy(LocatorUtils.property(locator, "launchSpecifications", sourceLaunchSpecifications), sourceLaunchSpecifications, (this.launchSpecifications!= null)));
copy.setLaunchSpecifications(copyLaunchSpecifications);
} else {
if (launchSpecificationsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.launchSpecifications = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new EmrClusterInstanceFleet();
}
}