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

com.amazonaws.services.iotevents.model.InputSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT Events module holds the client classes that are used for communicating with AWS IoT Events Service

The newest version!
/*
 * 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.iotevents.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about the input. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InputSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the input. *

*/ private String inputName; /** *

* A brief description of the input. *

*/ private String inputDescription; /** *

* The ARN of the input. *

*/ private String inputArn; /** *

* The time the input was created. *

*/ private java.util.Date creationTime; /** *

* The last time the input was updated. *

*/ private java.util.Date lastUpdateTime; /** *

* The status of the input. *

*/ private String status; /** *

* The name of the input. *

* * @param inputName * The name of the input. */ public void setInputName(String inputName) { this.inputName = inputName; } /** *

* The name of the input. *

* * @return The name of the input. */ public String getInputName() { return this.inputName; } /** *

* The name of the input. *

* * @param inputName * The name of the input. * @return Returns a reference to this object so that method calls can be chained together. */ public InputSummary withInputName(String inputName) { setInputName(inputName); return this; } /** *

* A brief description of the input. *

* * @param inputDescription * A brief description of the input. */ public void setInputDescription(String inputDescription) { this.inputDescription = inputDescription; } /** *

* A brief description of the input. *

* * @return A brief description of the input. */ public String getInputDescription() { return this.inputDescription; } /** *

* A brief description of the input. *

* * @param inputDescription * A brief description of the input. * @return Returns a reference to this object so that method calls can be chained together. */ public InputSummary withInputDescription(String inputDescription) { setInputDescription(inputDescription); return this; } /** *

* The ARN of the input. *

* * @param inputArn * The ARN of the input. */ public void setInputArn(String inputArn) { this.inputArn = inputArn; } /** *

* The ARN of the input. *

* * @return The ARN of the input. */ public String getInputArn() { return this.inputArn; } /** *

* The ARN of the input. *

* * @param inputArn * The ARN of the input. * @return Returns a reference to this object so that method calls can be chained together. */ public InputSummary withInputArn(String inputArn) { setInputArn(inputArn); return this; } /** *

* The time the input was created. *

* * @param creationTime * The time the input was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time the input was created. *

* * @return The time the input was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time the input was created. *

* * @param creationTime * The time the input was created. * @return Returns a reference to this object so that method calls can be chained together. */ public InputSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The last time the input was updated. *

* * @param lastUpdateTime * The last time the input was updated. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** *

* The last time the input was updated. *

* * @return The last time the input was updated. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** *

* The last time the input was updated. *

* * @param lastUpdateTime * The last time the input was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public InputSummary withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** *

* The status of the input. *

* * @param status * The status of the input. * @see InputStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the input. *

* * @return The status of the input. * @see InputStatus */ public String getStatus() { return this.status; } /** *

* The status of the input. *

* * @param status * The status of the input. * @return Returns a reference to this object so that method calls can be chained together. * @see InputStatus */ public InputSummary withStatus(String status) { setStatus(status); return this; } /** *

* The status of the input. *

* * @param status * The status of the input. * @return Returns a reference to this object so that method calls can be chained together. * @see InputStatus */ public InputSummary withStatus(InputStatus 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 (getInputName() != null) sb.append("InputName: ").append(getInputName()).append(","); if (getInputDescription() != null) sb.append("InputDescription: ").append(getInputDescription()).append(","); if (getInputArn() != null) sb.append("InputArn: ").append(getInputArn()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastUpdateTime() != null) sb.append("LastUpdateTime: ").append(getLastUpdateTime()).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 InputSummary == false) return false; InputSummary other = (InputSummary) obj; if (other.getInputName() == null ^ this.getInputName() == null) return false; if (other.getInputName() != null && other.getInputName().equals(this.getInputName()) == false) return false; if (other.getInputDescription() == null ^ this.getInputDescription() == null) return false; if (other.getInputDescription() != null && other.getInputDescription().equals(this.getInputDescription()) == false) return false; if (other.getInputArn() == null ^ this.getInputArn() == null) return false; if (other.getInputArn() != null && other.getInputArn().equals(this.getInputArn()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastUpdateTime() == null ^ this.getLastUpdateTime() == null) return false; if (other.getLastUpdateTime() != null && other.getLastUpdateTime().equals(this.getLastUpdateTime()) == 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 + ((getInputName() == null) ? 0 : getInputName().hashCode()); hashCode = prime * hashCode + ((getInputDescription() == null) ? 0 : getInputDescription().hashCode()); hashCode = prime * hashCode + ((getInputArn() == null) ? 0 : getInputArn().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public InputSummary clone() { try { return (InputSummary) 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.iotevents.model.transform.InputSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy