/** * <p> * Specifies the status of the request to generate an assessment report. * </p> * * @param status * Specifies the status of the request to generate an assessment report. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportStatus */ public GetAssessmentReportResult withStatus(String status) { setStatus(status); return this; }
/** * <p> * Specifies the URL where you can find the generated assessment report. This parameter is only returned if the * report is successfully generated. * </p> * * @param url * Specifies the URL where you can find the generated assessment report. This parameter is only returned if * the report is successfully generated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAssessmentReportResult withUrl(String url) { setUrl(url); return this; }
public GetAssessmentReportResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetAssessmentReportResult getAssessmentReportResult = new GetAssessmentReportResult(); if (context.testExpression("status", targetDepth)) { context.nextToken(); getAssessmentReportResult.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); getAssessmentReportResult.setUrl(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * Specifies the status of the request to generate an assessment report. * </p> * * @param status * Specifies the status of the request to generate an assessment report. * @see ReportStatus */ public void setStatus(ReportStatus status) { withStatus(status); }
public GetAssessmentReportResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetAssessmentReportResult getAssessmentReportResult = new GetAssessmentReportResult(); if (context.testExpression("status", targetDepth)) { context.nextToken(); getAssessmentReportResult.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); getAssessmentReportResult.setUrl(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * Specifies the status of the request to generate an assessment report. * </p> * * @param status * Specifies the status of the request to generate an assessment report. * @see ReportStatus */ public void setStatus(ReportStatus status) { withStatus(status); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetAssessmentReportResult == false) return false; GetAssessmentReportResult other = (GetAssessmentReportResult) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getUrl() == null ^ this.getUrl() == null) return false; if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == false) return false; return true; }
/** * <p> * Specifies the status of the request to generate an assessment report. * </p> * * @param status * Specifies the status of the request to generate an assessment report. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportStatus */ public GetAssessmentReportResult withStatus(String status) { setStatus(status); return this; }
/** * <p> * Specifies the URL where you can find the generated assessment report. This parameter is only returned if the * report is successfully generated. * </p> * * @param url * Specifies the URL where you can find the generated assessment report. This parameter is only returned if * the report is successfully generated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAssessmentReportResult withUrl(String url) { setUrl(url); 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUrl() != null) sb.append("Url: ").append(getUrl()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetAssessmentReportResult == false) return false; GetAssessmentReportResult other = (GetAssessmentReportResult) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getUrl() == null ^ this.getUrl() == null) return false; if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUrl() != null) sb.append("Url: ").append(getUrl()); sb.append("}"); return sb.toString(); }