* The classification for application component types. *
*/ private String applicationMode; /** ** The transformation preferences for non-database applications. *
*/ private ApplicationPreferences applicationPreferences; /** ** The transformation preferences for database applications. *
*/ private DatabasePreferences databasePreferences; /** ** The rank of business goals based on priority. *
*/ private PrioritizeBusinessGoals prioritizeBusinessGoals; /** ** The classification for application component types. *
* * @param applicationMode * The classification for application component types. * @see ApplicationMode */ public void setApplicationMode(String applicationMode) { this.applicationMode = applicationMode; } /** ** The classification for application component types. *
* * @return The classification for application component types. * @see ApplicationMode */ public String getApplicationMode() { return this.applicationMode; } /** ** The classification for application component types. *
* * @param applicationMode * The classification for application component types. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationMode */ public GetPortfolioPreferencesResult withApplicationMode(String applicationMode) { setApplicationMode(applicationMode); return this; } /** ** The classification for application component types. *
* * @param applicationMode * The classification for application component types. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationMode */ public GetPortfolioPreferencesResult withApplicationMode(ApplicationMode applicationMode) { this.applicationMode = applicationMode.toString(); return this; } /** ** The transformation preferences for non-database applications. *
* * @param applicationPreferences * The transformation preferences for non-database applications. */ public void setApplicationPreferences(ApplicationPreferences applicationPreferences) { this.applicationPreferences = applicationPreferences; } /** ** The transformation preferences for non-database applications. *
* * @return The transformation preferences for non-database applications. */ public ApplicationPreferences getApplicationPreferences() { return this.applicationPreferences; } /** ** The transformation preferences for non-database applications. *
* * @param applicationPreferences * The transformation preferences for non-database applications. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPortfolioPreferencesResult withApplicationPreferences(ApplicationPreferences applicationPreferences) { setApplicationPreferences(applicationPreferences); return this; } /** ** The transformation preferences for database applications. *
* * @param databasePreferences * The transformation preferences for database applications. */ public void setDatabasePreferences(DatabasePreferences databasePreferences) { this.databasePreferences = databasePreferences; } /** ** The transformation preferences for database applications. *
* * @return The transformation preferences for database applications. */ public DatabasePreferences getDatabasePreferences() { return this.databasePreferences; } /** ** The transformation preferences for database applications. *
* * @param databasePreferences * The transformation preferences for database applications. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPortfolioPreferencesResult withDatabasePreferences(DatabasePreferences databasePreferences) { setDatabasePreferences(databasePreferences); return this; } /** ** The rank of business goals based on priority. *
* * @param prioritizeBusinessGoals * The rank of business goals based on priority. */ public void setPrioritizeBusinessGoals(PrioritizeBusinessGoals prioritizeBusinessGoals) { this.prioritizeBusinessGoals = prioritizeBusinessGoals; } /** ** The rank of business goals based on priority. *
* * @return The rank of business goals based on priority. */ public PrioritizeBusinessGoals getPrioritizeBusinessGoals() { return this.prioritizeBusinessGoals; } /** ** The rank of business goals based on priority. *
* * @param prioritizeBusinessGoals * The rank of business goals based on priority. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPortfolioPreferencesResult withPrioritizeBusinessGoals(PrioritizeBusinessGoals prioritizeBusinessGoals) { setPrioritizeBusinessGoals(prioritizeBusinessGoals); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getApplicationMode() != null) sb.append("ApplicationMode: ").append(getApplicationMode()).append(","); if (getApplicationPreferences() != null) sb.append("ApplicationPreferences: ").append(getApplicationPreferences()).append(","); if (getDatabasePreferences() != null) sb.append("DatabasePreferences: ").append(getDatabasePreferences()).append(","); if (getPrioritizeBusinessGoals() != null) sb.append("PrioritizeBusinessGoals: ").append(getPrioritizeBusinessGoals()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetPortfolioPreferencesResult == false) return false; GetPortfolioPreferencesResult other = (GetPortfolioPreferencesResult) obj; if (other.getApplicationMode() == null ^ this.getApplicationMode() == null) return false; if (other.getApplicationMode() != null && other.getApplicationMode().equals(this.getApplicationMode()) == false) return false; if (other.getApplicationPreferences() == null ^ this.getApplicationPreferences() == null) return false; if (other.getApplicationPreferences() != null && other.getApplicationPreferences().equals(this.getApplicationPreferences()) == false) return false; if (other.getDatabasePreferences() == null ^ this.getDatabasePreferences() == null) return false; if (other.getDatabasePreferences() != null && other.getDatabasePreferences().equals(this.getDatabasePreferences()) == false) return false; if (other.getPrioritizeBusinessGoals() == null ^ this.getPrioritizeBusinessGoals() == null) return false; if (other.getPrioritizeBusinessGoals() != null && other.getPrioritizeBusinessGoals().equals(this.getPrioritizeBusinessGoals()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationMode() == null) ? 0 : getApplicationMode().hashCode()); hashCode = prime * hashCode + ((getApplicationPreferences() == null) ? 0 : getApplicationPreferences().hashCode()); hashCode = prime * hashCode + ((getDatabasePreferences() == null) ? 0 : getDatabasePreferences().hashCode()); hashCode = prime * hashCode + ((getPrioritizeBusinessGoals() == null) ? 0 : getPrioritizeBusinessGoals().hashCode()); return hashCode; } @Override public GetPortfolioPreferencesResult clone() { try { return (GetPortfolioPreferencesResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }