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

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

Go to download

The AWS Java SDK for Alexa For Business module holds the client classes that are used for communicating with Alexa For Business Service

There is a newer version: 1.12.731
Show newest version
/*
 * Copyright 2013-2018 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;

/**
 * 

* Device attributes. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeviceData 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 status of a device. *

*/ private String deviceStatus; /** *

* The room ARN associated with a device. *

*/ private String roomArn; /** *

* The name of the room associated with a device. *

*/ private String roomName; /** *

* Detailed information about a device's status. *

*/ private DeviceStatusInfo deviceStatusInfo; /** *

* 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 DeviceData 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 DeviceData 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 DeviceData 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 DeviceData 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 DeviceData 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 DeviceData withMacAddress(String macAddress) { setMacAddress(macAddress); return this; } /** *

* The status of a device. *

* * @param deviceStatus * The status of a device. * @see DeviceStatus */ public void setDeviceStatus(String deviceStatus) { this.deviceStatus = deviceStatus; } /** *

* The status of a device. *

* * @return The status of a device. * @see DeviceStatus */ public String getDeviceStatus() { return this.deviceStatus; } /** *

* The status of a device. *

* * @param deviceStatus * The status of a device. * @return Returns a reference to this object so that method calls can be chained together. * @see DeviceStatus */ public DeviceData withDeviceStatus(String deviceStatus) { setDeviceStatus(deviceStatus); return this; } /** *

* The status of a device. *

* * @param deviceStatus * The status of a device. * @return Returns a reference to this object so that method calls can be chained together. * @see DeviceStatus */ public DeviceData withDeviceStatus(DeviceStatus deviceStatus) { this.deviceStatus = deviceStatus.toString(); return this; } /** *

* The room ARN associated with a device. *

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

* The room ARN associated with a device. *

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

* The room ARN associated with a device. *

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

* The name of the room associated with a device. *

* * @param roomName * The name of the room associated with a device. */ public void setRoomName(String roomName) { this.roomName = roomName; } /** *

* The name of the room associated with a device. *

* * @return The name of the room associated with a device. */ public String getRoomName() { return this.roomName; } /** *

* The name of the room associated with a device. *

* * @param roomName * The name of the room associated with a device. * @return Returns a reference to this object so that method calls can be chained together. */ public DeviceData withRoomName(String roomName) { setRoomName(roomName); 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 DeviceData withDeviceStatusInfo(DeviceStatusInfo deviceStatusInfo) { setDeviceStatusInfo(deviceStatusInfo); 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 (getDeviceStatus() != null) sb.append("DeviceStatus: ").append(getDeviceStatus()).append(","); if (getRoomArn() != null) sb.append("RoomArn: ").append(getRoomArn()).append(","); if (getRoomName() != null) sb.append("RoomName: ").append(getRoomName()).append(","); if (getDeviceStatusInfo() != null) sb.append("DeviceStatusInfo: ").append(getDeviceStatusInfo()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeviceData == false) return false; DeviceData other = (DeviceData) 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.getDeviceStatus() == null ^ this.getDeviceStatus() == null) return false; if (other.getDeviceStatus() != null && other.getDeviceStatus().equals(this.getDeviceStatus()) == 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.getRoomName() == null ^ this.getRoomName() == null) return false; if (other.getRoomName() != null && other.getRoomName().equals(this.getRoomName()) == false) return false; if (other.getDeviceStatusInfo() == null ^ this.getDeviceStatusInfo() == null) return false; if (other.getDeviceStatusInfo() != null && other.getDeviceStatusInfo().equals(this.getDeviceStatusInfo()) == 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 + ((getDeviceStatus() == null) ? 0 : getDeviceStatus().hashCode()); hashCode = prime * hashCode + ((getRoomArn() == null) ? 0 : getRoomArn().hashCode()); hashCode = prime * hashCode + ((getRoomName() == null) ? 0 : getRoomName().hashCode()); hashCode = prime * hashCode + ((getDeviceStatusInfo() == null) ? 0 : getDeviceStatusInfo().hashCode()); return hashCode; } @Override public DeviceData clone() { try { return (DeviceData) 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.DeviceDataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy