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

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

Go to download

This project contains the model API classes compiled for JDK 1.5 and above. This project depends on herd-model-api and should not contain any actual files.

There is a newer version: 0.160.0
Show newest version

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

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
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 emrClusterDefinitionKerberosAttributes complex type. * *

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

 * <complexType name="emrClusterDefinitionKerberosAttributes">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="aDDomainJoinPassword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="aDDomainJoinUser" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="crossRealmTrustPrincipalPassword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="kdcAdminPassword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="realm" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "emrClusterDefinitionKerberosAttributes", propOrder = { }) public class EmrClusterDefinitionKerberosAttributes implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = -1L; @XmlElement(name = "aDDomainJoinPassword") protected String adDomainJoinPassword; @XmlElement(name = "aDDomainJoinUser") protected String adDomainJoinUser; protected String crossRealmTrustPrincipalPassword; protected String kdcAdminPassword; protected String realm; /** * Default no-arg constructor * */ public EmrClusterDefinitionKerberosAttributes() { super(); } /** * Fully-initialising value constructor * */ public EmrClusterDefinitionKerberosAttributes(final String adDomainJoinPassword, final String adDomainJoinUser, final String crossRealmTrustPrincipalPassword, final String kdcAdminPassword, final String realm) { this.adDomainJoinPassword = adDomainJoinPassword; this.adDomainJoinUser = adDomainJoinUser; this.crossRealmTrustPrincipalPassword = crossRealmTrustPrincipalPassword; this.kdcAdminPassword = kdcAdminPassword; this.realm = realm; } /** * Gets the value of the adDomainJoinPassword property. * * @return * possible object is * {@link String } * */ public String getADDomainJoinPassword() { return adDomainJoinPassword; } /** * Sets the value of the adDomainJoinPassword property. * * @param value * allowed object is * {@link String } * */ public void setADDomainJoinPassword(String value) { this.adDomainJoinPassword = value; } /** * Gets the value of the adDomainJoinUser property. * * @return * possible object is * {@link String } * */ public String getADDomainJoinUser() { return adDomainJoinUser; } /** * Sets the value of the adDomainJoinUser property. * * @param value * allowed object is * {@link String } * */ public void setADDomainJoinUser(String value) { this.adDomainJoinUser = value; } /** * Gets the value of the crossRealmTrustPrincipalPassword property. * * @return * possible object is * {@link String } * */ public String getCrossRealmTrustPrincipalPassword() { return crossRealmTrustPrincipalPassword; } /** * Sets the value of the crossRealmTrustPrincipalPassword property. * * @param value * allowed object is * {@link String } * */ public void setCrossRealmTrustPrincipalPassword(String value) { this.crossRealmTrustPrincipalPassword = value; } /** * Gets the value of the kdcAdminPassword property. * * @return * possible object is * {@link String } * */ public String getKdcAdminPassword() { return kdcAdminPassword; } /** * Sets the value of the kdcAdminPassword property. * * @param value * allowed object is * {@link String } * */ public void setKdcAdminPassword(String value) { this.kdcAdminPassword = value; } /** * Gets the value of the realm property. * * @return * possible object is * {@link String } * */ public String getRealm() { return realm; } /** * Sets the value of the realm property. * * @param value * allowed object is * {@link String } * */ public void setRealm(String value) { this.realm = value; } 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 theADDomainJoinPassword; theADDomainJoinPassword = this.getADDomainJoinPassword(); strategy.appendField(locator, this, "adDomainJoinPassword", buffer, theADDomainJoinPassword, (this.adDomainJoinPassword!= null)); } { String theADDomainJoinUser; theADDomainJoinUser = this.getADDomainJoinUser(); strategy.appendField(locator, this, "adDomainJoinUser", buffer, theADDomainJoinUser, (this.adDomainJoinUser!= null)); } { String theCrossRealmTrustPrincipalPassword; theCrossRealmTrustPrincipalPassword = this.getCrossRealmTrustPrincipalPassword(); strategy.appendField(locator, this, "crossRealmTrustPrincipalPassword", buffer, theCrossRealmTrustPrincipalPassword, (this.crossRealmTrustPrincipalPassword!= null)); } { String theKdcAdminPassword; theKdcAdminPassword = this.getKdcAdminPassword(); strategy.appendField(locator, this, "kdcAdminPassword", buffer, theKdcAdminPassword, (this.kdcAdminPassword!= null)); } { String theRealm; theRealm = this.getRealm(); strategy.appendField(locator, this, "realm", buffer, theRealm, (this.realm!= 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 EmrClusterDefinitionKerberosAttributes that = ((EmrClusterDefinitionKerberosAttributes) object); { String lhsADDomainJoinPassword; lhsADDomainJoinPassword = this.getADDomainJoinPassword(); String rhsADDomainJoinPassword; rhsADDomainJoinPassword = that.getADDomainJoinPassword(); if (!strategy.equals(LocatorUtils.property(thisLocator, "adDomainJoinPassword", lhsADDomainJoinPassword), LocatorUtils.property(thatLocator, "adDomainJoinPassword", rhsADDomainJoinPassword), lhsADDomainJoinPassword, rhsADDomainJoinPassword, (this.adDomainJoinPassword!= null), (that.adDomainJoinPassword!= null))) { return false; } } { String lhsADDomainJoinUser; lhsADDomainJoinUser = this.getADDomainJoinUser(); String rhsADDomainJoinUser; rhsADDomainJoinUser = that.getADDomainJoinUser(); if (!strategy.equals(LocatorUtils.property(thisLocator, "adDomainJoinUser", lhsADDomainJoinUser), LocatorUtils.property(thatLocator, "adDomainJoinUser", rhsADDomainJoinUser), lhsADDomainJoinUser, rhsADDomainJoinUser, (this.adDomainJoinUser!= null), (that.adDomainJoinUser!= null))) { return false; } } { String lhsCrossRealmTrustPrincipalPassword; lhsCrossRealmTrustPrincipalPassword = this.getCrossRealmTrustPrincipalPassword(); String rhsCrossRealmTrustPrincipalPassword; rhsCrossRealmTrustPrincipalPassword = that.getCrossRealmTrustPrincipalPassword(); if (!strategy.equals(LocatorUtils.property(thisLocator, "crossRealmTrustPrincipalPassword", lhsCrossRealmTrustPrincipalPassword), LocatorUtils.property(thatLocator, "crossRealmTrustPrincipalPassword", rhsCrossRealmTrustPrincipalPassword), lhsCrossRealmTrustPrincipalPassword, rhsCrossRealmTrustPrincipalPassword, (this.crossRealmTrustPrincipalPassword!= null), (that.crossRealmTrustPrincipalPassword!= null))) { return false; } } { String lhsKdcAdminPassword; lhsKdcAdminPassword = this.getKdcAdminPassword(); String rhsKdcAdminPassword; rhsKdcAdminPassword = that.getKdcAdminPassword(); if (!strategy.equals(LocatorUtils.property(thisLocator, "kdcAdminPassword", lhsKdcAdminPassword), LocatorUtils.property(thatLocator, "kdcAdminPassword", rhsKdcAdminPassword), lhsKdcAdminPassword, rhsKdcAdminPassword, (this.kdcAdminPassword!= null), (that.kdcAdminPassword!= null))) { return false; } } { String lhsRealm; lhsRealm = this.getRealm(); String rhsRealm; rhsRealm = that.getRealm(); if (!strategy.equals(LocatorUtils.property(thisLocator, "realm", lhsRealm), LocatorUtils.property(thatLocator, "realm", rhsRealm), lhsRealm, rhsRealm, (this.realm!= null), (that.realm!= 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 theADDomainJoinPassword; theADDomainJoinPassword = this.getADDomainJoinPassword(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adDomainJoinPassword", theADDomainJoinPassword), currentHashCode, theADDomainJoinPassword, (this.adDomainJoinPassword!= null)); } { String theADDomainJoinUser; theADDomainJoinUser = this.getADDomainJoinUser(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adDomainJoinUser", theADDomainJoinUser), currentHashCode, theADDomainJoinUser, (this.adDomainJoinUser!= null)); } { String theCrossRealmTrustPrincipalPassword; theCrossRealmTrustPrincipalPassword = this.getCrossRealmTrustPrincipalPassword(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "crossRealmTrustPrincipalPassword", theCrossRealmTrustPrincipalPassword), currentHashCode, theCrossRealmTrustPrincipalPassword, (this.crossRealmTrustPrincipalPassword!= null)); } { String theKdcAdminPassword; theKdcAdminPassword = this.getKdcAdminPassword(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kdcAdminPassword", theKdcAdminPassword), currentHashCode, theKdcAdminPassword, (this.kdcAdminPassword!= null)); } { String theRealm; theRealm = this.getRealm(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "realm", theRealm), currentHashCode, theRealm, (this.realm!= 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 EmrClusterDefinitionKerberosAttributes) { final EmrClusterDefinitionKerberosAttributes copy = ((EmrClusterDefinitionKerberosAttributes) draftCopy); { Boolean adDomainJoinPasswordShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.adDomainJoinPassword!= null)); if (adDomainJoinPasswordShouldBeCopiedAndSet == Boolean.TRUE) { String sourceADDomainJoinPassword; sourceADDomainJoinPassword = this.getADDomainJoinPassword(); String copyADDomainJoinPassword = ((String) strategy.copy(LocatorUtils.property(locator, "adDomainJoinPassword", sourceADDomainJoinPassword), sourceADDomainJoinPassword, (this.adDomainJoinPassword!= null))); copy.setADDomainJoinPassword(copyADDomainJoinPassword); } else { if (adDomainJoinPasswordShouldBeCopiedAndSet == Boolean.FALSE) { copy.adDomainJoinPassword = null; } } } { Boolean adDomainJoinUserShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.adDomainJoinUser!= null)); if (adDomainJoinUserShouldBeCopiedAndSet == Boolean.TRUE) { String sourceADDomainJoinUser; sourceADDomainJoinUser = this.getADDomainJoinUser(); String copyADDomainJoinUser = ((String) strategy.copy(LocatorUtils.property(locator, "adDomainJoinUser", sourceADDomainJoinUser), sourceADDomainJoinUser, (this.adDomainJoinUser!= null))); copy.setADDomainJoinUser(copyADDomainJoinUser); } else { if (adDomainJoinUserShouldBeCopiedAndSet == Boolean.FALSE) { copy.adDomainJoinUser = null; } } } { Boolean crossRealmTrustPrincipalPasswordShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.crossRealmTrustPrincipalPassword!= null)); if (crossRealmTrustPrincipalPasswordShouldBeCopiedAndSet == Boolean.TRUE) { String sourceCrossRealmTrustPrincipalPassword; sourceCrossRealmTrustPrincipalPassword = this.getCrossRealmTrustPrincipalPassword(); String copyCrossRealmTrustPrincipalPassword = ((String) strategy.copy(LocatorUtils.property(locator, "crossRealmTrustPrincipalPassword", sourceCrossRealmTrustPrincipalPassword), sourceCrossRealmTrustPrincipalPassword, (this.crossRealmTrustPrincipalPassword!= null))); copy.setCrossRealmTrustPrincipalPassword(copyCrossRealmTrustPrincipalPassword); } else { if (crossRealmTrustPrincipalPasswordShouldBeCopiedAndSet == Boolean.FALSE) { copy.crossRealmTrustPrincipalPassword = null; } } } { Boolean kdcAdminPasswordShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.kdcAdminPassword!= null)); if (kdcAdminPasswordShouldBeCopiedAndSet == Boolean.TRUE) { String sourceKdcAdminPassword; sourceKdcAdminPassword = this.getKdcAdminPassword(); String copyKdcAdminPassword = ((String) strategy.copy(LocatorUtils.property(locator, "kdcAdminPassword", sourceKdcAdminPassword), sourceKdcAdminPassword, (this.kdcAdminPassword!= null))); copy.setKdcAdminPassword(copyKdcAdminPassword); } else { if (kdcAdminPasswordShouldBeCopiedAndSet == Boolean.FALSE) { copy.kdcAdminPassword = null; } } } { Boolean realmShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.realm!= null)); if (realmShouldBeCopiedAndSet == Boolean.TRUE) { String sourceRealm; sourceRealm = this.getRealm(); String copyRealm = ((String) strategy.copy(LocatorUtils.property(locator, "realm", sourceRealm), sourceRealm, (this.realm!= null))); copy.setRealm(copyRealm); } else { if (realmShouldBeCopiedAndSet == Boolean.FALSE) { copy.realm = null; } } } } return draftCopy; } public Object createNewInstance() { return new EmrClusterDefinitionKerberosAttributes(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy