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

com.amazonaws.services.iotwireless.model.SidewalkDevice Maven / Gradle / Ivy

Go to download

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

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

/**
 * 

* Sidewalk device object. *

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

* The sidewalk device identification. *

*/ private String sidewalkId; /** *

* The Sidewalk manufacturing series number. *

*/ private String sidewalkManufacturingSn; /** *

* The sidewalk device certificates for Ed25519 and P256r1. *

*/ private java.util.List deviceCertificates; /** *

* The Sidewalk device private keys that will be used for onboarding the device. *

*/ private java.util.List privateKeys; /** *

* The ID of the Sidewalk device profile. *

*/ private String deviceProfileId; /** *

* The ID of the Sidewalk device profile. *

*/ private String certificateId; /** *

* The Sidewalk device status, such as provisioned or registered. *

*/ private String status; /** * @param amazonId */ public void setAmazonId(String amazonId) { this.amazonId = amazonId; } /** * @return */ public String getAmazonId() { return this.amazonId; } /** * @param amazonId * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkDevice withAmazonId(String amazonId) { setAmazonId(amazonId); return this; } /** *

* The sidewalk device identification. *

* * @param sidewalkId * The sidewalk device identification. */ public void setSidewalkId(String sidewalkId) { this.sidewalkId = sidewalkId; } /** *

* The sidewalk device identification. *

* * @return The sidewalk device identification. */ public String getSidewalkId() { return this.sidewalkId; } /** *

* The sidewalk device identification. *

* * @param sidewalkId * The sidewalk device identification. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkDevice withSidewalkId(String sidewalkId) { setSidewalkId(sidewalkId); return this; } /** *

* The Sidewalk manufacturing series number. *

* * @param sidewalkManufacturingSn * The Sidewalk manufacturing series number. */ public void setSidewalkManufacturingSn(String sidewalkManufacturingSn) { this.sidewalkManufacturingSn = sidewalkManufacturingSn; } /** *

* The Sidewalk manufacturing series number. *

* * @return The Sidewalk manufacturing series number. */ public String getSidewalkManufacturingSn() { return this.sidewalkManufacturingSn; } /** *

* The Sidewalk manufacturing series number. *

* * @param sidewalkManufacturingSn * The Sidewalk manufacturing series number. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkDevice withSidewalkManufacturingSn(String sidewalkManufacturingSn) { setSidewalkManufacturingSn(sidewalkManufacturingSn); return this; } /** *

* The sidewalk device certificates for Ed25519 and P256r1. *

* * @return The sidewalk device certificates for Ed25519 and P256r1. */ public java.util.List getDeviceCertificates() { return deviceCertificates; } /** *

* The sidewalk device certificates for Ed25519 and P256r1. *

* * @param deviceCertificates * The sidewalk device certificates for Ed25519 and P256r1. */ public void setDeviceCertificates(java.util.Collection deviceCertificates) { if (deviceCertificates == null) { this.deviceCertificates = null; return; } this.deviceCertificates = new java.util.ArrayList(deviceCertificates); } /** *

* The sidewalk device certificates for Ed25519 and P256r1. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setDeviceCertificates(java.util.Collection)} or {@link #withDeviceCertificates(java.util.Collection)} if * you want to override the existing values. *

* * @param deviceCertificates * The sidewalk device certificates for Ed25519 and P256r1. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkDevice withDeviceCertificates(CertificateList... deviceCertificates) { if (this.deviceCertificates == null) { setDeviceCertificates(new java.util.ArrayList(deviceCertificates.length)); } for (CertificateList ele : deviceCertificates) { this.deviceCertificates.add(ele); } return this; } /** *

* The sidewalk device certificates for Ed25519 and P256r1. *

* * @param deviceCertificates * The sidewalk device certificates for Ed25519 and P256r1. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkDevice withDeviceCertificates(java.util.Collection deviceCertificates) { setDeviceCertificates(deviceCertificates); return this; } /** *

* The Sidewalk device private keys that will be used for onboarding the device. *

* * @return The Sidewalk device private keys that will be used for onboarding the device. */ public java.util.List getPrivateKeys() { return privateKeys; } /** *

* The Sidewalk device private keys that will be used for onboarding the device. *

* * @param privateKeys * The Sidewalk device private keys that will be used for onboarding the device. */ public void setPrivateKeys(java.util.Collection privateKeys) { if (privateKeys == null) { this.privateKeys = null; return; } this.privateKeys = new java.util.ArrayList(privateKeys); } /** *

* The Sidewalk device private keys that will be used for onboarding the device. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setPrivateKeys(java.util.Collection)} or {@link #withPrivateKeys(java.util.Collection)} if you want to * override the existing values. *

* * @param privateKeys * The Sidewalk device private keys that will be used for onboarding the device. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkDevice withPrivateKeys(CertificateList... privateKeys) { if (this.privateKeys == null) { setPrivateKeys(new java.util.ArrayList(privateKeys.length)); } for (CertificateList ele : privateKeys) { this.privateKeys.add(ele); } return this; } /** *

* The Sidewalk device private keys that will be used for onboarding the device. *

* * @param privateKeys * The Sidewalk device private keys that will be used for onboarding the device. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkDevice withPrivateKeys(java.util.Collection privateKeys) { setPrivateKeys(privateKeys); return this; } /** *

* The ID of the Sidewalk device profile. *

* * @param deviceProfileId * The ID of the Sidewalk device profile. */ public void setDeviceProfileId(String deviceProfileId) { this.deviceProfileId = deviceProfileId; } /** *

* The ID of the Sidewalk device profile. *

* * @return The ID of the Sidewalk device profile. */ public String getDeviceProfileId() { return this.deviceProfileId; } /** *

* The ID of the Sidewalk device profile. *

* * @param deviceProfileId * The ID of the Sidewalk device profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkDevice withDeviceProfileId(String deviceProfileId) { setDeviceProfileId(deviceProfileId); return this; } /** *

* The ID of the Sidewalk device profile. *

* * @param certificateId * The ID of the Sidewalk device profile. */ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } /** *

* The ID of the Sidewalk device profile. *

* * @return The ID of the Sidewalk device profile. */ public String getCertificateId() { return this.certificateId; } /** *

* The ID of the Sidewalk device profile. *

* * @param certificateId * The ID of the Sidewalk device profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkDevice withCertificateId(String certificateId) { setCertificateId(certificateId); return this; } /** *

* The Sidewalk device status, such as provisioned or registered. *

* * @param status * The Sidewalk device status, such as provisioned or registered. * @see WirelessDeviceSidewalkStatus */ public void setStatus(String status) { this.status = status; } /** *

* The Sidewalk device status, such as provisioned or registered. *

* * @return The Sidewalk device status, such as provisioned or registered. * @see WirelessDeviceSidewalkStatus */ public String getStatus() { return this.status; } /** *

* The Sidewalk device status, such as provisioned or registered. *

* * @param status * The Sidewalk device status, such as provisioned or registered. * @return Returns a reference to this object so that method calls can be chained together. * @see WirelessDeviceSidewalkStatus */ public SidewalkDevice withStatus(String status) { setStatus(status); return this; } /** *

* The Sidewalk device status, such as provisioned or registered. *

* * @param status * The Sidewalk device status, such as provisioned or registered. * @return Returns a reference to this object so that method calls can be chained together. * @see WirelessDeviceSidewalkStatus */ public SidewalkDevice withStatus(WirelessDeviceSidewalkStatus 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 (getAmazonId() != null) sb.append("AmazonId: ").append(getAmazonId()).append(","); if (getSidewalkId() != null) sb.append("SidewalkId: ").append(getSidewalkId()).append(","); if (getSidewalkManufacturingSn() != null) sb.append("SidewalkManufacturingSn: ").append(getSidewalkManufacturingSn()).append(","); if (getDeviceCertificates() != null) sb.append("DeviceCertificates: ").append(getDeviceCertificates()).append(","); if (getPrivateKeys() != null) sb.append("PrivateKeys: ").append(getPrivateKeys()).append(","); if (getDeviceProfileId() != null) sb.append("DeviceProfileId: ").append(getDeviceProfileId()).append(","); if (getCertificateId() != null) sb.append("CertificateId: ").append(getCertificateId()).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 SidewalkDevice == false) return false; SidewalkDevice other = (SidewalkDevice) obj; if (other.getAmazonId() == null ^ this.getAmazonId() == null) return false; if (other.getAmazonId() != null && other.getAmazonId().equals(this.getAmazonId()) == false) return false; if (other.getSidewalkId() == null ^ this.getSidewalkId() == null) return false; if (other.getSidewalkId() != null && other.getSidewalkId().equals(this.getSidewalkId()) == false) return false; if (other.getSidewalkManufacturingSn() == null ^ this.getSidewalkManufacturingSn() == null) return false; if (other.getSidewalkManufacturingSn() != null && other.getSidewalkManufacturingSn().equals(this.getSidewalkManufacturingSn()) == false) return false; if (other.getDeviceCertificates() == null ^ this.getDeviceCertificates() == null) return false; if (other.getDeviceCertificates() != null && other.getDeviceCertificates().equals(this.getDeviceCertificates()) == false) return false; if (other.getPrivateKeys() == null ^ this.getPrivateKeys() == null) return false; if (other.getPrivateKeys() != null && other.getPrivateKeys().equals(this.getPrivateKeys()) == false) return false; if (other.getDeviceProfileId() == null ^ this.getDeviceProfileId() == null) return false; if (other.getDeviceProfileId() != null && other.getDeviceProfileId().equals(this.getDeviceProfileId()) == false) return false; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == 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 + ((getAmazonId() == null) ? 0 : getAmazonId().hashCode()); hashCode = prime * hashCode + ((getSidewalkId() == null) ? 0 : getSidewalkId().hashCode()); hashCode = prime * hashCode + ((getSidewalkManufacturingSn() == null) ? 0 : getSidewalkManufacturingSn().hashCode()); hashCode = prime * hashCode + ((getDeviceCertificates() == null) ? 0 : getDeviceCertificates().hashCode()); hashCode = prime * hashCode + ((getPrivateKeys() == null) ? 0 : getPrivateKeys().hashCode()); hashCode = prime * hashCode + ((getDeviceProfileId() == null) ? 0 : getDeviceProfileId().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public SidewalkDevice clone() { try { return (SidewalkDevice) 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.iotwireless.model.transform.SidewalkDeviceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy