@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMaximumPerMinute() == null) ? 0 : getMaximumPerMinute().hashCode()); hashCode = prime * hashCode + ((getExponentialRate() == null) ? 0 : getExponentialRate().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 (getMaximumPerMinute() != null) sb.append("MaximumPerMinute: ").append(getMaximumPerMinute()).append(","); if (getExponentialRate() != null) sb.append("ExponentialRate: ").append(getExponentialRate()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JobExecutionsRolloutConfig == false) return false; JobExecutionsRolloutConfig other = (JobExecutionsRolloutConfig) obj; if (other.getMaximumPerMinute() == null ^ this.getMaximumPerMinute() == null) return false; if (other.getMaximumPerMinute() != null && other.getMaximumPerMinute().equals(this.getMaximumPerMinute()) == false) return false; if (other.getExponentialRate() == null ^ this.getExponentialRate() == null) return false; if (other.getExponentialRate() != null && other.getExponentialRate().equals(this.getExponentialRate()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(JobExecutionsRolloutConfig jobExecutionsRolloutConfig, ProtocolMarshaller protocolMarshaller) { if (jobExecutionsRolloutConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(jobExecutionsRolloutConfig.getMaximumPerMinute(), MAXIMUMPERMINUTE_BINDING); protocolMarshaller.marshall(jobExecutionsRolloutConfig.getExponentialRate(), EXPONENTIALRATE_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 + ((getMaximumPerMinute() == null) ? 0 : getMaximumPerMinute().hashCode()); hashCode = prime * hashCode + ((getExponentialRate() == null) ? 0 : getExponentialRate().hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getMaximumPerMinute() != null) sb.append("maximumPerMinute: " + getMaximumPerMinute() + ","); if (getExponentialRate() != null) sb.append("exponentialRate: " + getExponentialRate()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JobExecutionsRolloutConfig == false) return false; JobExecutionsRolloutConfig other = (JobExecutionsRolloutConfig) obj; if (other.getMaximumPerMinute() == null ^ this.getMaximumPerMinute() == null) return false; if (other.getMaximumPerMinute() != null && other.getMaximumPerMinute().equals(this.getMaximumPerMinute()) == false) return false; if (other.getExponentialRate() == null ^ this.getExponentialRate() == null) return false; if (other.getExponentialRate() != null && other.getExponentialRate().equals(this.getExponentialRate()) == false) return false; return true; } }
public void marshall(JobExecutionsRolloutConfig jobExecutionsRolloutConfig, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (jobExecutionsRolloutConfig.getMaximumPerMinute() != null) { Integer maximumPerMinute = jobExecutionsRolloutConfig.getMaximumPerMinute(); jsonWriter.name("maximumPerMinute"); jsonWriter.value(maximumPerMinute); } if (jobExecutionsRolloutConfig.getExponentialRate() != null) { ExponentialRolloutRate exponentialRate = jobExecutionsRolloutConfig .getExponentialRate(); jsonWriter.name("exponentialRate"); ExponentialRolloutRateJsonMarshaller.getInstance() .marshall(exponentialRate, jsonWriter); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMaximumPerMinute() == null) ? 0 : getMaximumPerMinute().hashCode()); hashCode = prime * hashCode + ((getExponentialRate() == null) ? 0 : getExponentialRate().hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getMaximumPerMinute() != null) sb.append("maximumPerMinute: " + getMaximumPerMinute() + ","); if (getExponentialRate() != null) sb.append("exponentialRate: " + getExponentialRate()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMaximumPerMinute() == null) ? 0 : getMaximumPerMinute().hashCode()); hashCode = prime * hashCode + ((getExponentialRate() == null) ? 0 : getExponentialRate().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 (getMaximumPerMinute() != null) sb.append("MaximumPerMinute: ").append(getMaximumPerMinute()).append(","); if (getExponentialRate() != null) sb.append("ExponentialRate: ").append(getExponentialRate()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JobExecutionsRolloutConfig == false) return false; JobExecutionsRolloutConfig other = (JobExecutionsRolloutConfig) obj; if (other.getMaximumPerMinute() == null ^ this.getMaximumPerMinute() == null) return false; if (other.getMaximumPerMinute() != null && other.getMaximumPerMinute().equals(this.getMaximumPerMinute()) == false) return false; if (other.getExponentialRate() == null ^ this.getExponentialRate() == null) return false; if (other.getExponentialRate() != null && other.getExponentialRate().equals(this.getExponentialRate()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JobExecutionsRolloutConfig == false) return false; JobExecutionsRolloutConfig other = (JobExecutionsRolloutConfig) obj; if (other.getMaximumPerMinute() == null ^ this.getMaximumPerMinute() == null) return false; if (other.getMaximumPerMinute() != null && other.getMaximumPerMinute().equals(this.getMaximumPerMinute()) == false) return false; if (other.getExponentialRate() == null ^ this.getExponentialRate() == null) return false; if (other.getExponentialRate() != null && other.getExponentialRate().equals(this.getExponentialRate()) == false) return false; return true; } }
/** * Marshall the given parameter object. */ public void marshall(JobExecutionsRolloutConfig jobExecutionsRolloutConfig, ProtocolMarshaller protocolMarshaller) { if (jobExecutionsRolloutConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(jobExecutionsRolloutConfig.getMaximumPerMinute(), MAXIMUMPERMINUTE_BINDING); protocolMarshaller.marshall(jobExecutionsRolloutConfig.getExponentialRate(), EXPONENTIALRATE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(JobExecutionsRolloutConfig jobExecutionsRolloutConfig, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (jobExecutionsRolloutConfig.getMaximumPerMinute() != null) { Integer maximumPerMinute = jobExecutionsRolloutConfig.getMaximumPerMinute(); jsonWriter.name("maximumPerMinute"); jsonWriter.value(maximumPerMinute); } if (jobExecutionsRolloutConfig.getExponentialRate() != null) { ExponentialRolloutRate exponentialRate = jobExecutionsRolloutConfig .getExponentialRate(); jsonWriter.name("exponentialRate"); ExponentialRolloutRateJsonMarshaller.getInstance() .marshall(exponentialRate, jsonWriter); } jsonWriter.endObject(); }