* Every DeleteInventory
operation is assigned a unique ID. This option returns a unique ID. You can
* use this ID to query the status of a delete operation. This option is useful for ensuring that a delete operation
* has completed before you begin other operations.
*
* The name of the inventory data type specified in the request. *
*/ private String typeName; /** ** A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide. *
*/ private InventoryDeletionSummary deletionSummary; /** *
* Every DeleteInventory
operation is assigned a unique ID. This option returns a unique ID. You can
* use this ID to query the status of a delete operation. This option is useful for ensuring that a delete operation
* has completed before you begin other operations.
*
DeleteInventory
operation is assigned a unique ID. This option returns a unique ID. You
* can use this ID to query the status of a delete operation. This option is useful for ensuring that a
* delete operation has completed before you begin other operations.
*/
public void setDeletionId(String deletionId) {
this.deletionId = deletionId;
}
/**
*
* Every DeleteInventory
operation is assigned a unique ID. This option returns a unique ID. You can
* use this ID to query the status of a delete operation. This option is useful for ensuring that a delete operation
* has completed before you begin other operations.
*
DeleteInventory
operation is assigned a unique ID. This option returns a unique ID.
* You can use this ID to query the status of a delete operation. This option is useful for ensuring that a
* delete operation has completed before you begin other operations.
*/
public String getDeletionId() {
return this.deletionId;
}
/**
*
* Every DeleteInventory
operation is assigned a unique ID. This option returns a unique ID. You can
* use this ID to query the status of a delete operation. This option is useful for ensuring that a delete operation
* has completed before you begin other operations.
*
DeleteInventory
operation is assigned a unique ID. This option returns a unique ID. You
* can use this ID to query the status of a delete operation. This option is useful for ensuring that a
* delete operation has completed before you begin other operations.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteInventoryResult withDeletionId(String deletionId) {
setDeletionId(deletionId);
return this;
}
/**
* * The name of the inventory data type specified in the request. *
* * @param typeName * The name of the inventory data type specified in the request. */ public void setTypeName(String typeName) { this.typeName = typeName; } /** ** The name of the inventory data type specified in the request. *
* * @return The name of the inventory data type specified in the request. */ public String getTypeName() { return this.typeName; } /** ** The name of the inventory data type specified in the request. *
* * @param typeName * The name of the inventory data type specified in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteInventoryResult withTypeName(String typeName) { setTypeName(typeName); return this; } /** ** A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide. *
* * @param deletionSummary * A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide. */ public void setDeletionSummary(InventoryDeletionSummary deletionSummary) { this.deletionSummary = deletionSummary; } /** ** A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide. *
* * @return A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide. */ public InventoryDeletionSummary getDeletionSummary() { return this.deletionSummary; } /** ** A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide. *
* * @param deletionSummary * A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteInventoryResult withDeletionSummary(InventoryDeletionSummary deletionSummary) { setDeletionSummary(deletionSummary); 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 (getDeletionId() != null) sb.append("DeletionId: ").append(getDeletionId()).append(","); if (getTypeName() != null) sb.append("TypeName: ").append(getTypeName()).append(","); if (getDeletionSummary() != null) sb.append("DeletionSummary: ").append(getDeletionSummary()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteInventoryResult == false) return false; DeleteInventoryResult other = (DeleteInventoryResult) obj; if (other.getDeletionId() == null ^ this.getDeletionId() == null) return false; if (other.getDeletionId() != null && other.getDeletionId().equals(this.getDeletionId()) == false) return false; if (other.getTypeName() == null ^ this.getTypeName() == null) return false; if (other.getTypeName() != null && other.getTypeName().equals(this.getTypeName()) == false) return false; if (other.getDeletionSummary() == null ^ this.getDeletionSummary() == null) return false; if (other.getDeletionSummary() != null && other.getDeletionSummary().equals(this.getDeletionSummary()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeletionId() == null) ? 0 : getDeletionId().hashCode()); hashCode = prime * hashCode + ((getTypeName() == null) ? 0 : getTypeName().hashCode()); hashCode = prime * hashCode + ((getDeletionSummary() == null) ? 0 : getDeletionSummary().hashCode()); return hashCode; } @Override public DeleteInventoryResult clone() { try { return (DeleteInventoryResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }