(additionalStagingLabelsToDownload);
}
/**
* Optional. The staging labels whose values you want to make available on the core, in addition to ''AWSCURRENT''.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAdditionalStagingLabelsToDownload(java.util.Collection)} or
* {@link #withAdditionalStagingLabelsToDownload(java.util.Collection)} if you want to override the existing values.
*
*
* @param additionalStagingLabelsToDownload
* Optional. The staging labels whose values you want to make available on the core, in addition to
* ''AWSCURRENT''.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SecretsManagerSecretResourceData withAdditionalStagingLabelsToDownload(String... additionalStagingLabelsToDownload) {
if (this.additionalStagingLabelsToDownload == null) {
setAdditionalStagingLabelsToDownload(new java.util.ArrayList(additionalStagingLabelsToDownload.length));
}
for (String ele : additionalStagingLabelsToDownload) {
this.additionalStagingLabelsToDownload.add(ele);
}
return this;
}
/**
* Optional. The staging labels whose values you want to make available on the core, in addition to ''AWSCURRENT''.
*
* @param additionalStagingLabelsToDownload
* Optional. The staging labels whose values you want to make available on the core, in addition to
* ''AWSCURRENT''.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SecretsManagerSecretResourceData withAdditionalStagingLabelsToDownload(java.util.Collection additionalStagingLabelsToDownload) {
setAdditionalStagingLabelsToDownload(additionalStagingLabelsToDownload);
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 (getARN() != null)
sb.append("ARN: ").append(getARN()).append(",");
if (getAdditionalStagingLabelsToDownload() != null)
sb.append("AdditionalStagingLabelsToDownload: ").append(getAdditionalStagingLabelsToDownload());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof SecretsManagerSecretResourceData == false)
return false;
SecretsManagerSecretResourceData other = (SecretsManagerSecretResourceData) obj;
if (other.getARN() == null ^ this.getARN() == null)
return false;
if (other.getARN() != null && other.getARN().equals(this.getARN()) == false)
return false;
if (other.getAdditionalStagingLabelsToDownload() == null ^ this.getAdditionalStagingLabelsToDownload() == null)
return false;
if (other.getAdditionalStagingLabelsToDownload() != null
&& other.getAdditionalStagingLabelsToDownload().equals(this.getAdditionalStagingLabelsToDownload()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getARN() == null) ? 0 : getARN().hashCode());
hashCode = prime * hashCode + ((getAdditionalStagingLabelsToDownload() == null) ? 0 : getAdditionalStagingLabelsToDownload().hashCode());
return hashCode;
}
@Override
public SecretsManagerSecretResourceData clone() {
try {
return (SecretsManagerSecretResourceData) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.greengrass.model.transform.SecretsManagerSecretResourceDataMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}