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

com.amazonaws.services.pi.model.CreatePerformanceAnalysisReportRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Performance Insights module holds the client classes that are used for communicating with AWS Performance Insights 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.pi.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 CreatePerformanceAnalysisReportRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Web Services service for which Performance Insights will return metrics. Valid value is * RDS. *

*/ private String serviceType; /** *

* An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers * metrics from this data source. *

*

* To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, * specify db-ADECBTYHKTSAUMUZQYPDS2GW4A. *

*/ private String identifier; /** *

* The start time defined for the analysis report. *

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

* The end time defined for the analysis report. *

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

* The metadata assigned to the analysis report consisting of a key-value pair. *

*/ private java.util.List tags; /** *

* The Amazon Web Services service for which Performance Insights will return metrics. Valid value is * RDS. *

* * @param serviceType * The Amazon Web Services service for which Performance Insights will return metrics. Valid value is * RDS. * @see ServiceType */ public void setServiceType(String serviceType) { this.serviceType = serviceType; } /** *

* The Amazon Web Services service for which Performance Insights will return metrics. Valid value is * RDS. *

* * @return The Amazon Web Services service for which Performance Insights will return metrics. Valid value is * RDS. * @see ServiceType */ public String getServiceType() { return this.serviceType; } /** *

* The Amazon Web Services service for which Performance Insights will return metrics. Valid value is * RDS. *

* * @param serviceType * The Amazon Web Services service for which Performance Insights will return metrics. Valid value is * RDS. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceType */ public CreatePerformanceAnalysisReportRequest withServiceType(String serviceType) { setServiceType(serviceType); return this; } /** *

* The Amazon Web Services service for which Performance Insights will return metrics. Valid value is * RDS. *

* * @param serviceType * The Amazon Web Services service for which Performance Insights will return metrics. Valid value is * RDS. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceType */ public CreatePerformanceAnalysisReportRequest withServiceType(ServiceType serviceType) { this.serviceType = serviceType.toString(); return this; } /** *

* An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers * metrics from this data source. *

*

* To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, * specify db-ADECBTYHKTSAUMUZQYPDS2GW4A. *

* * @param identifier * An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers * metrics from this data source.

*

* To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For * example, specify db-ADECBTYHKTSAUMUZQYPDS2GW4A. */ public void setIdentifier(String identifier) { this.identifier = identifier; } /** *

* An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers * metrics from this data source. *

*

* To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, * specify db-ADECBTYHKTSAUMUZQYPDS2GW4A. *

* * @return An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights * gathers metrics from this data source.

*

* To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For * example, specify db-ADECBTYHKTSAUMUZQYPDS2GW4A. */ public String getIdentifier() { return this.identifier; } /** *

* An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers * metrics from this data source. *

*

* To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, * specify db-ADECBTYHKTSAUMUZQYPDS2GW4A. *

* * @param identifier * An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers * metrics from this data source.

*

* To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For * example, specify db-ADECBTYHKTSAUMUZQYPDS2GW4A. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePerformanceAnalysisReportRequest withIdentifier(String identifier) { setIdentifier(identifier); return this; } /** *

* The start time defined for the analysis report. *

* * @param startTime * The start time defined for the analysis report. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start time defined for the analysis report. *

* * @return The start time defined for the analysis report. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start time defined for the analysis report. *

* * @param startTime * The start time defined for the analysis report. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePerformanceAnalysisReportRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The end time defined for the analysis report. *

* * @param endTime * The end time defined for the analysis report. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end time defined for the analysis report. *

* * @return The end time defined for the analysis report. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end time defined for the analysis report. *

* * @param endTime * The end time defined for the analysis report. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePerformanceAnalysisReportRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The metadata assigned to the analysis report consisting of a key-value pair. *

* * @return The metadata assigned to the analysis report consisting of a key-value pair. */ public java.util.List getTags() { return tags; } /** *

* The metadata assigned to the analysis report consisting of a key-value pair. *

* * @param tags * The metadata assigned to the analysis report consisting of a key-value pair. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* The metadata assigned to the analysis report consisting of a key-value pair. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * The metadata assigned to the analysis report consisting of a key-value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePerformanceAnalysisReportRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* The metadata assigned to the analysis report consisting of a key-value pair. *

* * @param tags * The metadata assigned to the analysis report consisting of a key-value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePerformanceAnalysisReportRequest withTags(java.util.Collection tags) { setTags(tags); 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 (getServiceType() != null) sb.append("ServiceType: ").append(getServiceType()).append(","); if (getIdentifier() != null) sb.append("Identifier: ").append(getIdentifier()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreatePerformanceAnalysisReportRequest == false) return false; CreatePerformanceAnalysisReportRequest other = (CreatePerformanceAnalysisReportRequest) obj; if (other.getServiceType() == null ^ this.getServiceType() == null) return false; if (other.getServiceType() != null && other.getServiceType().equals(this.getServiceType()) == false) return false; if (other.getIdentifier() == null ^ this.getIdentifier() == null) return false; if (other.getIdentifier() != null && other.getIdentifier().equals(this.getIdentifier()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServiceType() == null) ? 0 : getServiceType().hashCode()); hashCode = prime * hashCode + ((getIdentifier() == null) ? 0 : getIdentifier().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreatePerformanceAnalysisReportRequest clone() { return (CreatePerformanceAnalysisReportRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy