public RegistrationConfig unmarshall(JsonUnmarshallerContext context) throws Exception { RegistrationConfig registrationConfig = new RegistrationConfig(); if (context.testExpression("templateBody", targetDepth)) { context.nextToken(); registrationConfig.setTemplateBody(context.getUnmarshaller(String.class).unmarshall(context)); registrationConfig.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTemplateBody() == null) ? 0 : getTemplateBody().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getNewStatus() == null) ? 0 : getNewStatus().hashCode()); hashCode = prime * hashCode + ((getNewAutoRegistrationStatus() == null) ? 0 : getNewAutoRegistrationStatus().hashCode()); hashCode = prime * hashCode + ((getRegistrationConfig() == null) ? 0 : getRegistrationConfig().hashCode()); hashCode = prime * hashCode + ((getRemoveAutoRegistration() == null) ? 0 : getRemoveAutoRegistration().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCACertificateResult == false) return false; DescribeCACertificateResult other = (DescribeCACertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; if (other.getRegistrationConfig() == null ^ this.getRegistrationConfig() == null) return false; if (other.getRegistrationConfig() != null && other.getRegistrationConfig().equals(this.getRegistrationConfig()) == false) return false; return true; }
/** * <p> * The template body. * </p> * * @param templateBody * The template body. * @return Returns a reference to this object so that method calls can be chained together. */ public RegistrationConfig withTemplateBody(String templateBody) { setTemplateBody(templateBody); return this; }
/** * <p> * The ARN of the role. * </p> * * @param roleArn * The ARN of the role. * @return Returns a reference to this object so that method calls can be chained together. */ public RegistrationConfig withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
if (other.getRegistrationConfig() == null ^ this.getRegistrationConfig() == null) return false; if (other.getRegistrationConfig() != null && other.getRegistrationConfig().equals(this.getRegistrationConfig()) == false) return false; if (other.getRemoveAutoRegistration() == null ^ this.getRemoveAutoRegistration() == null)
/** * <p> * The template body. * </p> * * @param templateBody * The template body. * @return Returns a reference to this object so that method calls can be chained together. */ public RegistrationConfig withTemplateBody(String templateBody) { setTemplateBody(templateBody); return this; }
/** * <p> * The ARN of the role. * </p> * * @param roleArn * The ARN of the role. * @return Returns a reference to this object so that method calls can be chained together. */ public RegistrationConfig withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RegistrationConfig == false) return false; RegistrationConfig other = (RegistrationConfig) obj; if (other.getTemplateBody() == null ^ this.getTemplateBody() == null) return false; if (other.getTemplateBody() != null && other.getTemplateBody().equals(this.getTemplateBody()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; return true; }
public RegistrationConfig unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } RegistrationConfig registrationConfig = new RegistrationConfig(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("templateBody")) { registrationConfig.setTemplateBody(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("roleArn")) { registrationConfig.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return registrationConfig; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaCertificate() == null) ? 0 : getCaCertificate().hashCode()); hashCode = prime * hashCode + ((getVerificationCertificate() == null) ? 0 : getVerificationCertificate().hashCode()); hashCode = prime * hashCode + ((getSetAsActive() == null) ? 0 : getSetAsActive().hashCode()); hashCode = prime * hashCode + ((getAllowAutoRegistration() == null) ? 0 : getAllowAutoRegistration().hashCode()); hashCode = prime * hashCode + ((getRegistrationConfig() == null) ? 0 : getRegistrationConfig().hashCode()); return hashCode; }
if (other.getRegistrationConfig() == null ^ this.getRegistrationConfig() == null) return false; if (other.getRegistrationConfig() != null && other.getRegistrationConfig().equals(this.getRegistrationConfig()) == 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 (getTemplateBody() != null) sb.append("TemplateBody: ").append(getTemplateBody()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()); sb.append("}"); return sb.toString(); }
public RegistrationConfig unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } RegistrationConfig registrationConfig = new RegistrationConfig(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("templateBody")) { registrationConfig.setTemplateBody(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("roleArn")) { registrationConfig.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return registrationConfig; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateDescription() == null) ? 0 : getCertificateDescription().hashCode()); hashCode = prime * hashCode + ((getRegistrationConfig() == null) ? 0 : getRegistrationConfig().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCACertificateResult == false) return false; DescribeCACertificateResult other = (DescribeCACertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; if (other.getRegistrationConfig() == null ^ this.getRegistrationConfig() == null) return false; if (other.getRegistrationConfig() != null && other.getRegistrationConfig().equals(this.getRegistrationConfig()) == false) return false; return true; } }
/** * Marshall the given parameter object. */ public void marshall(RegistrationConfig registrationConfig, ProtocolMarshaller protocolMarshaller) { if (registrationConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(registrationConfig.getTemplateBody(), TEMPLATEBODY_BINDING); protocolMarshaller.marshall(registrationConfig.getRoleArn(), ROLEARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public RegistrationConfig unmarshall(JsonUnmarshallerContext context) throws Exception { RegistrationConfig registrationConfig = new RegistrationConfig(); if (context.testExpression("templateBody", targetDepth)) { context.nextToken(); registrationConfig.setTemplateBody(context.getUnmarshaller(String.class).unmarshall(context)); registrationConfig.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaCertificate() == null) ? 0 : getCaCertificate().hashCode()); hashCode = prime * hashCode + ((getVerificationCertificate() == null) ? 0 : getVerificationCertificate() .hashCode()); hashCode = prime * hashCode + ((getSetAsActive() == null) ? 0 : getSetAsActive().hashCode()); hashCode = prime * hashCode + ((getAllowAutoRegistration() == null) ? 0 : getAllowAutoRegistration().hashCode()); hashCode = prime * hashCode + ((getRegistrationConfig() == null) ? 0 : getRegistrationConfig().hashCode()); return hashCode; }