com.amazonaws.services.simplesystemsmanagement.model.DeleteInventoryResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ssm Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.simplesystemsmanagement.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DeleteInventoryResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* 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.
*
*/
private String deletionId;
/**
*
* 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 Understanding the delete inventory summary 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.
*
*
* @param 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.
*/
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.
*
*
* @return 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.
*/
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.
*
*
* @param 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.
* @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 Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.
*
*
* @param deletionSummary
* A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary 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 Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.
*
*
* @return A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary 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 Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.
*
*
* @param deletionSummary
* A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary 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);
}
}
}