/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.applicationcostprofiler.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateReportDefinitionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Required. ID of the report to update. *
*/ private String reportId; /** ** Required. Description of the report. *
*/ private String reportDescription; /** ** Required. The cadence to generate the report. *
*/ private String reportFrequency; /** ** Required. The format to use for the generated report. *
*/ private String format; /** ** Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the report. *
*/ private S3Location destinationS3Location; /** ** Required. ID of the report to update. *
* * @param reportId * Required. ID of the report to update. */ public void setReportId(String reportId) { this.reportId = reportId; } /** ** Required. ID of the report to update. *
* * @return Required. ID of the report to update. */ public String getReportId() { return this.reportId; } /** ** Required. ID of the report to update. *
* * @param reportId * Required. ID of the report to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReportDefinitionRequest withReportId(String reportId) { setReportId(reportId); return this; } /** ** Required. Description of the report. *
* * @param reportDescription * Required. Description of the report. */ public void setReportDescription(String reportDescription) { this.reportDescription = reportDescription; } /** ** Required. Description of the report. *
* * @return Required. Description of the report. */ public String getReportDescription() { return this.reportDescription; } /** ** Required. Description of the report. *
* * @param reportDescription * Required. Description of the report. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReportDefinitionRequest withReportDescription(String reportDescription) { setReportDescription(reportDescription); return this; } /** ** Required. The cadence to generate the report. *
* * @param reportFrequency * Required. The cadence to generate the report. * @see ReportFrequency */ public void setReportFrequency(String reportFrequency) { this.reportFrequency = reportFrequency; } /** ** Required. The cadence to generate the report. *
* * @return Required. The cadence to generate the report. * @see ReportFrequency */ public String getReportFrequency() { return this.reportFrequency; } /** ** Required. The cadence to generate the report. *
* * @param reportFrequency * Required. The cadence to generate the report. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportFrequency */ public UpdateReportDefinitionRequest withReportFrequency(String reportFrequency) { setReportFrequency(reportFrequency); return this; } /** ** Required. The cadence to generate the report. *
* * @param reportFrequency * Required. The cadence to generate the report. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportFrequency */ public UpdateReportDefinitionRequest withReportFrequency(ReportFrequency reportFrequency) { this.reportFrequency = reportFrequency.toString(); return this; } /** ** Required. The format to use for the generated report. *
* * @param format * Required. The format to use for the generated report. * @see Format */ public void setFormat(String format) { this.format = format; } /** ** Required. The format to use for the generated report. *
* * @return Required. The format to use for the generated report. * @see Format */ public String getFormat() { return this.format; } /** ** Required. The format to use for the generated report. *
* * @param format * Required. The format to use for the generated report. * @return Returns a reference to this object so that method calls can be chained together. * @see Format */ public UpdateReportDefinitionRequest withFormat(String format) { setFormat(format); return this; } /** ** Required. The format to use for the generated report. *
* * @param format * Required. The format to use for the generated report. * @return Returns a reference to this object so that method calls can be chained together. * @see Format */ public UpdateReportDefinitionRequest withFormat(Format format) { this.format = format.toString(); return this; } /** ** Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the report. *
* * @param destinationS3Location * Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the * report. */ public void setDestinationS3Location(S3Location destinationS3Location) { this.destinationS3Location = destinationS3Location; } /** ** Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the report. *
* * @return Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the * report. */ public S3Location getDestinationS3Location() { return this.destinationS3Location; } /** ** Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the report. *
* * @param destinationS3Location * Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the * report. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReportDefinitionRequest withDestinationS3Location(S3Location destinationS3Location) { setDestinationS3Location(destinationS3Location); 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 (getReportId() != null) sb.append("ReportId: ").append(getReportId()).append(","); if (getReportDescription() != null) sb.append("ReportDescription: ").append(getReportDescription()).append(","); if (getReportFrequency() != null) sb.append("ReportFrequency: ").append(getReportFrequency()).append(","); if (getFormat() != null) sb.append("Format: ").append(getFormat()).append(","); if (getDestinationS3Location() != null) sb.append("DestinationS3Location: ").append(getDestinationS3Location()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateReportDefinitionRequest == false) return false; UpdateReportDefinitionRequest other = (UpdateReportDefinitionRequest) obj; if (other.getReportId() == null ^ this.getReportId() == null) return false; if (other.getReportId() != null && other.getReportId().equals(this.getReportId()) == false) return false; if (other.getReportDescription() == null ^ this.getReportDescription() == null) return false; if (other.getReportDescription() != null && other.getReportDescription().equals(this.getReportDescription()) == false) return false; if (other.getReportFrequency() == null ^ this.getReportFrequency() == null) return false; if (other.getReportFrequency() != null && other.getReportFrequency().equals(this.getReportFrequency()) == false) return false; if (other.getFormat() == null ^ this.getFormat() == null) return false; if (other.getFormat() != null && other.getFormat().equals(this.getFormat()) == false) return false; if (other.getDestinationS3Location() == null ^ this.getDestinationS3Location() == null) return false; if (other.getDestinationS3Location() != null && other.getDestinationS3Location().equals(this.getDestinationS3Location()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReportId() == null) ? 0 : getReportId().hashCode()); hashCode = prime * hashCode + ((getReportDescription() == null) ? 0 : getReportDescription().hashCode()); hashCode = prime * hashCode + ((getReportFrequency() == null) ? 0 : getReportFrequency().hashCode()); hashCode = prime * hashCode + ((getFormat() == null) ? 0 : getFormat().hashCode()); hashCode = prime * hashCode + ((getDestinationS3Location() == null) ? 0 : getDestinationS3Location().hashCode()); return hashCode; } @Override public UpdateReportDefinitionRequest clone() { return (UpdateReportDefinitionRequest) super.clone(); } }