com.amazonaws.services.panorama.model.Node 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;
/**
*
* An application node that represents a camera stream, a model, code, or output.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Node implements Serializable, Cloneable, StructuredPojo {
/**
*
* The node's category.
*
*/
private String category;
/**
*
* When the node was created.
*
*/
private java.util.Date createdTime;
/**
*
* The node's description.
*
*/
private String description;
/**
*
* The node's name.
*
*/
private String name;
/**
*
* The node's ID.
*
*/
private String nodeId;
/**
*
* The account ID of the node's owner.
*
*/
private String ownerAccount;
/**
*
* The node's ARN.
*
*/
private String packageArn;
/**
*
* The node's package ID.
*
*/
private String packageId;
/**
*
* The node's package name.
*
*/
private String packageName;
/**
*
* The node's package version.
*
*/
private String packageVersion;
/**
*
* The node's patch version.
*
*/
private String patchVersion;
/**
*
* The node's category.
*
*
* @param category
* The node's category.
* @see NodeCategory
*/
public void setCategory(String category) {
this.category = category;
}
/**
*
* The node's category.
*
*
* @return The node's category.
* @see NodeCategory
*/
public String getCategory() {
return this.category;
}
/**
*
* The node's category.
*
*
* @param category
* The node's category.
* @return Returns a reference to this object so that method calls can be chained together.
* @see NodeCategory
*/
public Node withCategory(String category) {
setCategory(category);
return this;
}
/**
*
* The node's category.
*
*
* @param category
* The node's category.
* @return Returns a reference to this object so that method calls can be chained together.
* @see NodeCategory
*/
public Node withCategory(NodeCategory category) {
this.category = category.toString();
return this;
}
/**
*
* When the node was created.
*
*
* @param createdTime
* When the node was created.
*/
public void setCreatedTime(java.util.Date createdTime) {
this.createdTime = createdTime;
}
/**
*
* When the node was created.
*
*
* @return When the node was created.
*/
public java.util.Date getCreatedTime() {
return this.createdTime;
}
/**
*
* When the node was created.
*
*
* @param createdTime
* When the node was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withCreatedTime(java.util.Date createdTime) {
setCreatedTime(createdTime);
return this;
}
/**
*
* The node's description.
*
*
* @param description
* The node's description.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The node's description.
*
*
* @return The node's description.
*/
public String getDescription() {
return this.description;
}
/**
*
* The node's description.
*
*
* @param description
* The node's description.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The node's name.
*
*
* @param name
* The node's name.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The node's name.
*
*
* @return The node's name.
*/
public String getName() {
return this.name;
}
/**
*
* The node's name.
*
*
* @param name
* The node's name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withName(String name) {
setName(name);
return this;
}
/**
*
* The node's ID.
*
*
* @param nodeId
* The node's ID.
*/
public void setNodeId(String nodeId) {
this.nodeId = nodeId;
}
/**
*
* The node's ID.
*
*
* @return The node's ID.
*/
public String getNodeId() {
return this.nodeId;
}
/**
*
* The node's ID.
*
*
* @param nodeId
* The node's ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withNodeId(String nodeId) {
setNodeId(nodeId);
return this;
}
/**
*
* The account ID of the node's owner.
*
*
* @param ownerAccount
* The account ID of the node's owner.
*/
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
}
/**
*
* The account ID of the node's owner.
*
*
* @return The account ID of the node's owner.
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
*
* The account ID of the node's owner.
*
*
* @param ownerAccount
* The account ID of the node's owner.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withOwnerAccount(String ownerAccount) {
setOwnerAccount(ownerAccount);
return this;
}
/**
*
* The node's ARN.
*
*
* @param packageArn
* The node's ARN.
*/
public void setPackageArn(String packageArn) {
this.packageArn = packageArn;
}
/**
*
* The node's ARN.
*
*
* @return The node's ARN.
*/
public String getPackageArn() {
return this.packageArn;
}
/**
*
* The node's ARN.
*
*
* @param packageArn
* The node's ARN.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withPackageArn(String packageArn) {
setPackageArn(packageArn);
return this;
}
/**
*
* The node's package ID.
*
*
* @param packageId
* The node's package ID.
*/
public void setPackageId(String packageId) {
this.packageId = packageId;
}
/**
*
* The node's package ID.
*
*
* @return The node's package ID.
*/
public String getPackageId() {
return this.packageId;
}
/**
*
* The node's package ID.
*
*
* @param packageId
* The node's package ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withPackageId(String packageId) {
setPackageId(packageId);
return this;
}
/**
*
* The node's package name.
*
*
* @param packageName
* The node's package name.
*/
public void setPackageName(String packageName) {
this.packageName = packageName;
}
/**
*
* The node's package name.
*
*
* @return The node's package name.
*/
public String getPackageName() {
return this.packageName;
}
/**
*
* The node's package name.
*
*
* @param packageName
* The node's package name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withPackageName(String packageName) {
setPackageName(packageName);
return this;
}
/**
*
* The node's package version.
*
*
* @param packageVersion
* The node's package version.
*/
public void setPackageVersion(String packageVersion) {
this.packageVersion = packageVersion;
}
/**
*
* The node's package version.
*
*
* @return The node's package version.
*/
public String getPackageVersion() {
return this.packageVersion;
}
/**
*
* The node's package version.
*
*
* @param packageVersion
* The node's package version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withPackageVersion(String packageVersion) {
setPackageVersion(packageVersion);
return this;
}
/**
*
* The node's patch version.
*
*
* @param patchVersion
* The node's patch version.
*/
public void setPatchVersion(String patchVersion) {
this.patchVersion = patchVersion;
}
/**
*
* The node's patch version.
*
*
* @return The node's patch version.
*/
public String getPatchVersion() {
return this.patchVersion;
}
/**
*
* The node's patch version.
*
*
* @param patchVersion
* The node's patch version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Node withPatchVersion(String patchVersion) {
setPatchVersion(patchVersion);
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 (getCategory() != null)
sb.append("Category: ").append(getCategory()).append(",");
if (getCreatedTime() != null)
sb.append("CreatedTime: ").append(getCreatedTime()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getNodeId() != null)
sb.append("NodeId: ").append(getNodeId()).append(",");
if (getOwnerAccount() != null)
sb.append("OwnerAccount: ").append(getOwnerAccount()).append(",");
if (getPackageArn() != null)
sb.append("PackageArn: ").append(getPackageArn()).append(",");
if (getPackageId() != null)
sb.append("PackageId: ").append(getPackageId()).append(",");
if (getPackageName() != null)
sb.append("PackageName: ").append(getPackageName()).append(",");
if (getPackageVersion() != null)
sb.append("PackageVersion: ").append(getPackageVersion()).append(",");
if (getPatchVersion() != null)
sb.append("PatchVersion: ").append(getPatchVersion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Node == false)
return false;
Node other = (Node) obj;
if (other.getCategory() == null ^ this.getCategory() == null)
return false;
if (other.getCategory() != null && other.getCategory().equals(this.getCategory()) == false)
return false;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getNodeId() == null ^ this.getNodeId() == null)
return false;
if (other.getNodeId() != null && other.getNodeId().equals(this.getNodeId()) == false)
return false;
if (other.getOwnerAccount() == null ^ this.getOwnerAccount() == null)
return false;
if (other.getOwnerAccount() != null && other.getOwnerAccount().equals(this.getOwnerAccount()) == false)
return false;
if (other.getPackageArn() == null ^ this.getPackageArn() == null)
return false;
if (other.getPackageArn() != null && other.getPackageArn().equals(this.getPackageArn()) == false)
return false;
if (other.getPackageId() == null ^ this.getPackageId() == null)
return false;
if (other.getPackageId() != null && other.getPackageId().equals(this.getPackageId()) == false)
return false;
if (other.getPackageName() == null ^ this.getPackageName() == null)
return false;
if (other.getPackageName() != null && other.getPackageName().equals(this.getPackageName()) == false)
return false;
if (other.getPackageVersion() == null ^ this.getPackageVersion() == null)
return false;
if (other.getPackageVersion() != null && other.getPackageVersion().equals(this.getPackageVersion()) == false)
return false;
if (other.getPatchVersion() == null ^ this.getPatchVersion() == null)
return false;
if (other.getPatchVersion() != null && other.getPatchVersion().equals(this.getPatchVersion()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCategory() == null) ? 0 : getCategory().hashCode());
hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getNodeId() == null) ? 0 : getNodeId().hashCode());
hashCode = prime * hashCode + ((getOwnerAccount() == null) ? 0 : getOwnerAccount().hashCode());
hashCode = prime * hashCode + ((getPackageArn() == null) ? 0 : getPackageArn().hashCode());
hashCode = prime * hashCode + ((getPackageId() == null) ? 0 : getPackageId().hashCode());
hashCode = prime * hashCode + ((getPackageName() == null) ? 0 : getPackageName().hashCode());
hashCode = prime * hashCode + ((getPackageVersion() == null) ? 0 : getPackageVersion().hashCode());
hashCode = prime * hashCode + ((getPatchVersion() == null) ? 0 : getPatchVersion().hashCode());
return hashCode;
}
@Override
public Node clone() {
try {
return (Node) 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.NodeMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}