All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.iot.model.JobProcessDetails Maven / Gradle / Ivy

/*
 * Copyright 2010-2018 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;

/**
 * 

* The job process details. *

*/ public class JobProcessDetails implements Serializable { /** *

* The devices on which the job is executing. *

*/ private java.util.List processingTargets; /** *

* The number of things that cancelled the job. *

*/ private Integer numberOfCanceledThings; /** *

* The number of things which successfully completed the job. *

*/ private Integer numberOfSucceededThings; /** *

* The number of things that failed executing the job. *

*/ private Integer numberOfFailedThings; /** *

* The number of things that rejected the job. *

*/ private Integer numberOfRejectedThings; /** *

* The number of things that are awaiting execution of the job. *

*/ private Integer numberOfQueuedThings; /** *

* The number of things currently executing the job. *

*/ private Integer numberOfInProgressThings; /** *

* The number of things that are no longer scheduled to execute the job * because they have been deleted or have been removed from the group that * was a target of the job. *

*/ private Integer numberOfRemovedThings; /** *

* The devices on which the job is executing. *

* * @return

* The devices on which the job is executing. *

*/ public java.util.List getProcessingTargets() { return processingTargets; } /** *

* The devices on which the job is executing. *

* * @param processingTargets

* The devices on which the job is executing. *

*/ public void setProcessingTargets(java.util.Collection processingTargets) { if (processingTargets == null) { this.processingTargets = null; return; } this.processingTargets = new java.util.ArrayList(processingTargets); } /** *

* The devices on which the job is executing. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param processingTargets

* The devices on which the job is executing. *

* @return A reference to this updated object so that method calls can be * chained together. */ public JobProcessDetails withProcessingTargets(String... processingTargets) { if (getProcessingTargets() == null) { this.processingTargets = new java.util.ArrayList(processingTargets.length); } for (String value : processingTargets) { this.processingTargets.add(value); } return this; } /** *

* The devices on which the job is executing. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param processingTargets

* The devices on which the job is executing. *

* @return A reference to this updated object so that method calls can be * chained together. */ public JobProcessDetails withProcessingTargets(java.util.Collection processingTargets) { setProcessingTargets(processingTargets); return this; } /** *

* The number of things that cancelled the job. *

* * @return

* The number of things that cancelled the job. *

*/ public Integer getNumberOfCanceledThings() { return numberOfCanceledThings; } /** *

* The number of things that cancelled the job. *

* * @param numberOfCanceledThings

* The number of things that cancelled the job. *

*/ public void setNumberOfCanceledThings(Integer numberOfCanceledThings) { this.numberOfCanceledThings = numberOfCanceledThings; } /** *

* The number of things that cancelled the job. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param numberOfCanceledThings

* The number of things that cancelled the job. *

* @return A reference to this updated object so that method calls can be * chained together. */ public JobProcessDetails withNumberOfCanceledThings(Integer numberOfCanceledThings) { this.numberOfCanceledThings = numberOfCanceledThings; return this; } /** *

* The number of things which successfully completed the job. *

* * @return

* The number of things which successfully completed the job. *

*/ public Integer getNumberOfSucceededThings() { return numberOfSucceededThings; } /** *

* The number of things which successfully completed the job. *

* * @param numberOfSucceededThings

* The number of things which successfully completed the job. *

*/ public void setNumberOfSucceededThings(Integer numberOfSucceededThings) { this.numberOfSucceededThings = numberOfSucceededThings; } /** *

* The number of things which successfully completed the job. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param numberOfSucceededThings

* The number of things which successfully completed the job. *

* @return A reference to this updated object so that method calls can be * chained together. */ public JobProcessDetails withNumberOfSucceededThings(Integer numberOfSucceededThings) { this.numberOfSucceededThings = numberOfSucceededThings; return this; } /** *

* The number of things that failed executing the job. *

* * @return

* The number of things that failed executing the job. *

*/ public Integer getNumberOfFailedThings() { return numberOfFailedThings; } /** *

* The number of things that failed executing the job. *

* * @param numberOfFailedThings

* The number of things that failed executing the job. *

*/ public void setNumberOfFailedThings(Integer numberOfFailedThings) { this.numberOfFailedThings = numberOfFailedThings; } /** *

* The number of things that failed executing the job. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param numberOfFailedThings

* The number of things that failed executing the job. *

* @return A reference to this updated object so that method calls can be * chained together. */ public JobProcessDetails withNumberOfFailedThings(Integer numberOfFailedThings) { this.numberOfFailedThings = numberOfFailedThings; return this; } /** *

* The number of things that rejected the job. *

* * @return

* The number of things that rejected the job. *

*/ public Integer getNumberOfRejectedThings() { return numberOfRejectedThings; } /** *

* The number of things that rejected the job. *

* * @param numberOfRejectedThings

* The number of things that rejected the job. *

*/ public void setNumberOfRejectedThings(Integer numberOfRejectedThings) { this.numberOfRejectedThings = numberOfRejectedThings; } /** *

* The number of things that rejected the job. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param numberOfRejectedThings

* The number of things that rejected the job. *

* @return A reference to this updated object so that method calls can be * chained together. */ public JobProcessDetails withNumberOfRejectedThings(Integer numberOfRejectedThings) { this.numberOfRejectedThings = numberOfRejectedThings; return this; } /** *

* The number of things that are awaiting execution of the job. *

* * @return

* The number of things that are awaiting execution of the job. *

*/ public Integer getNumberOfQueuedThings() { return numberOfQueuedThings; } /** *

* The number of things that are awaiting execution of the job. *

* * @param numberOfQueuedThings

* The number of things that are awaiting execution of the job. *

*/ public void setNumberOfQueuedThings(Integer numberOfQueuedThings) { this.numberOfQueuedThings = numberOfQueuedThings; } /** *

* The number of things that are awaiting execution of the job. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param numberOfQueuedThings

* The number of things that are awaiting execution of the job. *

* @return A reference to this updated object so that method calls can be * chained together. */ public JobProcessDetails withNumberOfQueuedThings(Integer numberOfQueuedThings) { this.numberOfQueuedThings = numberOfQueuedThings; return this; } /** *

* The number of things currently executing the job. *

* * @return

* The number of things currently executing the job. *

*/ public Integer getNumberOfInProgressThings() { return numberOfInProgressThings; } /** *

* The number of things currently executing the job. *

* * @param numberOfInProgressThings

* The number of things currently executing the job. *

*/ public void setNumberOfInProgressThings(Integer numberOfInProgressThings) { this.numberOfInProgressThings = numberOfInProgressThings; } /** *

* The number of things currently executing the job. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param numberOfInProgressThings

* The number of things currently executing the job. *

* @return A reference to this updated object so that method calls can be * chained together. */ public JobProcessDetails withNumberOfInProgressThings(Integer numberOfInProgressThings) { this.numberOfInProgressThings = numberOfInProgressThings; return this; } /** *

* The number of things that are no longer scheduled to execute the job * because they have been deleted or have been removed from the group that * was a target of the job. *

* * @return

* The number of things that are no longer scheduled to execute the * job because they have been deleted or have been removed from the * group that was a target of the job. *

*/ public Integer getNumberOfRemovedThings() { return numberOfRemovedThings; } /** *

* The number of things that are no longer scheduled to execute the job * because they have been deleted or have been removed from the group that * was a target of the job. *

* * @param numberOfRemovedThings

* The number of things that are no longer scheduled to execute * the job because they have been deleted or have been removed * from the group that was a target of the job. *

*/ public void setNumberOfRemovedThings(Integer numberOfRemovedThings) { this.numberOfRemovedThings = numberOfRemovedThings; } /** *

* The number of things that are no longer scheduled to execute the job * because they have been deleted or have been removed from the group that * was a target of the job. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param numberOfRemovedThings

* The number of things that are no longer scheduled to execute * the job because they have been deleted or have been removed * from the group that was a target of the job. *

* @return A reference to this updated object so that method calls can be * chained together. */ public JobProcessDetails withNumberOfRemovedThings(Integer numberOfRemovedThings) { this.numberOfRemovedThings = numberOfRemovedThings; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getProcessingTargets() != null) sb.append("processingTargets: " + getProcessingTargets() + ","); if (getNumberOfCanceledThings() != null) sb.append("numberOfCanceledThings: " + getNumberOfCanceledThings() + ","); if (getNumberOfSucceededThings() != null) sb.append("numberOfSucceededThings: " + getNumberOfSucceededThings() + ","); if (getNumberOfFailedThings() != null) sb.append("numberOfFailedThings: " + getNumberOfFailedThings() + ","); if (getNumberOfRejectedThings() != null) sb.append("numberOfRejectedThings: " + getNumberOfRejectedThings() + ","); if (getNumberOfQueuedThings() != null) sb.append("numberOfQueuedThings: " + getNumberOfQueuedThings() + ","); if (getNumberOfInProgressThings() != null) sb.append("numberOfInProgressThings: " + getNumberOfInProgressThings() + ","); if (getNumberOfRemovedThings() != null) sb.append("numberOfRemovedThings: " + getNumberOfRemovedThings()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProcessingTargets() == null) ? 0 : getProcessingTargets().hashCode()); hashCode = prime * hashCode + ((getNumberOfCanceledThings() == null) ? 0 : getNumberOfCanceledThings() .hashCode()); hashCode = prime * hashCode + ((getNumberOfSucceededThings() == null) ? 0 : getNumberOfSucceededThings() .hashCode()); hashCode = prime * hashCode + ((getNumberOfFailedThings() == null) ? 0 : getNumberOfFailedThings().hashCode()); hashCode = prime * hashCode + ((getNumberOfRejectedThings() == null) ? 0 : getNumberOfRejectedThings() .hashCode()); hashCode = prime * hashCode + ((getNumberOfQueuedThings() == null) ? 0 : getNumberOfQueuedThings().hashCode()); hashCode = prime * hashCode + ((getNumberOfInProgressThings() == null) ? 0 : getNumberOfInProgressThings() .hashCode()); hashCode = prime * hashCode + ((getNumberOfRemovedThings() == null) ? 0 : getNumberOfRemovedThings().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JobProcessDetails == false) return false; JobProcessDetails other = (JobProcessDetails) obj; if (other.getProcessingTargets() == null ^ this.getProcessingTargets() == null) return false; if (other.getProcessingTargets() != null && other.getProcessingTargets().equals(this.getProcessingTargets()) == false) return false; if (other.getNumberOfCanceledThings() == null ^ this.getNumberOfCanceledThings() == null) return false; if (other.getNumberOfCanceledThings() != null && other.getNumberOfCanceledThings().equals(this.getNumberOfCanceledThings()) == false) return false; if (other.getNumberOfSucceededThings() == null ^ this.getNumberOfSucceededThings() == null) return false; if (other.getNumberOfSucceededThings() != null && other.getNumberOfSucceededThings().equals(this.getNumberOfSucceededThings()) == false) return false; if (other.getNumberOfFailedThings() == null ^ this.getNumberOfFailedThings() == null) return false; if (other.getNumberOfFailedThings() != null && other.getNumberOfFailedThings().equals(this.getNumberOfFailedThings()) == false) return false; if (other.getNumberOfRejectedThings() == null ^ this.getNumberOfRejectedThings() == null) return false; if (other.getNumberOfRejectedThings() != null && other.getNumberOfRejectedThings().equals(this.getNumberOfRejectedThings()) == false) return false; if (other.getNumberOfQueuedThings() == null ^ this.getNumberOfQueuedThings() == null) return false; if (other.getNumberOfQueuedThings() != null && other.getNumberOfQueuedThings().equals(this.getNumberOfQueuedThings()) == false) return false; if (other.getNumberOfInProgressThings() == null ^ this.getNumberOfInProgressThings() == null) return false; if (other.getNumberOfInProgressThings() != null && other.getNumberOfInProgressThings().equals(this.getNumberOfInProgressThings()) == false) return false; if (other.getNumberOfRemovedThings() == null ^ this.getNumberOfRemovedThings() == null) return false; if (other.getNumberOfRemovedThings() != null && other.getNumberOfRemovedThings().equals(this.getNumberOfRemovedThings()) == false) return false; return true; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy