All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.applicationcostprofiler.model.ReportDefinition Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Application Cost Profiler module holds the client classes that are used for communicating with AWS Application Cost Profiler Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The configuration of a report in AWS Application Cost Profiler. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReportDefinition implements Serializable, Cloneable, StructuredPojo { /** *

* The ID of the report. *

*/ private String reportId; /** *

* Description of the report *

*/ private String reportDescription; /** *

* The cadence at which the report is generated. *

*/ private String reportFrequency; /** *

* The format used for the generated reports. *

*/ private String format; /** *

* The location in Amazon Simple Storage Service (Amazon S3) the reports should be saved to. *

*/ private S3Location destinationS3Location; /** *

* Timestamp (milliseconds) when this report definition was created. *

*/ private java.util.Date createdAt; /** *

* Timestamp (milliseconds) when this report definition was last updated. *

*/ private java.util.Date lastUpdatedAt; /** *

* The ID of the report. *

* * @param reportId * The ID of the report. */ public void setReportId(String reportId) { this.reportId = reportId; } /** *

* The ID of the report. *

* * @return The ID of the report. */ public String getReportId() { return this.reportId; } /** *

* The ID of the report. *

* * @param reportId * The ID of the report. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportDefinition withReportId(String reportId) { setReportId(reportId); return this; } /** *

* Description of the report *

* * @param reportDescription * Description of the report */ public void setReportDescription(String reportDescription) { this.reportDescription = reportDescription; } /** *

* Description of the report *

* * @return Description of the report */ public String getReportDescription() { return this.reportDescription; } /** *

* Description of the report *

* * @param reportDescription * Description of the report * @return Returns a reference to this object so that method calls can be chained together. */ public ReportDefinition withReportDescription(String reportDescription) { setReportDescription(reportDescription); return this; } /** *

* The cadence at which the report is generated. *

* * @param reportFrequency * The cadence at which the report is generated. * @see ReportFrequency */ public void setReportFrequency(String reportFrequency) { this.reportFrequency = reportFrequency; } /** *

* The cadence at which the report is generated. *

* * @return The cadence at which the report is generated. * @see ReportFrequency */ public String getReportFrequency() { return this.reportFrequency; } /** *

* The cadence at which the report is generated. *

* * @param reportFrequency * The cadence at which the report is generated. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportFrequency */ public ReportDefinition withReportFrequency(String reportFrequency) { setReportFrequency(reportFrequency); return this; } /** *

* The cadence at which the report is generated. *

* * @param reportFrequency * The cadence at which the report is generated. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportFrequency */ public ReportDefinition withReportFrequency(ReportFrequency reportFrequency) { this.reportFrequency = reportFrequency.toString(); return this; } /** *

* The format used for the generated reports. *

* * @param format * The format used for the generated reports. * @see Format */ public void setFormat(String format) { this.format = format; } /** *

* The format used for the generated reports. *

* * @return The format used for the generated reports. * @see Format */ public String getFormat() { return this.format; } /** *

* The format used for the generated reports. *

* * @param format * The format used for the generated reports. * @return Returns a reference to this object so that method calls can be chained together. * @see Format */ public ReportDefinition withFormat(String format) { setFormat(format); return this; } /** *

* The format used for the generated reports. *

* * @param format * The format used for the generated reports. * @return Returns a reference to this object so that method calls can be chained together. * @see Format */ public ReportDefinition withFormat(Format format) { this.format = format.toString(); return this; } /** *

* The location in Amazon Simple Storage Service (Amazon S3) the reports should be saved to. *

* * @param destinationS3Location * The location in Amazon Simple Storage Service (Amazon S3) the reports should be saved to. */ public void setDestinationS3Location(S3Location destinationS3Location) { this.destinationS3Location = destinationS3Location; } /** *

* The location in Amazon Simple Storage Service (Amazon S3) the reports should be saved to. *

* * @return The location in Amazon Simple Storage Service (Amazon S3) the reports should be saved to. */ public S3Location getDestinationS3Location() { return this.destinationS3Location; } /** *

* The location in Amazon Simple Storage Service (Amazon S3) the reports should be saved to. *

* * @param destinationS3Location * The location in Amazon Simple Storage Service (Amazon S3) the reports should be saved to. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportDefinition withDestinationS3Location(S3Location destinationS3Location) { setDestinationS3Location(destinationS3Location); return this; } /** *

* Timestamp (milliseconds) when this report definition was created. *

* * @param createdAt * Timestamp (milliseconds) when this report definition was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* Timestamp (milliseconds) when this report definition was created. *

* * @return Timestamp (milliseconds) when this report definition was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* Timestamp (milliseconds) when this report definition was created. *

* * @param createdAt * Timestamp (milliseconds) when this report definition was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportDefinition withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* Timestamp (milliseconds) when this report definition was last updated. *

* * @param lastUpdatedAt * Timestamp (milliseconds) when this report definition was last updated. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** *

* Timestamp (milliseconds) when this report definition was last updated. *

* * @return Timestamp (milliseconds) when this report definition was last updated. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** *

* Timestamp (milliseconds) when this report definition was last updated. *

* * @param lastUpdatedAt * Timestamp (milliseconds) when this report definition was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportDefinition withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); 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()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReportDefinition == false) return false; ReportDefinition other = (ReportDefinition) 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; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == 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()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); return hashCode; } @Override public ReportDefinition clone() { try { return (ReportDefinition) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.applicationcostprofiler.model.transform.ReportDefinitionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy