@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssessmentRunArn() == null) ? 0 : getAssessmentRunArn().hashCode()); hashCode = prime * hashCode + ((getReportFileFormat() == null) ? 0 : getReportFileFormat().hashCode()); hashCode = prime * hashCode + ((getReportType() == null) ? 0 : getReportType().hashCode()); return hashCode; }
/** * <p> * The ARN that specifies the assessment run for which you want to generate a report. * </p> * * @param assessmentRunArn * The ARN that specifies the assessment run for which you want to generate a report. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAssessmentReportRequest withAssessmentRunArn(String assessmentRunArn) { setAssessmentRunArn(assessmentRunArn); return this; }
/** * <p> * Specifies the file format (html or pdf) of the assessment report that you want to generate. * </p> * * @param reportFileFormat * Specifies the file format (html or pdf) of the assessment report that you want to generate. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportFileFormat */ public GetAssessmentReportRequest withReportFileFormat(String reportFileFormat) { setReportFileFormat(reportFileFormat); return this; }
/** * <p> * Specifies the file format (html or pdf) of the assessment report that you want to generate. * </p> * * @param reportFileFormat * Specifies the file format (html or pdf) of the assessment report that you want to generate. * @see ReportFileFormat */ public void setReportFileFormat(ReportFileFormat reportFileFormat) { withReportFileFormat(reportFileFormat); }
/** * <p> * Specifies the type of the assessment report that you want to generate. There are two types of assessment reports: * a finding report and a full report. For more information, see <a * href="http://docs.aws.amazon.com/inspector/latest/userguide/inspector_reports.html">Assessment Reports</a>. * </p> * * @param reportType * Specifies the type of the assessment report that you want to generate. There are two types of assessment * reports: a finding report and a full report. For more information, see <a * href="http://docs.aws.amazon.com/inspector/latest/userguide/inspector_reports.html">Assessment * Reports</a>. * @see ReportType */ public void setReportType(ReportType reportType) { withReportType(reportType); }
/** * <p> * Specifies the type of the assessment report that you want to generate. There are two types of assessment reports: * a finding report and a full report. For more information, see <a * href="http://docs.aws.amazon.com/inspector/latest/userguide/inspector_reports.html">Assessment Reports</a>. * </p> * * @param reportType * Specifies the type of the assessment report that you want to generate. There are two types of assessment * reports: a finding report and a full report. For more information, see <a * href="http://docs.aws.amazon.com/inspector/latest/userguide/inspector_reports.html">Assessment * Reports</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportType */ public GetAssessmentReportRequest withReportType(String reportType) { setReportType(reportType); return this; }
/** * <p> * Specifies the file format (html or pdf) of the assessment report that you want to generate. * </p> * * @param reportFileFormat * Specifies the file format (html or pdf) of the assessment report that you want to generate. * @see ReportFileFormat */ public void setReportFileFormat(ReportFileFormat reportFileFormat) { withReportFileFormat(reportFileFormat); }
/** * <p> * Specifies the type of the assessment report that you want to generate. There are two types of assessment reports: * a finding report and a full report. For more information, see <a * href="http://docs.aws.amazon.com/inspector/latest/userguide/inspector_reports.html">Assessment Reports</a>. * </p> * * @param reportType * Specifies the type of the assessment report that you want to generate. There are two types of assessment * reports: a finding report and a full report. For more information, see <a * href="http://docs.aws.amazon.com/inspector/latest/userguide/inspector_reports.html">Assessment * Reports</a>. * @see ReportType */ public void setReportType(ReportType reportType) { withReportType(reportType); }
/** * <p> * Specifies the type of the assessment report that you want to generate. There are two types of assessment reports: * a finding report and a full report. For more information, see <a * href="http://docs.aws.amazon.com/inspector/latest/userguide/inspector_reports.html">Assessment Reports</a>. * </p> * * @param reportType * Specifies the type of the assessment report that you want to generate. There are two types of assessment * reports: a finding report and a full report. For more information, see <a * href="http://docs.aws.amazon.com/inspector/latest/userguide/inspector_reports.html">Assessment * Reports</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportType */ public GetAssessmentReportRequest withReportType(String reportType) { setReportType(reportType); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetAssessmentReportRequest == false) return false; GetAssessmentReportRequest other = (GetAssessmentReportRequest) obj; if (other.getAssessmentRunArn() == null ^ this.getAssessmentRunArn() == null) return false; if (other.getAssessmentRunArn() != null && other.getAssessmentRunArn().equals(this.getAssessmentRunArn()) == false) return false; if (other.getReportFileFormat() == null ^ this.getReportFileFormat() == null) return false; if (other.getReportFileFormat() != null && other.getReportFileFormat().equals(this.getReportFileFormat()) == false) return false; if (other.getReportType() == null ^ this.getReportType() == null) return false; if (other.getReportType() != null && other.getReportType().equals(this.getReportType()) == false) return false; return true; }
/** * <p> * The ARN that specifies the assessment run for which you want to generate a report. * </p> * * @param assessmentRunArn * The ARN that specifies the assessment run for which you want to generate a report. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAssessmentReportRequest withAssessmentRunArn(String assessmentRunArn) { setAssessmentRunArn(assessmentRunArn); return this; }
/** * <p> * Specifies the file format (html or pdf) of the assessment report that you want to generate. * </p> * * @param reportFileFormat * Specifies the file format (html or pdf) of the assessment report that you want to generate. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportFileFormat */ public GetAssessmentReportRequest withReportFileFormat(String reportFileFormat) { setReportFileFormat(reportFileFormat); 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 (getAssessmentRunArn() != null) sb.append("AssessmentRunArn: ").append(getAssessmentRunArn()).append(","); if (getReportFileFormat() != null) sb.append("ReportFileFormat: ").append(getReportFileFormat()).append(","); if (getReportType() != null) sb.append("ReportType: ").append(getReportType()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(GetAssessmentReportRequest getAssessmentReportRequest, ProtocolMarshaller protocolMarshaller) { if (getAssessmentReportRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getAssessmentReportRequest.getAssessmentRunArn(), ASSESSMENTRUNARN_BINDING); protocolMarshaller.marshall(getAssessmentReportRequest.getReportFileFormat(), REPORTFILEFORMAT_BINDING); protocolMarshaller.marshall(getAssessmentReportRequest.getReportType(), REPORTTYPE_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 + ((getAssessmentRunArn() == null) ? 0 : getAssessmentRunArn().hashCode()); hashCode = prime * hashCode + ((getReportFileFormat() == null) ? 0 : getReportFileFormat().hashCode()); hashCode = prime * hashCode + ((getReportType() == null) ? 0 : getReportType().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetAssessmentReportRequest == false) return false; GetAssessmentReportRequest other = (GetAssessmentReportRequest) obj; if (other.getAssessmentRunArn() == null ^ this.getAssessmentRunArn() == null) return false; if (other.getAssessmentRunArn() != null && other.getAssessmentRunArn().equals(this.getAssessmentRunArn()) == false) return false; if (other.getReportFileFormat() == null ^ this.getReportFileFormat() == null) return false; if (other.getReportFileFormat() != null && other.getReportFileFormat().equals(this.getReportFileFormat()) == false) return false; if (other.getReportType() == null ^ this.getReportType() == null) return false; if (other.getReportType() != null && other.getReportType().equals(this.getReportType()) == 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 (getAssessmentRunArn() != null) sb.append("AssessmentRunArn: ").append(getAssessmentRunArn()).append(","); if (getReportFileFormat() != null) sb.append("ReportFileFormat: ").append(getReportFileFormat()).append(","); if (getReportType() != null) sb.append("ReportType: ").append(getReportType()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(GetAssessmentReportRequest getAssessmentReportRequest, ProtocolMarshaller protocolMarshaller) { if (getAssessmentReportRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getAssessmentReportRequest.getAssessmentRunArn(), ASSESSMENTRUNARN_BINDING); protocolMarshaller.marshall(getAssessmentReportRequest.getReportFileFormat(), REPORTFILEFORMAT_BINDING); protocolMarshaller.marshall(getAssessmentReportRequest.getReportType(), REPORTTYPE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }