@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SecurityProfileTarget == false) return false; SecurityProfileTarget other = (SecurityProfileTarget) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; return true; }
/** * 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()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(SecurityProfileTarget securityProfileTarget, ProtocolMarshaller protocolMarshaller) { if (securityProfileTarget == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(securityProfileTarget.getArn(), ARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SecurityProfileTarget == false) return false; SecurityProfileTarget other = (SecurityProfileTarget) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; return true; } }
/** * 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 (getArn() != null) sb.append("arn: " + getArn()); sb.append("}"); return sb.toString(); }
public void marshall(SecurityProfileTarget securityProfileTarget, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (securityProfileTarget.getArn() != null) { String arn = securityProfileTarget.getArn(); jsonWriter.name("arn"); jsonWriter.value(arn); } jsonWriter.endObject(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SecurityProfileTarget == false) return false; SecurityProfileTarget other = (SecurityProfileTarget) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SecurityProfileTarget == false) return false; SecurityProfileTarget other = (SecurityProfileTarget) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; return true; } }
/** * 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 (getArn() != null) sb.append("arn: " + getArn()); sb.append("}"); return sb.toString(); }
/** * 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()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(SecurityProfileTarget securityProfileTarget, ProtocolMarshaller protocolMarshaller) { if (securityProfileTarget == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(securityProfileTarget.getArn(), ARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(SecurityProfileTarget securityProfileTarget, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (securityProfileTarget.getArn() != null) { String arn = securityProfileTarget.getArn(); jsonWriter.name("arn"); jsonWriter.value(arn); } jsonWriter.endObject(); }