/** * 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 (getSecurityProfileIdentifier() != null) sb.append("SecurityProfileIdentifier: ").append(getSecurityProfileIdentifier()).append(","); if (getTarget() != null) sb.append("Target: ").append(getTarget()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(SecurityProfileTargetMapping securityProfileTargetMapping, ProtocolMarshaller protocolMarshaller) { if (securityProfileTargetMapping == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(securityProfileTargetMapping.getSecurityProfileIdentifier(), SECURITYPROFILEIDENTIFIER_BINDING); protocolMarshaller.marshall(securityProfileTargetMapping.getTarget(), TARGET_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 SecurityProfileTargetMapping == false) return false; SecurityProfileTargetMapping other = (SecurityProfileTargetMapping) obj; if (other.getSecurityProfileIdentifier() == null ^ this.getSecurityProfileIdentifier() == null) return false; if (other.getSecurityProfileIdentifier() != null && other.getSecurityProfileIdentifier().equals(this.getSecurityProfileIdentifier()) == false) return false; if (other.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == 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 (getSecurityProfileIdentifier() != null) sb.append("securityProfileIdentifier: " + getSecurityProfileIdentifier() + ","); if (getTarget() != null) sb.append("target: " + getTarget()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SecurityProfileTargetMapping == false) return false; SecurityProfileTargetMapping other = (SecurityProfileTargetMapping) obj; if (other.getSecurityProfileIdentifier() == null ^ this.getSecurityProfileIdentifier() == null) return false; if (other.getSecurityProfileIdentifier() != null && other.getSecurityProfileIdentifier().equals(this.getSecurityProfileIdentifier()) == false) return false; if (other.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == false) return false; return true; } }
public void marshall(SecurityProfileTargetMapping securityProfileTargetMapping, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (securityProfileTargetMapping.getSecurityProfileIdentifier() != null) { SecurityProfileIdentifier securityProfileIdentifier = securityProfileTargetMapping .getSecurityProfileIdentifier(); jsonWriter.name("securityProfileIdentifier"); SecurityProfileIdentifierJsonMarshaller.getInstance().marshall( securityProfileIdentifier, jsonWriter); } if (securityProfileTargetMapping.getTarget() != null) { SecurityProfileTarget target = securityProfileTargetMapping.getTarget(); jsonWriter.name("target"); SecurityProfileTargetJsonMarshaller.getInstance().marshall(target, jsonWriter); } 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 (getSecurityProfileIdentifier() != null) sb.append("SecurityProfileIdentifier: ").append(getSecurityProfileIdentifier()).append(","); if (getTarget() != null) sb.append("Target: ").append(getTarget()); 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 (getSecurityProfileIdentifier() != null) sb.append("securityProfileIdentifier: " + getSecurityProfileIdentifier() + ","); if (getTarget() != null) sb.append("target: " + getTarget()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SecurityProfileTargetMapping == false) return false; SecurityProfileTargetMapping other = (SecurityProfileTargetMapping) obj; if (other.getSecurityProfileIdentifier() == null ^ this.getSecurityProfileIdentifier() == null) return false; if (other.getSecurityProfileIdentifier() != null && other.getSecurityProfileIdentifier().equals(this.getSecurityProfileIdentifier()) == false) return false; if (other.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(SecurityProfileTargetMapping securityProfileTargetMapping, ProtocolMarshaller protocolMarshaller) { if (securityProfileTargetMapping == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(securityProfileTargetMapping.getSecurityProfileIdentifier(), SECURITYPROFILEIDENTIFIER_BINDING); protocolMarshaller.marshall(securityProfileTargetMapping.getTarget(), TARGET_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 SecurityProfileTargetMapping == false) return false; SecurityProfileTargetMapping other = (SecurityProfileTargetMapping) obj; if (other.getSecurityProfileIdentifier() == null ^ this.getSecurityProfileIdentifier() == null) return false; if (other.getSecurityProfileIdentifier() != null && other.getSecurityProfileIdentifier().equals(this.getSecurityProfileIdentifier()) == false) return false; if (other.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == false) return false; return true; } }
public void marshall(SecurityProfileTargetMapping securityProfileTargetMapping, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (securityProfileTargetMapping.getSecurityProfileIdentifier() != null) { SecurityProfileIdentifier securityProfileIdentifier = securityProfileTargetMapping .getSecurityProfileIdentifier(); jsonWriter.name("securityProfileIdentifier"); SecurityProfileIdentifierJsonMarshaller.getInstance().marshall( securityProfileIdentifier, jsonWriter); } if (securityProfileTargetMapping.getTarget() != null) { SecurityProfileTarget target = securityProfileTargetMapping.getTarget(); jsonWriter.name("target"); SecurityProfileTargetJsonMarshaller.getInstance().marshall(target, jsonWriter); } jsonWriter.endObject(); }