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

com.amazonaws.services.greengrassv2.model.AssociatedClientDevice Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT Greengrass V2 module holds the client classes that are used for communicating with AWS IoT Greengrass V2 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.greengrassv2.model;

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

/**
 * 

* Contains information about a client device that is associated to a core device for cloud discovery. *

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

* The name of the IoT thing that represents the associated client device. *

*/ private String thingName; /** *

* The time that the client device was associated, expressed in ISO 8601 format. *

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

* The name of the IoT thing that represents the associated client device. *

* * @param thingName * The name of the IoT thing that represents the associated client device. */ public void setThingName(String thingName) { this.thingName = thingName; } /** *

* The name of the IoT thing that represents the associated client device. *

* * @return The name of the IoT thing that represents the associated client device. */ public String getThingName() { return this.thingName; } /** *

* The name of the IoT thing that represents the associated client device. *

* * @param thingName * The name of the IoT thing that represents the associated client device. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociatedClientDevice withThingName(String thingName) { setThingName(thingName); return this; } /** *

* The time that the client device was associated, expressed in ISO 8601 format. *

* * @param associationTimestamp * The time that the client device was associated, expressed in ISO 8601 format. */ public void setAssociationTimestamp(java.util.Date associationTimestamp) { this.associationTimestamp = associationTimestamp; } /** *

* The time that the client device was associated, expressed in ISO 8601 format. *

* * @return The time that the client device was associated, expressed in ISO 8601 format. */ public java.util.Date getAssociationTimestamp() { return this.associationTimestamp; } /** *

* The time that the client device was associated, expressed in ISO 8601 format. *

* * @param associationTimestamp * The time that the client device was associated, expressed in ISO 8601 format. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociatedClientDevice withAssociationTimestamp(java.util.Date associationTimestamp) { setAssociationTimestamp(associationTimestamp); 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 (getThingName() != null) sb.append("ThingName: ").append(getThingName()).append(","); if (getAssociationTimestamp() != null) sb.append("AssociationTimestamp: ").append(getAssociationTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociatedClientDevice == false) return false; AssociatedClientDevice other = (AssociatedClientDevice) obj; if (other.getThingName() == null ^ this.getThingName() == null) return false; if (other.getThingName() != null && other.getThingName().equals(this.getThingName()) == false) return false; if (other.getAssociationTimestamp() == null ^ this.getAssociationTimestamp() == null) return false; if (other.getAssociationTimestamp() != null && other.getAssociationTimestamp().equals(this.getAssociationTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingName() == null) ? 0 : getThingName().hashCode()); hashCode = prime * hashCode + ((getAssociationTimestamp() == null) ? 0 : getAssociationTimestamp().hashCode()); return hashCode; } @Override public AssociatedClientDevice clone() { try { return (AssociatedClientDevice) 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.greengrassv2.model.transform.AssociatedClientDeviceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy