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

com.amazonaws.services.sagemaker.model.Device Maven / Gradle / Ivy

/*
 * Copyright 2015-2020 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.sagemaker.model;

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

/**
 * 

* Information of a particular device. *

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

* The name of the device. *

*/ private String deviceName; /** *

* Description of the device. *

*/ private String description; /** *

* AWS Internet of Things (IoT) object name. *

*/ private String iotThingName; /** *

* The name of the device. *

* * @param deviceName * The name of the device. */ public void setDeviceName(String deviceName) { this.deviceName = deviceName; } /** *

* The name of the device. *

* * @return The name of the device. */ public String getDeviceName() { return this.deviceName; } /** *

* The name of the device. *

* * @param deviceName * The name of the device. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withDeviceName(String deviceName) { setDeviceName(deviceName); return this; } /** *

* Description of the device. *

* * @param description * Description of the device. */ public void setDescription(String description) { this.description = description; } /** *

* Description of the device. *

* * @return Description of the device. */ public String getDescription() { return this.description; } /** *

* Description of the device. *

* * @param description * Description of the device. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withDescription(String description) { setDescription(description); return this; } /** *

* AWS Internet of Things (IoT) object name. *

* * @param iotThingName * AWS Internet of Things (IoT) object name. */ public void setIotThingName(String iotThingName) { this.iotThingName = iotThingName; } /** *

* AWS Internet of Things (IoT) object name. *

* * @return AWS Internet of Things (IoT) object name. */ public String getIotThingName() { return this.iotThingName; } /** *

* AWS Internet of Things (IoT) object name. *

* * @param iotThingName * AWS Internet of Things (IoT) object name. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withIotThingName(String iotThingName) { setIotThingName(iotThingName); 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 (getDeviceName() != null) sb.append("DeviceName: ").append(getDeviceName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getIotThingName() != null) sb.append("IotThingName: ").append(getIotThingName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Device == false) return false; Device other = (Device) obj; if (other.getDeviceName() == null ^ this.getDeviceName() == null) return false; if (other.getDeviceName() != null && other.getDeviceName().equals(this.getDeviceName()) == 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.getIotThingName() == null ^ this.getIotThingName() == null) return false; if (other.getIotThingName() != null && other.getIotThingName().equals(this.getIotThingName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeviceName() == null) ? 0 : getDeviceName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getIotThingName() == null) ? 0 : getIotThingName().hashCode()); return hashCode; } @Override public Device clone() { try { return (Device) 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.sagemaker.model.transform.DeviceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy