com.amazonaws.services.panorama.model.DescribeDeviceJobResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-panorama 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.panorama.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeDeviceJobResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* When the job was created.
*
*/
private java.util.Date createdTime;
/**
*
* The device's ARN.
*
*/
private String deviceArn;
/**
*
* The device's ID.
*
*/
private String deviceId;
/**
*
* The device's name.
*
*/
private String deviceName;
/**
*
* The device's type.
*
*/
private String deviceType;
/**
*
* For an OTA job, the target version of the device software.
*
*/
private String imageVersion;
/**
*
* The job's ID.
*
*/
private String jobId;
/**
*
* The job's type.
*
*/
private String jobType;
/**
*
* The job's status.
*
*/
private String status;
/**
*
* When the job was created.
*
*
* @param createdTime
* When the job was created.
*/
public void setCreatedTime(java.util.Date createdTime) {
this.createdTime = createdTime;
}
/**
*
* When the job was created.
*
*
* @return When the job was created.
*/
public java.util.Date getCreatedTime() {
return this.createdTime;
}
/**
*
* When the job was created.
*
*
* @param createdTime
* When the job was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDeviceJobResult withCreatedTime(java.util.Date createdTime) {
setCreatedTime(createdTime);
return this;
}
/**
*
* The device's ARN.
*
*
* @param deviceArn
* The device's ARN.
*/
public void setDeviceArn(String deviceArn) {
this.deviceArn = deviceArn;
}
/**
*
* The device's ARN.
*
*
* @return The device's ARN.
*/
public String getDeviceArn() {
return this.deviceArn;
}
/**
*
* The device's ARN.
*
*
* @param deviceArn
* The device's ARN.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDeviceJobResult withDeviceArn(String deviceArn) {
setDeviceArn(deviceArn);
return this;
}
/**
*
* The device's ID.
*
*
* @param deviceId
* The device's ID.
*/
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
/**
*
* The device's ID.
*
*
* @return The device's ID.
*/
public String getDeviceId() {
return this.deviceId;
}
/**
*
* The device's ID.
*
*
* @param deviceId
* The device's ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDeviceJobResult withDeviceId(String deviceId) {
setDeviceId(deviceId);
return this;
}
/**
*
* The device's name.
*
*
* @param deviceName
* The device's name.
*/
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
/**
*
* The device's name.
*
*
* @return The device's name.
*/
public String getDeviceName() {
return this.deviceName;
}
/**
*
* The device's name.
*
*
* @param deviceName
* The device's name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDeviceJobResult withDeviceName(String deviceName) {
setDeviceName(deviceName);
return this;
}
/**
*
* The device's type.
*
*
* @param deviceType
* The device's type.
* @see DeviceType
*/
public void setDeviceType(String deviceType) {
this.deviceType = deviceType;
}
/**
*
* The device's type.
*
*
* @return The device's type.
* @see DeviceType
*/
public String getDeviceType() {
return this.deviceType;
}
/**
*
* The device's type.
*
*
* @param deviceType
* The device's type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeviceType
*/
public DescribeDeviceJobResult withDeviceType(String deviceType) {
setDeviceType(deviceType);
return this;
}
/**
*
* The device's type.
*
*
* @param deviceType
* The device's type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeviceType
*/
public DescribeDeviceJobResult withDeviceType(DeviceType deviceType) {
this.deviceType = deviceType.toString();
return this;
}
/**
*
* For an OTA job, the target version of the device software.
*
*
* @param imageVersion
* For an OTA job, the target version of the device software.
*/
public void setImageVersion(String imageVersion) {
this.imageVersion = imageVersion;
}
/**
*
* For an OTA job, the target version of the device software.
*
*
* @return For an OTA job, the target version of the device software.
*/
public String getImageVersion() {
return this.imageVersion;
}
/**
*
* For an OTA job, the target version of the device software.
*
*
* @param imageVersion
* For an OTA job, the target version of the device software.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDeviceJobResult withImageVersion(String imageVersion) {
setImageVersion(imageVersion);
return this;
}
/**
*
* The job's ID.
*
*
* @param jobId
* The job's ID.
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
*
* The job's ID.
*
*
* @return The job's ID.
*/
public String getJobId() {
return this.jobId;
}
/**
*
* The job's ID.
*
*
* @param jobId
* The job's ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDeviceJobResult withJobId(String jobId) {
setJobId(jobId);
return this;
}
/**
*
* The job's type.
*
*
* @param jobType
* The job's type.
* @see JobType
*/
public void setJobType(String jobType) {
this.jobType = jobType;
}
/**
*
* The job's type.
*
*
* @return The job's type.
* @see JobType
*/
public String getJobType() {
return this.jobType;
}
/**
*
* The job's type.
*
*
* @param jobType
* The job's type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobType
*/
public DescribeDeviceJobResult withJobType(String jobType) {
setJobType(jobType);
return this;
}
/**
*
* The job's type.
*
*
* @param jobType
* The job's type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobType
*/
public DescribeDeviceJobResult withJobType(JobType jobType) {
this.jobType = jobType.toString();
return this;
}
/**
*
* The job's status.
*
*
* @param status
* The job's status.
* @see UpdateProgress
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The job's status.
*
*
* @return The job's status.
* @see UpdateProgress
*/
public String getStatus() {
return this.status;
}
/**
*
* The job's status.
*
*
* @param status
* The job's status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UpdateProgress
*/
public DescribeDeviceJobResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The job's status.
*
*
* @param status
* The job's status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UpdateProgress
*/
public DescribeDeviceJobResult withStatus(UpdateProgress status) {
this.status = status.toString();
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 (getCreatedTime() != null)
sb.append("CreatedTime: ").append(getCreatedTime()).append(",");
if (getDeviceArn() != null)
sb.append("DeviceArn: ").append(getDeviceArn()).append(",");
if (getDeviceId() != null)
sb.append("DeviceId: ").append(getDeviceId()).append(",");
if (getDeviceName() != null)
sb.append("DeviceName: ").append(getDeviceName()).append(",");
if (getDeviceType() != null)
sb.append("DeviceType: ").append(getDeviceType()).append(",");
if (getImageVersion() != null)
sb.append("ImageVersion: ").append(getImageVersion()).append(",");
if (getJobId() != null)
sb.append("JobId: ").append(getJobId()).append(",");
if (getJobType() != null)
sb.append("JobType: ").append(getJobType()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeDeviceJobResult == false)
return false;
DescribeDeviceJobResult other = (DescribeDeviceJobResult) obj;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false)
return false;
if (other.getDeviceArn() == null ^ this.getDeviceArn() == null)
return false;
if (other.getDeviceArn() != null && other.getDeviceArn().equals(this.getDeviceArn()) == false)
return false;
if (other.getDeviceId() == null ^ this.getDeviceId() == null)
return false;
if (other.getDeviceId() != null && other.getDeviceId().equals(this.getDeviceId()) == false)
return false;
if (other.getDeviceName() == null ^ this.getDeviceName() == null)
return false;
if (other.getDeviceName() != null && other.getDeviceName().equals(this.getDeviceName()) == false)
return false;
if (other.getDeviceType() == null ^ this.getDeviceType() == null)
return false;
if (other.getDeviceType() != null && other.getDeviceType().equals(this.getDeviceType()) == false)
return false;
if (other.getImageVersion() == null ^ this.getImageVersion() == null)
return false;
if (other.getImageVersion() != null && other.getImageVersion().equals(this.getImageVersion()) == false)
return false;
if (other.getJobId() == null ^ this.getJobId() == null)
return false;
if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false)
return false;
if (other.getJobType() == null ^ this.getJobType() == null)
return false;
if (other.getJobType() != null && other.getJobType().equals(this.getJobType()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
hashCode = prime * hashCode + ((getDeviceArn() == null) ? 0 : getDeviceArn().hashCode());
hashCode = prime * hashCode + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
hashCode = prime * hashCode + ((getDeviceName() == null) ? 0 : getDeviceName().hashCode());
hashCode = prime * hashCode + ((getDeviceType() == null) ? 0 : getDeviceType().hashCode());
hashCode = prime * hashCode + ((getImageVersion() == null) ? 0 : getImageVersion().hashCode());
hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode());
hashCode = prime * hashCode + ((getJobType() == null) ? 0 : getJobType().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
return hashCode;
}
@Override
public DescribeDeviceJobResult clone() {
try {
return (DescribeDeviceJobResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}