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

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

/*
 * Copyright 2014-2019 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.alexaforbusiness.model;

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

/**
 * 

* A device with attributes. *

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

* The ARN of a device. *

*/ private String deviceArn; /** *

* The serial number of a device. *

*/ private String deviceSerialNumber; /** *

* The type of a device. *

*/ private String deviceType; /** *

* The name of a device. *

*/ private String deviceName; /** *

* The software version of a device. *

*/ private String softwareVersion; /** *

* The MAC address of a device. *

*/ private String macAddress; /** *

* The room ARN of a device. *

*/ private String roomArn; /** *

* The status of a device. If the status is not READY, check the DeviceStatusInfo value for details. *

*/ private String deviceStatus; /** *

* Detailed information about a device's status. *

*/ private DeviceStatusInfo deviceStatusInfo; /** *

* Detailed information about a device's network profile. *

*/ private DeviceNetworkProfileInfo networkProfileInfo; /** *

* The ARN of a device. *

* * @param deviceArn * The ARN of a device. */ public void setDeviceArn(String deviceArn) { this.deviceArn = deviceArn; } /** *

* The ARN of a device. *

* * @return The ARN of a device. */ public String getDeviceArn() { return this.deviceArn; } /** *

* The ARN of a device. *

* * @param deviceArn * The ARN of a device. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withDeviceArn(String deviceArn) { setDeviceArn(deviceArn); return this; } /** *

* The serial number of a device. *

* * @param deviceSerialNumber * The serial number of a device. */ public void setDeviceSerialNumber(String deviceSerialNumber) { this.deviceSerialNumber = deviceSerialNumber; } /** *

* The serial number of a device. *

* * @return The serial number of a device. */ public String getDeviceSerialNumber() { return this.deviceSerialNumber; } /** *

* The serial number of a device. *

* * @param deviceSerialNumber * The serial number of a device. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withDeviceSerialNumber(String deviceSerialNumber) { setDeviceSerialNumber(deviceSerialNumber); return this; } /** *

* The type of a device. *

* * @param deviceType * The type of a device. */ public void setDeviceType(String deviceType) { this.deviceType = deviceType; } /** *

* The type of a device. *

* * @return The type of a device. */ public String getDeviceType() { return this.deviceType; } /** *

* The type of a device. *

* * @param deviceType * The type of a device. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withDeviceType(String deviceType) { setDeviceType(deviceType); return this; } /** *

* The name of a device. *

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

* The name of a device. *

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

* The name of a device. *

* * @param deviceName * The name of a 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; } /** *

* The software version of a device. *

* * @param softwareVersion * The software version of a device. */ public void setSoftwareVersion(String softwareVersion) { this.softwareVersion = softwareVersion; } /** *

* The software version of a device. *

* * @return The software version of a device. */ public String getSoftwareVersion() { return this.softwareVersion; } /** *

* The software version of a device. *

* * @param softwareVersion * The software version of a device. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withSoftwareVersion(String softwareVersion) { setSoftwareVersion(softwareVersion); return this; } /** *

* The MAC address of a device. *

* * @param macAddress * The MAC address of a device. */ public void setMacAddress(String macAddress) { this.macAddress = macAddress; } /** *

* The MAC address of a device. *

* * @return The MAC address of a device. */ public String getMacAddress() { return this.macAddress; } /** *

* The MAC address of a device. *

* * @param macAddress * The MAC address of a device. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withMacAddress(String macAddress) { setMacAddress(macAddress); return this; } /** *

* The room ARN of a device. *

* * @param roomArn * The room ARN of a device. */ public void setRoomArn(String roomArn) { this.roomArn = roomArn; } /** *

* The room ARN of a device. *

* * @return The room ARN of a device. */ public String getRoomArn() { return this.roomArn; } /** *

* The room ARN of a device. *

* * @param roomArn * The room ARN of a device. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withRoomArn(String roomArn) { setRoomArn(roomArn); return this; } /** *

* The status of a device. If the status is not READY, check the DeviceStatusInfo value for details. *

* * @param deviceStatus * The status of a device. If the status is not READY, check the DeviceStatusInfo value for details. * @see DeviceStatus */ public void setDeviceStatus(String deviceStatus) { this.deviceStatus = deviceStatus; } /** *

* The status of a device. If the status is not READY, check the DeviceStatusInfo value for details. *

* * @return The status of a device. If the status is not READY, check the DeviceStatusInfo value for details. * @see DeviceStatus */ public String getDeviceStatus() { return this.deviceStatus; } /** *

* The status of a device. If the status is not READY, check the DeviceStatusInfo value for details. *

* * @param deviceStatus * The status of a device. If the status is not READY, check the DeviceStatusInfo value for details. * @return Returns a reference to this object so that method calls can be chained together. * @see DeviceStatus */ public Device withDeviceStatus(String deviceStatus) { setDeviceStatus(deviceStatus); return this; } /** *

* The status of a device. If the status is not READY, check the DeviceStatusInfo value for details. *

* * @param deviceStatus * The status of a device. If the status is not READY, check the DeviceStatusInfo value for details. * @return Returns a reference to this object so that method calls can be chained together. * @see DeviceStatus */ public Device withDeviceStatus(DeviceStatus deviceStatus) { this.deviceStatus = deviceStatus.toString(); return this; } /** *

* Detailed information about a device's status. *

* * @param deviceStatusInfo * Detailed information about a device's status. */ public void setDeviceStatusInfo(DeviceStatusInfo deviceStatusInfo) { this.deviceStatusInfo = deviceStatusInfo; } /** *

* Detailed information about a device's status. *

* * @return Detailed information about a device's status. */ public DeviceStatusInfo getDeviceStatusInfo() { return this.deviceStatusInfo; } /** *

* Detailed information about a device's status. *

* * @param deviceStatusInfo * Detailed information about a device's status. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withDeviceStatusInfo(DeviceStatusInfo deviceStatusInfo) { setDeviceStatusInfo(deviceStatusInfo); return this; } /** *

* Detailed information about a device's network profile. *

* * @param networkProfileInfo * Detailed information about a device's network profile. */ public void setNetworkProfileInfo(DeviceNetworkProfileInfo networkProfileInfo) { this.networkProfileInfo = networkProfileInfo; } /** *

* Detailed information about a device's network profile. *

* * @return Detailed information about a device's network profile. */ public DeviceNetworkProfileInfo getNetworkProfileInfo() { return this.networkProfileInfo; } /** *

* Detailed information about a device's network profile. *

* * @param networkProfileInfo * Detailed information about a device's network profile. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withNetworkProfileInfo(DeviceNetworkProfileInfo networkProfileInfo) { setNetworkProfileInfo(networkProfileInfo); 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 (getDeviceArn() != null) sb.append("DeviceArn: ").append(getDeviceArn()).append(","); if (getDeviceSerialNumber() != null) sb.append("DeviceSerialNumber: ").append(getDeviceSerialNumber()).append(","); if (getDeviceType() != null) sb.append("DeviceType: ").append(getDeviceType()).append(","); if (getDeviceName() != null) sb.append("DeviceName: ").append(getDeviceName()).append(","); if (getSoftwareVersion() != null) sb.append("SoftwareVersion: ").append(getSoftwareVersion()).append(","); if (getMacAddress() != null) sb.append("MacAddress: ").append(getMacAddress()).append(","); if (getRoomArn() != null) sb.append("RoomArn: ").append(getRoomArn()).append(","); if (getDeviceStatus() != null) sb.append("DeviceStatus: ").append(getDeviceStatus()).append(","); if (getDeviceStatusInfo() != null) sb.append("DeviceStatusInfo: ").append(getDeviceStatusInfo()).append(","); if (getNetworkProfileInfo() != null) sb.append("NetworkProfileInfo: ").append(getNetworkProfileInfo()); 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.getDeviceArn() == null ^ this.getDeviceArn() == null) return false; if (other.getDeviceArn() != null && other.getDeviceArn().equals(this.getDeviceArn()) == false) return false; if (other.getDeviceSerialNumber() == null ^ this.getDeviceSerialNumber() == null) return false; if (other.getDeviceSerialNumber() != null && other.getDeviceSerialNumber().equals(this.getDeviceSerialNumber()) == false) return false; if (other.getDeviceType() == null ^ this.getDeviceType() == null) return false; if (other.getDeviceType() != null && other.getDeviceType().equals(this.getDeviceType()) == false) return false; if (other.getDeviceName() == null ^ this.getDeviceName() == null) return false; if (other.getDeviceName() != null && other.getDeviceName().equals(this.getDeviceName()) == false) return false; if (other.getSoftwareVersion() == null ^ this.getSoftwareVersion() == null) return false; if (other.getSoftwareVersion() != null && other.getSoftwareVersion().equals(this.getSoftwareVersion()) == false) return false; if (other.getMacAddress() == null ^ this.getMacAddress() == null) return false; if (other.getMacAddress() != null && other.getMacAddress().equals(this.getMacAddress()) == false) return false; if (other.getRoomArn() == null ^ this.getRoomArn() == null) return false; if (other.getRoomArn() != null && other.getRoomArn().equals(this.getRoomArn()) == false) return false; if (other.getDeviceStatus() == null ^ this.getDeviceStatus() == null) return false; if (other.getDeviceStatus() != null && other.getDeviceStatus().equals(this.getDeviceStatus()) == false) return false; if (other.getDeviceStatusInfo() == null ^ this.getDeviceStatusInfo() == null) return false; if (other.getDeviceStatusInfo() != null && other.getDeviceStatusInfo().equals(this.getDeviceStatusInfo()) == false) return false; if (other.getNetworkProfileInfo() == null ^ this.getNetworkProfileInfo() == null) return false; if (other.getNetworkProfileInfo() != null && other.getNetworkProfileInfo().equals(this.getNetworkProfileInfo()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeviceArn() == null) ? 0 : getDeviceArn().hashCode()); hashCode = prime * hashCode + ((getDeviceSerialNumber() == null) ? 0 : getDeviceSerialNumber().hashCode()); hashCode = prime * hashCode + ((getDeviceType() == null) ? 0 : getDeviceType().hashCode()); hashCode = prime * hashCode + ((getDeviceName() == null) ? 0 : getDeviceName().hashCode()); hashCode = prime * hashCode + ((getSoftwareVersion() == null) ? 0 : getSoftwareVersion().hashCode()); hashCode = prime * hashCode + ((getMacAddress() == null) ? 0 : getMacAddress().hashCode()); hashCode = prime * hashCode + ((getRoomArn() == null) ? 0 : getRoomArn().hashCode()); hashCode = prime * hashCode + ((getDeviceStatus() == null) ? 0 : getDeviceStatus().hashCode()); hashCode = prime * hashCode + ((getDeviceStatusInfo() == null) ? 0 : getDeviceStatusInfo().hashCode()); hashCode = prime * hashCode + ((getNetworkProfileInfo() == null) ? 0 : getNetworkProfileInfo().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.alexaforbusiness.model.transform.DeviceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy