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

com.amazonaws.services.applicationcostprofiler.model.PutReportDefinitionRequest 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.772
Show newest version
/*
 * Copyright 2019-2024 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 PutReportDefinitionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Required. ID of the report. You can choose any valid string matching the pattern for the ID. *

*/ 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. You can choose any valid string matching the pattern for the ID. *

* * @param reportId * Required. ID of the report. You can choose any valid string matching the pattern for the ID. */ public void setReportId(String reportId) { this.reportId = reportId; } /** *

* Required. ID of the report. You can choose any valid string matching the pattern for the ID. *

* * @return Required. ID of the report. You can choose any valid string matching the pattern for the ID. */ public String getReportId() { return this.reportId; } /** *

* Required. ID of the report. You can choose any valid string matching the pattern for the ID. *

* * @param reportId * Required. ID of the report. You can choose any valid string matching the pattern for the ID. * @return Returns a reference to this object so that method calls can be chained together. */ public PutReportDefinitionRequest 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 PutReportDefinitionRequest 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 PutReportDefinitionRequest 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 PutReportDefinitionRequest 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 PutReportDefinitionRequest 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 PutReportDefinitionRequest 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 PutReportDefinitionRequest 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 PutReportDefinitionRequest == false) return false; PutReportDefinitionRequest other = (PutReportDefinitionRequest) 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 PutReportDefinitionRequest clone() { return (PutReportDefinitionRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy