@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeTrustedAdvisorCheckSummariesRequest == false) return false; DescribeTrustedAdvisorCheckSummariesRequest other = (DescribeTrustedAdvisorCheckSummariesRequest) obj; if (other.getCheckIds() == null ^ this.getCheckIds() == null) return false; if (other.getCheckIds() != null && other.getCheckIds().equals(this.getCheckIds()) == false) return false; return true; }
/** * <p> * The IDs of the Trusted Advisor checks. * </p> * * @param checkIds * The IDs of the Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorCheckSummariesRequest withCheckIds(java.util.Collection<String> checkIds) { setCheckIds(checkIds); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCheckIds() == null) ? 0 : getCheckIds().hashCode()); return hashCode; }
/** * <p> * The IDs of the Trusted Advisor checks. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCheckIds(java.util.Collection)} or {@link #withCheckIds(java.util.Collection)} if you want to override * the existing values. * </p> * * @param checkIds * The IDs of the Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorCheckSummariesRequest withCheckIds(String... checkIds) { if (this.checkIds == null) { setCheckIds(new com.amazonaws.internal.SdkInternalList<String>(checkIds.length)); } for (String ele : checkIds) { this.checkIds.add(ele); } 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 (getCheckIds() != null) sb.append("CheckIds: ").append(getCheckIds()); sb.append("}"); return sb.toString(); }
/** * <p> * The IDs of the Trusted Advisor checks. * </p> * * @param checkIds * The IDs of the Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorCheckSummariesRequest withCheckIds(java.util.Collection<String> checkIds) { setCheckIds(checkIds); return this; }
/** * Marshall the given parameter object. */ public void marshall(DescribeTrustedAdvisorCheckSummariesRequest describeTrustedAdvisorCheckSummariesRequest, ProtocolMarshaller protocolMarshaller) { if (describeTrustedAdvisorCheckSummariesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeTrustedAdvisorCheckSummariesRequest.getCheckIds(), CHECKIDS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * <p> * The IDs of the Trusted Advisor checks. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCheckIds(java.util.Collection)} or {@link #withCheckIds(java.util.Collection)} if you want to override * the existing values. * </p> * * @param checkIds * The IDs of the Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorCheckSummariesRequest withCheckIds(String... checkIds) { if (this.checkIds == null) { setCheckIds(new com.amazonaws.internal.SdkInternalList<String>(checkIds.length)); } for (String ele : checkIds) { this.checkIds.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeTrustedAdvisorCheckSummariesRequest == false) return false; DescribeTrustedAdvisorCheckSummariesRequest other = (DescribeTrustedAdvisorCheckSummariesRequest) obj; if (other.getCheckIds() == null ^ this.getCheckIds() == null) return false; if (other.getCheckIds() != null && other.getCheckIds().equals(this.getCheckIds()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCheckIds() == null) ? 0 : getCheckIds().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 (getCheckIds() != null) sb.append("CheckIds: ").append(getCheckIds()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(DescribeTrustedAdvisorCheckSummariesRequest describeTrustedAdvisorCheckSummariesRequest, ProtocolMarshaller protocolMarshaller) { if (describeTrustedAdvisorCheckSummariesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeTrustedAdvisorCheckSummariesRequest.getCheckIds(), CHECKIDS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }