* The Amazon Resource Name of the resource. *
*/ private String arn; /** ** The name of the resource. *
*/ private String name; /** ** The ID of the device profile. *
*/ private String id; /** ** Information about the device profile. *
*/ private LoRaWANDeviceProfile loRaWAN; /** ** Information about the Sidewalk parameters in the device profile. *
*/ private SidewalkGetDeviceProfile sidewalk; /** ** The Amazon Resource Name of the resource. *
* * @param arn * The Amazon Resource Name of the resource. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name of the resource. *
* * @return The Amazon Resource Name of the resource. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name of the resource. *
* * @param arn * The Amazon Resource Name of the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeviceProfileResult withArn(String arn) { setArn(arn); return this; } /** ** The name of the resource. *
* * @param name * The name of the resource. */ public void setName(String name) { this.name = name; } /** ** The name of the resource. *
* * @return The name of the resource. */ public String getName() { return this.name; } /** ** The name of the resource. *
* * @param name * The name of the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeviceProfileResult withName(String name) { setName(name); return this; } /** ** The ID of the device profile. *
* * @param id * The ID of the device profile. */ public void setId(String id) { this.id = id; } /** ** The ID of the device profile. *
* * @return The ID of the device profile. */ public String getId() { return this.id; } /** ** The ID of the device profile. *
* * @param id * The ID of the device profile. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeviceProfileResult withId(String id) { setId(id); return this; } /** ** Information about the device profile. *
* * @param loRaWAN * Information about the device profile. */ public void setLoRaWAN(LoRaWANDeviceProfile loRaWAN) { this.loRaWAN = loRaWAN; } /** ** Information about the device profile. *
* * @return Information about the device profile. */ public LoRaWANDeviceProfile getLoRaWAN() { return this.loRaWAN; } /** ** Information about the device profile. *
* * @param loRaWAN * Information about the device profile. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeviceProfileResult withLoRaWAN(LoRaWANDeviceProfile loRaWAN) { setLoRaWAN(loRaWAN); return this; } /** ** Information about the Sidewalk parameters in the device profile. *
* * @param sidewalk * Information about the Sidewalk parameters in the device profile. */ public void setSidewalk(SidewalkGetDeviceProfile sidewalk) { this.sidewalk = sidewalk; } /** ** Information about the Sidewalk parameters in the device profile. *
* * @return Information about the Sidewalk parameters in the device profile. */ public SidewalkGetDeviceProfile getSidewalk() { return this.sidewalk; } /** ** Information about the Sidewalk parameters in the device profile. *
* * @param sidewalk * Information about the Sidewalk parameters in the device profile. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeviceProfileResult withSidewalk(SidewalkGetDeviceProfile sidewalk) { setSidewalk(sidewalk); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLoRaWAN() != null) sb.append("LoRaWAN: ").append(getLoRaWAN()).append(","); if (getSidewalk() != null) sb.append("Sidewalk: ").append(getSidewalk()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDeviceProfileResult == false) return false; GetDeviceProfileResult other = (GetDeviceProfileResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getLoRaWAN() == null ^ this.getLoRaWAN() == null) return false; if (other.getLoRaWAN() != null && other.getLoRaWAN().equals(this.getLoRaWAN()) == false) return false; if (other.getSidewalk() == null ^ this.getSidewalk() == null) return false; if (other.getSidewalk() != null && other.getSidewalk().equals(this.getSidewalk()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLoRaWAN() == null) ? 0 : getLoRaWAN().hashCode()); hashCode = prime * hashCode + ((getSidewalk() == null) ? 0 : getSidewalk().hashCode()); return hashCode; } @Override public GetDeviceProfileResult clone() { try { return (GetDeviceProfileResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }