@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEstimatedMonthlySavings() == null) ? 0 : getEstimatedMonthlySavings().hashCode()); hashCode = prime * hashCode + ((getEstimatedPercentMonthlySavings() == null) ? 0 : getEstimatedPercentMonthlySavings().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCostOptimizing() == null) ? 0 : getCostOptimizing().hashCode()); return hashCode; }
/** * <p> * The estimated monthly savings that might be realized if the recommended actions are taken. * </p> * * @param estimatedMonthlySavings * The estimated monthly savings that might be realized if the recommended actions are taken. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCostOptimizingSummary withEstimatedMonthlySavings(Double estimatedMonthlySavings) { setEstimatedMonthlySavings(estimatedMonthlySavings); return this; }
public TrustedAdvisorCostOptimizingSummary unmarshall(JsonUnmarshallerContext context) throws Exception { TrustedAdvisorCostOptimizingSummary trustedAdvisorCostOptimizingSummary = new TrustedAdvisorCostOptimizingSummary(); if (context.testExpression("estimatedMonthlySavings", targetDepth)) { context.nextToken(); trustedAdvisorCostOptimizingSummary.setEstimatedMonthlySavings(context.getUnmarshaller(Double.class).unmarshall(context)); trustedAdvisorCostOptimizingSummary.setEstimatedPercentMonthlySavings(context.getUnmarshaller(Double.class).unmarshall(context));
/** * <p> * The estimated percentage of savings that might be realized if the recommended actions are taken. * </p> * * @param estimatedPercentMonthlySavings * The estimated percentage of savings that might be realized if the recommended actions are taken. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCostOptimizingSummary withEstimatedPercentMonthlySavings(Double estimatedPercentMonthlySavings) { setEstimatedPercentMonthlySavings(estimatedPercentMonthlySavings); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TrustedAdvisorCategorySpecificSummary == false) return false; TrustedAdvisorCategorySpecificSummary other = (TrustedAdvisorCategorySpecificSummary) obj; if (other.getCostOptimizing() == null ^ this.getCostOptimizing() == null) return false; if (other.getCostOptimizing() != null && other.getCostOptimizing().equals(this.getCostOptimizing()) == false) return false; return true; }
public TrustedAdvisorCostOptimizingSummary unmarshall(JsonUnmarshallerContext context) throws Exception { TrustedAdvisorCostOptimizingSummary trustedAdvisorCostOptimizingSummary = new TrustedAdvisorCostOptimizingSummary(); if (context.testExpression("estimatedMonthlySavings", targetDepth)) { context.nextToken(); trustedAdvisorCostOptimizingSummary.setEstimatedMonthlySavings(context.getUnmarshaller(Double.class).unmarshall(context)); trustedAdvisorCostOptimizingSummary.setEstimatedPercentMonthlySavings(context.getUnmarshaller(Double.class).unmarshall(context));
/** * <p> * The estimated percentage of savings that might be realized if the recommended actions are taken. * </p> * * @param estimatedPercentMonthlySavings * The estimated percentage of savings that might be realized if the recommended actions are taken. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCostOptimizingSummary withEstimatedPercentMonthlySavings(Double estimatedPercentMonthlySavings) { setEstimatedPercentMonthlySavings(estimatedPercentMonthlySavings); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TrustedAdvisorCategorySpecificSummary == false) return false; TrustedAdvisorCategorySpecificSummary other = (TrustedAdvisorCategorySpecificSummary) obj; if (other.getCostOptimizing() == null ^ this.getCostOptimizing() == null) return false; if (other.getCostOptimizing() != null && other.getCostOptimizing().equals(this.getCostOptimizing()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TrustedAdvisorCostOptimizingSummary == false) return false; TrustedAdvisorCostOptimizingSummary other = (TrustedAdvisorCostOptimizingSummary) obj; if (other.getEstimatedMonthlySavings() == null ^ this.getEstimatedMonthlySavings() == null) return false; if (other.getEstimatedMonthlySavings() != null && other.getEstimatedMonthlySavings().equals(this.getEstimatedMonthlySavings()) == false) return false; if (other.getEstimatedPercentMonthlySavings() == null ^ this.getEstimatedPercentMonthlySavings() == null) return false; if (other.getEstimatedPercentMonthlySavings() != null && other.getEstimatedPercentMonthlySavings().equals(this.getEstimatedPercentMonthlySavings()) == false) return false; return true; }
/** * <p> * The estimated monthly savings that might be realized if the recommended actions are taken. * </p> * * @param estimatedMonthlySavings * The estimated monthly savings that might be realized if the recommended actions are taken. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCostOptimizingSummary withEstimatedMonthlySavings(Double estimatedMonthlySavings) { setEstimatedMonthlySavings(estimatedMonthlySavings); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCostOptimizing() == null) ? 0 : getCostOptimizing().hashCode()); return hashCode; }
/** * 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 (getEstimatedMonthlySavings() != null) sb.append("EstimatedMonthlySavings: ").append(getEstimatedMonthlySavings()).append(","); if (getEstimatedPercentMonthlySavings() != null) sb.append("EstimatedPercentMonthlySavings: ").append(getEstimatedPercentMonthlySavings()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(TrustedAdvisorCostOptimizingSummary trustedAdvisorCostOptimizingSummary, ProtocolMarshaller protocolMarshaller) { if (trustedAdvisorCostOptimizingSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(trustedAdvisorCostOptimizingSummary.getEstimatedMonthlySavings(), ESTIMATEDMONTHLYSAVINGS_BINDING); protocolMarshaller.marshall(trustedAdvisorCostOptimizingSummary.getEstimatedPercentMonthlySavings(), ESTIMATEDPERCENTMONTHLYSAVINGS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEstimatedMonthlySavings() == null) ? 0 : getEstimatedMonthlySavings().hashCode()); hashCode = prime * hashCode + ((getEstimatedPercentMonthlySavings() == null) ? 0 : getEstimatedPercentMonthlySavings().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TrustedAdvisorCostOptimizingSummary == false) return false; TrustedAdvisorCostOptimizingSummary other = (TrustedAdvisorCostOptimizingSummary) obj; if (other.getEstimatedMonthlySavings() == null ^ this.getEstimatedMonthlySavings() == null) return false; if (other.getEstimatedMonthlySavings() != null && other.getEstimatedMonthlySavings().equals(this.getEstimatedMonthlySavings()) == false) return false; if (other.getEstimatedPercentMonthlySavings() == null ^ this.getEstimatedPercentMonthlySavings() == null) return false; if (other.getEstimatedPercentMonthlySavings() != null && other.getEstimatedPercentMonthlySavings().equals(this.getEstimatedPercentMonthlySavings()) == false) return false; return true; }
/** * 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 (getEstimatedMonthlySavings() != null) sb.append("EstimatedMonthlySavings: ").append(getEstimatedMonthlySavings()).append(","); if (getEstimatedPercentMonthlySavings() != null) sb.append("EstimatedPercentMonthlySavings: ").append(getEstimatedPercentMonthlySavings()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(TrustedAdvisorCostOptimizingSummary trustedAdvisorCostOptimizingSummary, ProtocolMarshaller protocolMarshaller) { if (trustedAdvisorCostOptimizingSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(trustedAdvisorCostOptimizingSummary.getEstimatedMonthlySavings(), ESTIMATEDMONTHLYSAVINGS_BINDING); protocolMarshaller.marshall(trustedAdvisorCostOptimizingSummary.getEstimatedPercentMonthlySavings(), ESTIMATEDPERCENTMONTHLYSAVINGS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }