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