@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); hashCode = prime * hashCode + ((getCertificatePathOnDevice() == null) ? 0 : getCertificatePathOnDevice().hashCode()); return hashCode; }
/** * 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 (getCertificateArn() != null) sb.append("CertificateArn: ").append(getCertificateArn()).append(","); if (getPlatform() != null) sb.append("Platform: ").append(getPlatform()).append(","); if (getCertificatePathOnDevice() != null) sb.append("CertificatePathOnDevice: ").append(getCertificatePathOnDevice()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SigningProfileParameter == false) return false; SigningProfileParameter other = (SigningProfileParameter) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getPlatform() == null ^ this.getPlatform() == null) return false; if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false; if (other.getCertificatePathOnDevice() == null ^ this.getCertificatePathOnDevice() == null) return false; if (other.getCertificatePathOnDevice() != null && other.getCertificatePathOnDevice().equals(this.getCertificatePathOnDevice()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(SigningProfileParameter signingProfileParameter, ProtocolMarshaller protocolMarshaller) { if (signingProfileParameter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(signingProfileParameter.getCertificateArn(), CERTIFICATEARN_BINDING); protocolMarshaller.marshall(signingProfileParameter.getPlatform(), PLATFORM_BINDING); protocolMarshaller.marshall(signingProfileParameter.getCertificatePathOnDevice(), CERTIFICATEPATHONDEVICE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); hashCode = prime * hashCode + ((getCertificatePathOnDevice() == null) ? 0 : getCertificatePathOnDevice() .hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateArn() != null) sb.append("certificateArn: " + getCertificateArn() + ","); if (getPlatform() != null) sb.append("platform: " + getPlatform() + ","); if (getCertificatePathOnDevice() != null) sb.append("certificatePathOnDevice: " + getCertificatePathOnDevice()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SigningProfileParameter == false) return false; SigningProfileParameter other = (SigningProfileParameter) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getPlatform() == null ^ this.getPlatform() == null) return false; if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false; if (other.getCertificatePathOnDevice() == null ^ this.getCertificatePathOnDevice() == null) return false; if (other.getCertificatePathOnDevice() != null && other.getCertificatePathOnDevice().equals(this.getCertificatePathOnDevice()) == false) return false; return true; } }
public void marshall(SigningProfileParameter signingProfileParameter, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (signingProfileParameter.getCertificateArn() != null) { String certificateArn = signingProfileParameter.getCertificateArn(); jsonWriter.name("certificateArn"); jsonWriter.value(certificateArn); } if (signingProfileParameter.getPlatform() != null) { String platform = signingProfileParameter.getPlatform(); jsonWriter.name("platform"); jsonWriter.value(platform); } if (signingProfileParameter.getCertificatePathOnDevice() != null) { String certificatePathOnDevice = signingProfileParameter.getCertificatePathOnDevice(); jsonWriter.name("certificatePathOnDevice"); jsonWriter.value(certificatePathOnDevice); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); hashCode = prime * hashCode + ((getCertificatePathOnDevice() == null) ? 0 : getCertificatePathOnDevice().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); hashCode = prime * hashCode + ((getCertificatePathOnDevice() == null) ? 0 : getCertificatePathOnDevice() .hashCode()); return hashCode; }
/** * 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 (getCertificateArn() != null) sb.append("CertificateArn: ").append(getCertificateArn()).append(","); if (getPlatform() != null) sb.append("Platform: ").append(getPlatform()).append(","); if (getCertificatePathOnDevice() != null) sb.append("CertificatePathOnDevice: ").append(getCertificatePathOnDevice()); sb.append("}"); return sb.toString(); }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateArn() != null) sb.append("certificateArn: " + getCertificateArn() + ","); if (getPlatform() != null) sb.append("platform: " + getPlatform() + ","); if (getCertificatePathOnDevice() != null) sb.append("certificatePathOnDevice: " + getCertificatePathOnDevice()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SigningProfileParameter == false) return false; SigningProfileParameter other = (SigningProfileParameter) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getPlatform() == null ^ this.getPlatform() == null) return false; if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false; if (other.getCertificatePathOnDevice() == null ^ this.getCertificatePathOnDevice() == null) return false; if (other.getCertificatePathOnDevice() != null && other.getCertificatePathOnDevice().equals(this.getCertificatePathOnDevice()) == false) return false; return true; } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SigningProfileParameter == false) return false; SigningProfileParameter other = (SigningProfileParameter) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getPlatform() == null ^ this.getPlatform() == null) return false; if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false; if (other.getCertificatePathOnDevice() == null ^ this.getCertificatePathOnDevice() == null) return false; if (other.getCertificatePathOnDevice() != null && other.getCertificatePathOnDevice().equals(this.getCertificatePathOnDevice()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(SigningProfileParameter signingProfileParameter, ProtocolMarshaller protocolMarshaller) { if (signingProfileParameter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(signingProfileParameter.getCertificateArn(), CERTIFICATEARN_BINDING); protocolMarshaller.marshall(signingProfileParameter.getPlatform(), PLATFORM_BINDING); protocolMarshaller.marshall(signingProfileParameter.getCertificatePathOnDevice(), CERTIFICATEPATHONDEVICE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(SigningProfileParameter signingProfileParameter, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (signingProfileParameter.getCertificateArn() != null) { String certificateArn = signingProfileParameter.getCertificateArn(); jsonWriter.name("certificateArn"); jsonWriter.value(certificateArn); } if (signingProfileParameter.getPlatform() != null) { String platform = signingProfileParameter.getPlatform(); jsonWriter.name("platform"); jsonWriter.value(platform); } if (signingProfileParameter.getCertificatePathOnDevice() != null) { String certificatePathOnDevice = signingProfileParameter.getCertificatePathOnDevice(); jsonWriter.name("certificatePathOnDevice"); jsonWriter.value(certificatePathOnDevice); } jsonWriter.endObject(); }