* The name of the label group that you have created. Data in this field will be retained for service usage. Follow * best practices for the security of your data. *
*/ private String labelGroupName; /** ** The ARN of the label group that you have created. *
*/ private String labelGroupArn; /** ** The name of the label group that you have created. Data in this field will be retained for service usage. Follow * best practices for the security of your data. *
* * @param labelGroupName * The name of the label group that you have created. Data in this field will be retained for service usage. * Follow best practices for the security of your data. */ public void setLabelGroupName(String labelGroupName) { this.labelGroupName = labelGroupName; } /** ** The name of the label group that you have created. Data in this field will be retained for service usage. Follow * best practices for the security of your data. *
* * @return The name of the label group that you have created. Data in this field will be retained for service usage. * Follow best practices for the security of your data. */ public String getLabelGroupName() { return this.labelGroupName; } /** ** The name of the label group that you have created. Data in this field will be retained for service usage. Follow * best practices for the security of your data. *
* * @param labelGroupName * The name of the label group that you have created. Data in this field will be retained for service usage. * Follow best practices for the security of your data. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLabelGroupResult withLabelGroupName(String labelGroupName) { setLabelGroupName(labelGroupName); return this; } /** ** The ARN of the label group that you have created. *
* * @param labelGroupArn * The ARN of the label group that you have created. */ public void setLabelGroupArn(String labelGroupArn) { this.labelGroupArn = labelGroupArn; } /** ** The ARN of the label group that you have created. *
* * @return The ARN of the label group that you have created. */ public String getLabelGroupArn() { return this.labelGroupArn; } /** ** The ARN of the label group that you have created. *
* * @param labelGroupArn * The ARN of the label group that you have created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLabelGroupResult withLabelGroupArn(String labelGroupArn) { setLabelGroupArn(labelGroupArn); 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 (getLabelGroupName() != null) sb.append("LabelGroupName: ").append(getLabelGroupName()).append(","); if (getLabelGroupArn() != null) sb.append("LabelGroupArn: ").append(getLabelGroupArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateLabelGroupResult == false) return false; CreateLabelGroupResult other = (CreateLabelGroupResult) obj; if (other.getLabelGroupName() == null ^ this.getLabelGroupName() == null) return false; if (other.getLabelGroupName() != null && other.getLabelGroupName().equals(this.getLabelGroupName()) == false) return false; if (other.getLabelGroupArn() == null ^ this.getLabelGroupArn() == null) return false; if (other.getLabelGroupArn() != null && other.getLabelGroupArn().equals(this.getLabelGroupArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLabelGroupName() == null) ? 0 : getLabelGroupName().hashCode()); hashCode = prime * hashCode + ((getLabelGroupArn() == null) ? 0 : getLabelGroupArn().hashCode()); return hashCode; } @Override public CreateLabelGroupResult clone() { try { return (CreateLabelGroupResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }