com.amazonaws.services.panorama.model.NodeFromTemplateJob 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* A job to create a camera stream node.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class NodeFromTemplateJob implements Serializable, Cloneable, StructuredPojo {
/**
*
* When the job was created.
*
*/
private java.util.Date createdTime;
/**
*
* The job's ID.
*
*/
private String jobId;
/**
*
* The node's name.
*
*/
private String nodeName;
/**
*
* The job's status.
*
*/
private String status;
/**
*
* The job's status message.
*
*/
private String statusMessage;
/**
*
* The job's template type.
*
*/
private String templateType;
/**
*
* 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 NodeFromTemplateJob withCreatedTime(java.util.Date createdTime) {
setCreatedTime(createdTime);
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 NodeFromTemplateJob withJobId(String jobId) {
setJobId(jobId);
return this;
}
/**
*
* The node's name.
*
*
* @param nodeName
* The node's name.
*/
public void setNodeName(String nodeName) {
this.nodeName = nodeName;
}
/**
*
* The node's name.
*
*
* @return The node's name.
*/
public String getNodeName() {
return this.nodeName;
}
/**
*
* The node's name.
*
*
* @param nodeName
* The node's name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public NodeFromTemplateJob withNodeName(String nodeName) {
setNodeName(nodeName);
return this;
}
/**
*
* The job's status.
*
*
* @param status
* The job's status.
* @see NodeFromTemplateJobStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The job's status.
*
*
* @return The job's status.
* @see NodeFromTemplateJobStatus
*/
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 NodeFromTemplateJobStatus
*/
public NodeFromTemplateJob 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 NodeFromTemplateJobStatus
*/
public NodeFromTemplateJob withStatus(NodeFromTemplateJobStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The job's status message.
*
*
* @param statusMessage
* The job's status message.
*/
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
*
* The job's status message.
*
*
* @return The job's status message.
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
*
* The job's status message.
*
*
* @param statusMessage
* The job's status message.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public NodeFromTemplateJob withStatusMessage(String statusMessage) {
setStatusMessage(statusMessage);
return this;
}
/**
*
* The job's template type.
*
*
* @param templateType
* The job's template type.
* @see TemplateType
*/
public void setTemplateType(String templateType) {
this.templateType = templateType;
}
/**
*
* The job's template type.
*
*
* @return The job's template type.
* @see TemplateType
*/
public String getTemplateType() {
return this.templateType;
}
/**
*
* The job's template type.
*
*
* @param templateType
* The job's template type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TemplateType
*/
public NodeFromTemplateJob withTemplateType(String templateType) {
setTemplateType(templateType);
return this;
}
/**
*
* The job's template type.
*
*
* @param templateType
* The job's template type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TemplateType
*/
public NodeFromTemplateJob withTemplateType(TemplateType templateType) {
this.templateType = templateType.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 (getJobId() != null)
sb.append("JobId: ").append(getJobId()).append(",");
if (getNodeName() != null)
sb.append("NodeName: ").append(getNodeName()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusMessage() != null)
sb.append("StatusMessage: ").append(getStatusMessage()).append(",");
if (getTemplateType() != null)
sb.append("TemplateType: ").append(getTemplateType());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof NodeFromTemplateJob == false)
return false;
NodeFromTemplateJob other = (NodeFromTemplateJob) obj;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == 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.getNodeName() == null ^ this.getNodeName() == null)
return false;
if (other.getNodeName() != null && other.getNodeName().equals(this.getNodeName()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getStatusMessage() == null ^ this.getStatusMessage() == null)
return false;
if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false)
return false;
if (other.getTemplateType() == null ^ this.getTemplateType() == null)
return false;
if (other.getTemplateType() != null && other.getTemplateType().equals(this.getTemplateType()) == 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 + ((getJobId() == null) ? 0 : getJobId().hashCode());
hashCode = prime * hashCode + ((getNodeName() == null) ? 0 : getNodeName().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode());
hashCode = prime * hashCode + ((getTemplateType() == null) ? 0 : getTemplateType().hashCode());
return hashCode;
}
@Override
public NodeFromTemplateJob clone() {
try {
return (NodeFromTemplateJob) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.panorama.model.transform.NodeFromTemplateJobMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}