@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getKeyId() == null) ? 0 : getKeyId().hashCode()); hashCode = prime * hashCode + ((getTagKeys() == null) ? 0 : getTagKeys().hashCode()); return hashCode; }
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * * @param tagKeys * One or more tag keys. Specify only the tag keys, not the tag values. * @return Returns a reference to this object so that method calls can be chained together. */ public UntagResourceRequest withTagKeys(java.util.Collection<String> tagKeys) { setTagKeys(tagKeys); return this; }
setKeyId(keyId); return this;
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param tagKeys <p> * One or more tag keys. Specify only the tag keys, not the tag * values. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public UntagResourceRequest withTagKeys(String... tagKeys) { if (getTagKeys() == null) { this.tagKeys = new java.util.ArrayList<String>(tagKeys.length); } for (String value : tagKeys) { this.tagKeys.add(value); } return this; }
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param tagKeys <p> * One or more tag keys. Specify only the tag keys, not the tag * values. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public UntagResourceRequest withTagKeys(String... tagKeys) { if (getTagKeys() == null) { this.tagKeys = new java.util.ArrayList<String>(tagKeys.length); } for (String value : tagKeys) { this.tagKeys.add(value); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UntagResourceRequest == false) return false; UntagResourceRequest other = (UntagResourceRequest) obj; if (other.getKeyId() == null ^ this.getKeyId() == null) return false; if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false) return false; if (other.getTagKeys() == null ^ this.getTagKeys() == null) return false; if (other.getTagKeys() != null && other.getTagKeys().equals(this.getTagKeys()) == false) return false; return true; }
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTagKeys(java.util.Collection)} or {@link #withTagKeys(java.util.Collection)} if you want to override * the existing values. * </p> * * @param tagKeys * One or more tag keys. Specify only the tag keys, not the tag values. * @return Returns a reference to this object so that method calls can be chained together. */ public UntagResourceRequest withTagKeys(String... tagKeys) { if (this.tagKeys == null) { setTagKeys(new com.amazonaws.internal.SdkInternalList<String>(tagKeys.length)); } for (String ele : tagKeys) { this.tagKeys.add(ele); } return this; }
setKeyId(keyId); 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 (getKeyId() != null) sb.append("KeyId: ").append(getKeyId()).append(","); if (getTagKeys() != null) sb.append("TagKeys: ").append(getTagKeys()); sb.append("}"); return sb.toString(); }
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param tagKeys <p> * One or more tag keys. Specify only the tag keys, not the tag * values. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public UntagResourceRequest withTagKeys(java.util.Collection<String> tagKeys) { setTagKeys(tagKeys); return this; }
setKeyId(keyId); return this;
/** * Marshall the given parameter object. */ public void marshall(UntagResourceRequest untagResourceRequest, ProtocolMarshaller protocolMarshaller) { if (untagResourceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(untagResourceRequest.getKeyId(), KEYID_BINDING); protocolMarshaller.marshall(untagResourceRequest.getTagKeys(), TAGKEYS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * * @param tagKeys * One or more tag keys. Specify only the tag keys, not the tag values. * @return Returns a reference to this object so that method calls can be chained together. */ public UntagResourceRequest withTagKeys(java.util.Collection<String> tagKeys) { setTagKeys(tagKeys); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getKeyId() == null) ? 0 : getKeyId().hashCode()); hashCode = prime * hashCode + ((getTagKeys() == null) ? 0 : getTagKeys().hashCode()); return hashCode; }
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * * @param tagKeys * One or more tag keys. Specify only the tag keys, not the tag values. * @return Returns a reference to this object so that method calls can be chained together. */ public UntagResourceRequest withTagKeys(java.util.Collection<String> tagKeys) { setTagKeys(tagKeys); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UntagResourceRequest == false) return false; UntagResourceRequest other = (UntagResourceRequest) obj; if (other.getKeyId() == null ^ this.getKeyId() == null) return false; if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false) return false; if (other.getTagKeys() == null ^ this.getTagKeys() == null) return false; if (other.getTagKeys() != null && other.getTagKeys().equals(this.getTagKeys()) == false) return false; return true; } }
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param tagKeys <p> * One or more tag keys. Specify only the tag keys, not the tag * values. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public UntagResourceRequest withTagKeys(java.util.Collection<String> tagKeys) { setTagKeys(tagKeys); return this; }
/** * 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 (getKeyId() != null) sb.append("KeyId: " + getKeyId() + ","); if (getTagKeys() != null) sb.append("TagKeys: " + getTagKeys()); sb.append("}"); return sb.toString(); }
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTagKeys(java.util.Collection)} or {@link #withTagKeys(java.util.Collection)} if you want to override * the existing values. * </p> * * @param tagKeys * One or more tag keys. Specify only the tag keys, not the tag values. * @return Returns a reference to this object so that method calls can be chained together. */ public UntagResourceRequest withTagKeys(String... tagKeys) { if (this.tagKeys == null) { setTagKeys(new com.amazonaws.internal.SdkInternalList<String>(tagKeys.length)); } for (String ele : tagKeys) { this.tagKeys.add(ele); } return this; }
jsonWriter.beginObject(); if (untagResourceRequest.getKeyId() != null) { String keyId = untagResourceRequest.getKeyId(); jsonWriter.name("KeyId"); jsonWriter.value(keyId); if (untagResourceRequest.getTagKeys() != null) { java.util.List<String> tagKeys = untagResourceRequest.getTagKeys(); jsonWriter.name("TagKeys"); jsonWriter.beginArray();