com.amazonaws.services.backup.model.StartReportJobRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-backup Show documentation
/*
* 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.backup.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 StartReportJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The unique name of a report plan.
*
*/
private String reportPlanName;
/**
*
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* StartReportJobInput
. Retrying a successful request with the same idempotency token results in a
* success message with no action taken.
*
*/
private String idempotencyToken;
/**
*
* The unique name of a report plan.
*
*
* @param reportPlanName
* The unique name of a report plan.
*/
public void setReportPlanName(String reportPlanName) {
this.reportPlanName = reportPlanName;
}
/**
*
* The unique name of a report plan.
*
*
* @return The unique name of a report plan.
*/
public String getReportPlanName() {
return this.reportPlanName;
}
/**
*
* The unique name of a report plan.
*
*
* @param reportPlanName
* The unique name of a report plan.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartReportJobRequest withReportPlanName(String reportPlanName) {
setReportPlanName(reportPlanName);
return this;
}
/**
*
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* StartReportJobInput
. Retrying a successful request with the same idempotency token results in a
* success message with no action taken.
*
*
* @param idempotencyToken
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* StartReportJobInput
. Retrying a successful request with the same idempotency token results in
* a success message with no action taken.
*/
public void setIdempotencyToken(String idempotencyToken) {
this.idempotencyToken = idempotencyToken;
}
/**
*
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* StartReportJobInput
. Retrying a successful request with the same idempotency token results in a
* success message with no action taken.
*
*
* @return A customer-chosen string that you can use to distinguish between otherwise identical calls to
* StartReportJobInput
. Retrying a successful request with the same idempotency token results
* in a success message with no action taken.
*/
public String getIdempotencyToken() {
return this.idempotencyToken;
}
/**
*
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* StartReportJobInput
. Retrying a successful request with the same idempotency token results in a
* success message with no action taken.
*
*
* @param idempotencyToken
* A customer-chosen string that you can use to distinguish between otherwise identical calls to
* StartReportJobInput
. Retrying a successful request with the same idempotency token results in
* a success message with no action taken.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartReportJobRequest withIdempotencyToken(String idempotencyToken) {
setIdempotencyToken(idempotencyToken);
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 (getReportPlanName() != null)
sb.append("ReportPlanName: ").append(getReportPlanName()).append(",");
if (getIdempotencyToken() != null)
sb.append("IdempotencyToken: ").append(getIdempotencyToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StartReportJobRequest == false)
return false;
StartReportJobRequest other = (StartReportJobRequest) obj;
if (other.getReportPlanName() == null ^ this.getReportPlanName() == null)
return false;
if (other.getReportPlanName() != null && other.getReportPlanName().equals(this.getReportPlanName()) == false)
return false;
if (other.getIdempotencyToken() == null ^ this.getIdempotencyToken() == null)
return false;
if (other.getIdempotencyToken() != null && other.getIdempotencyToken().equals(this.getIdempotencyToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getReportPlanName() == null) ? 0 : getReportPlanName().hashCode());
hashCode = prime * hashCode + ((getIdempotencyToken() == null) ? 0 : getIdempotencyToken().hashCode());
return hashCode;
}
@Override
public StartReportJobRequest clone() {
return (StartReportJobRequest) super.clone();
}
}