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

com.amazonaws.services.iotwireless.model.SidewalkListDevice 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 object used by list functions. *

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

* The Sidewalk Amazon ID. *

*/ 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; /** *

* Sidewalk object used by list functions. *

*/ private String deviceProfileId; /** *

* The status of the Sidewalk devices, such as provisioned or registered. *

*/ private String status; /** *

* The Sidewalk Amazon ID. *

* * @param amazonId * The Sidewalk Amazon ID. */ public void setAmazonId(String amazonId) { this.amazonId = amazonId; } /** *

* The Sidewalk Amazon ID. *

* * @return The Sidewalk Amazon ID. */ public String getAmazonId() { return this.amazonId; } /** *

* The Sidewalk Amazon ID. *

* * @param amazonId * The Sidewalk Amazon ID. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkListDevice 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 SidewalkListDevice 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 SidewalkListDevice 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 SidewalkListDevice 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 SidewalkListDevice withDeviceCertificates(java.util.Collection deviceCertificates) { setDeviceCertificates(deviceCertificates); return this; } /** *

* Sidewalk object used by list functions. *

* * @param deviceProfileId * Sidewalk object used by list functions. */ public void setDeviceProfileId(String deviceProfileId) { this.deviceProfileId = deviceProfileId; } /** *

* Sidewalk object used by list functions. *

* * @return Sidewalk object used by list functions. */ public String getDeviceProfileId() { return this.deviceProfileId; } /** *

* Sidewalk object used by list functions. *

* * @param deviceProfileId * Sidewalk object used by list functions. * @return Returns a reference to this object so that method calls can be chained together. */ public SidewalkListDevice withDeviceProfileId(String deviceProfileId) { setDeviceProfileId(deviceProfileId); return this; } /** *

* The status of the Sidewalk devices, such as provisioned or registered. *

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

* The status of the Sidewalk devices, such as provisioned or registered. *

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

* The status of the Sidewalk devices, such as provisioned or registered. *

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

* The status of the Sidewalk devices, such as provisioned or registered. *

* * @param status * The status of the Sidewalk devices, such as provisioned or registered. * @return Returns a reference to this object so that method calls can be chained together. * @see WirelessDeviceSidewalkStatus */ public SidewalkListDevice 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 (getDeviceProfileId() != null) sb.append("DeviceProfileId: ").append(getDeviceProfileId()).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 SidewalkListDevice == false) return false; SidewalkListDevice other = (SidewalkListDevice) 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.getDeviceProfileId() == null ^ this.getDeviceProfileId() == null) return false; if (other.getDeviceProfileId() != null && other.getDeviceProfileId().equals(this.getDeviceProfileId()) == 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 + ((getDeviceProfileId() == null) ? 0 : getDeviceProfileId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public SidewalkListDevice clone() { try { return (SidewalkListDevice) 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.SidewalkListDeviceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy