
com.amazonaws.services.iot.model.DeleteOTAUpdateRequest Maven / Gradle / Ivy
/*
* Copyright 2015-2020 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.iot.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DeleteOTAUpdateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The ID of the OTA update to delete.
*
*/
private String otaUpdateId;
/**
*
* Specifies if the stream associated with an OTA update should be deleted when the OTA update is deleted.
*
*/
private Boolean deleteStream;
/**
*
* Specifies if the AWS Job associated with the OTA update should be deleted when the OTA update is deleted.
*
*/
private Boolean forceDeleteAWSJob;
/**
*
* The ID of the OTA update to delete.
*
*
* @param otaUpdateId
* The ID of the OTA update to delete.
*/
public void setOtaUpdateId(String otaUpdateId) {
this.otaUpdateId = otaUpdateId;
}
/**
*
* The ID of the OTA update to delete.
*
*
* @return The ID of the OTA update to delete.
*/
public String getOtaUpdateId() {
return this.otaUpdateId;
}
/**
*
* The ID of the OTA update to delete.
*
*
* @param otaUpdateId
* The ID of the OTA update to delete.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteOTAUpdateRequest withOtaUpdateId(String otaUpdateId) {
setOtaUpdateId(otaUpdateId);
return this;
}
/**
*
* Specifies if the stream associated with an OTA update should be deleted when the OTA update is deleted.
*
*
* @param deleteStream
* Specifies if the stream associated with an OTA update should be deleted when the OTA update is deleted.
*/
public void setDeleteStream(Boolean deleteStream) {
this.deleteStream = deleteStream;
}
/**
*
* Specifies if the stream associated with an OTA update should be deleted when the OTA update is deleted.
*
*
* @return Specifies if the stream associated with an OTA update should be deleted when the OTA update is deleted.
*/
public Boolean getDeleteStream() {
return this.deleteStream;
}
/**
*
* Specifies if the stream associated with an OTA update should be deleted when the OTA update is deleted.
*
*
* @param deleteStream
* Specifies if the stream associated with an OTA update should be deleted when the OTA update is deleted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteOTAUpdateRequest withDeleteStream(Boolean deleteStream) {
setDeleteStream(deleteStream);
return this;
}
/**
*
* Specifies if the stream associated with an OTA update should be deleted when the OTA update is deleted.
*
*
* @return Specifies if the stream associated with an OTA update should be deleted when the OTA update is deleted.
*/
public Boolean isDeleteStream() {
return this.deleteStream;
}
/**
*
* Specifies if the AWS Job associated with the OTA update should be deleted when the OTA update is deleted.
*
*
* @param forceDeleteAWSJob
* Specifies if the AWS Job associated with the OTA update should be deleted when the OTA update is deleted.
*/
public void setForceDeleteAWSJob(Boolean forceDeleteAWSJob) {
this.forceDeleteAWSJob = forceDeleteAWSJob;
}
/**
*
* Specifies if the AWS Job associated with the OTA update should be deleted when the OTA update is deleted.
*
*
* @return Specifies if the AWS Job associated with the OTA update should be deleted when the OTA update is deleted.
*/
public Boolean getForceDeleteAWSJob() {
return this.forceDeleteAWSJob;
}
/**
*
* Specifies if the AWS Job associated with the OTA update should be deleted when the OTA update is deleted.
*
*
* @param forceDeleteAWSJob
* Specifies if the AWS Job associated with the OTA update should be deleted when the OTA update is deleted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteOTAUpdateRequest withForceDeleteAWSJob(Boolean forceDeleteAWSJob) {
setForceDeleteAWSJob(forceDeleteAWSJob);
return this;
}
/**
*
* Specifies if the AWS Job associated with the OTA update should be deleted when the OTA update is deleted.
*
*
* @return Specifies if the AWS Job associated with the OTA update should be deleted when the OTA update is deleted.
*/
public Boolean isForceDeleteAWSJob() {
return this.forceDeleteAWSJob;
}
/**
* 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 (getOtaUpdateId() != null)
sb.append("OtaUpdateId: ").append(getOtaUpdateId()).append(",");
if (getDeleteStream() != null)
sb.append("DeleteStream: ").append(getDeleteStream()).append(",");
if (getForceDeleteAWSJob() != null)
sb.append("ForceDeleteAWSJob: ").append(getForceDeleteAWSJob());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteOTAUpdateRequest == false)
return false;
DeleteOTAUpdateRequest other = (DeleteOTAUpdateRequest) obj;
if (other.getOtaUpdateId() == null ^ this.getOtaUpdateId() == null)
return false;
if (other.getOtaUpdateId() != null && other.getOtaUpdateId().equals(this.getOtaUpdateId()) == false)
return false;
if (other.getDeleteStream() == null ^ this.getDeleteStream() == null)
return false;
if (other.getDeleteStream() != null && other.getDeleteStream().equals(this.getDeleteStream()) == false)
return false;
if (other.getForceDeleteAWSJob() == null ^ this.getForceDeleteAWSJob() == null)
return false;
if (other.getForceDeleteAWSJob() != null && other.getForceDeleteAWSJob().equals(this.getForceDeleteAWSJob()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getOtaUpdateId() == null) ? 0 : getOtaUpdateId().hashCode());
hashCode = prime * hashCode + ((getDeleteStream() == null) ? 0 : getDeleteStream().hashCode());
hashCode = prime * hashCode + ((getForceDeleteAWSJob() == null) ? 0 : getForceDeleteAWSJob().hashCode());
return hashCode;
}
@Override
public DeleteOTAUpdateRequest clone() {
return (DeleteOTAUpdateRequest) super.clone();
}
}