@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSecurityProfileIdentifier() == null) ? 0 : getSecurityProfileIdentifier().hashCode()); hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); return hashCode; }
/** * <p> * The ARN of the security profile. * </p> * * @param arn * The ARN of the security profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityProfileIdentifier withArn(String arn) { setArn(arn); return this; }
public SecurityProfileIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception { SecurityProfileIdentifier securityProfileIdentifier = new SecurityProfileIdentifier(); if (context.testExpression("name", targetDepth)) { context.nextToken(); securityProfileIdentifier.setName(context.getUnmarshaller(String.class).unmarshall(context)); securityProfileIdentifier.setArn(context.getUnmarshaller(String.class).unmarshall(context));
@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; }
/** * <p> * The name you have given to the security profile. * </p> * * @param name * The name you have given to the security profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityProfileIdentifier withName(String name) { setName(name); return this; }
public SecurityProfileIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } SecurityProfileIdentifier securityProfileIdentifier = new SecurityProfileIdentifier(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("name")) { securityProfileIdentifier.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("arn")) { securityProfileIdentifier.setArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return securityProfileIdentifier; }
@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; } }
/** * <p> * The name you have given to the security profile. * </p> * * @param name * The name you have given to the security profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityProfileIdentifier withName(String name) { setName(name); return this; }
@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 SecurityProfileIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } SecurityProfileIdentifier securityProfileIdentifier = new SecurityProfileIdentifier(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("name")) { securityProfileIdentifier.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("arn")) { securityProfileIdentifier.setArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return securityProfileIdentifier; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSecurityProfileIdentifier() == null) ? 0 : getSecurityProfileIdentifier() .hashCode()); hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); return hashCode; }
@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; }
/** * <p> * The ARN of the security profile. * </p> * * @param arn * The ARN of the security profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityProfileIdentifier withArn(String arn) { setArn(arn); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()); sb.append("}"); return sb.toString(); }
public SecurityProfileIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception { SecurityProfileIdentifier securityProfileIdentifier = new SecurityProfileIdentifier(); if (context.testExpression("name", targetDepth)) { context.nextToken(); securityProfileIdentifier.setName(context.getUnmarshaller(String.class).unmarshall(context)); securityProfileIdentifier.setArn(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSecurityProfileIdentifier() == null) ? 0 : getSecurityProfileIdentifier() .hashCode()); hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); return hashCode; }
@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(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); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSecurityProfileIdentifier() == null) ? 0 : getSecurityProfileIdentifier().hashCode()); hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); return hashCode; }