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

com.amazonaws.services.costexplorer.model.GenerationSummary Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * Copyright 2020-2025 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.costexplorer.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The summary of the Savings Plans recommendation generation. *

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

* Indicates the ID for this specific recommendation. *

*/ private String recommendationId; /** *

* Indicates whether the recommendation generation succeeded, is processing, or failed. *

*/ private String generationStatus; /** *

* Indicates the start time of the recommendation generation. *

*/ private String generationStartedTime; /** *

* Indicates the completion time of the recommendation generation. *

*/ private String generationCompletionTime; /** *

* Indicates the estimated time for when the recommendation generation will complete. *

*/ private String estimatedCompletionTime; /** *

* Indicates the ID for this specific recommendation. *

* * @param recommendationId * Indicates the ID for this specific recommendation. */ public void setRecommendationId(String recommendationId) { this.recommendationId = recommendationId; } /** *

* Indicates the ID for this specific recommendation. *

* * @return Indicates the ID for this specific recommendation. */ public String getRecommendationId() { return this.recommendationId; } /** *

* Indicates the ID for this specific recommendation. *

* * @param recommendationId * Indicates the ID for this specific recommendation. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerationSummary withRecommendationId(String recommendationId) { setRecommendationId(recommendationId); return this; } /** *

* Indicates whether the recommendation generation succeeded, is processing, or failed. *

* * @param generationStatus * Indicates whether the recommendation generation succeeded, is processing, or failed. * @see GenerationStatus */ public void setGenerationStatus(String generationStatus) { this.generationStatus = generationStatus; } /** *

* Indicates whether the recommendation generation succeeded, is processing, or failed. *

* * @return Indicates whether the recommendation generation succeeded, is processing, or failed. * @see GenerationStatus */ public String getGenerationStatus() { return this.generationStatus; } /** *

* Indicates whether the recommendation generation succeeded, is processing, or failed. *

* * @param generationStatus * Indicates whether the recommendation generation succeeded, is processing, or failed. * @return Returns a reference to this object so that method calls can be chained together. * @see GenerationStatus */ public GenerationSummary withGenerationStatus(String generationStatus) { setGenerationStatus(generationStatus); return this; } /** *

* Indicates whether the recommendation generation succeeded, is processing, or failed. *

* * @param generationStatus * Indicates whether the recommendation generation succeeded, is processing, or failed. * @return Returns a reference to this object so that method calls can be chained together. * @see GenerationStatus */ public GenerationSummary withGenerationStatus(GenerationStatus generationStatus) { this.generationStatus = generationStatus.toString(); return this; } /** *

* Indicates the start time of the recommendation generation. *

* * @param generationStartedTime * Indicates the start time of the recommendation generation. */ public void setGenerationStartedTime(String generationStartedTime) { this.generationStartedTime = generationStartedTime; } /** *

* Indicates the start time of the recommendation generation. *

* * @return Indicates the start time of the recommendation generation. */ public String getGenerationStartedTime() { return this.generationStartedTime; } /** *

* Indicates the start time of the recommendation generation. *

* * @param generationStartedTime * Indicates the start time of the recommendation generation. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerationSummary withGenerationStartedTime(String generationStartedTime) { setGenerationStartedTime(generationStartedTime); return this; } /** *

* Indicates the completion time of the recommendation generation. *

* * @param generationCompletionTime * Indicates the completion time of the recommendation generation. */ public void setGenerationCompletionTime(String generationCompletionTime) { this.generationCompletionTime = generationCompletionTime; } /** *

* Indicates the completion time of the recommendation generation. *

* * @return Indicates the completion time of the recommendation generation. */ public String getGenerationCompletionTime() { return this.generationCompletionTime; } /** *

* Indicates the completion time of the recommendation generation. *

* * @param generationCompletionTime * Indicates the completion time of the recommendation generation. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerationSummary withGenerationCompletionTime(String generationCompletionTime) { setGenerationCompletionTime(generationCompletionTime); return this; } /** *

* Indicates the estimated time for when the recommendation generation will complete. *

* * @param estimatedCompletionTime * Indicates the estimated time for when the recommendation generation will complete. */ public void setEstimatedCompletionTime(String estimatedCompletionTime) { this.estimatedCompletionTime = estimatedCompletionTime; } /** *

* Indicates the estimated time for when the recommendation generation will complete. *

* * @return Indicates the estimated time for when the recommendation generation will complete. */ public String getEstimatedCompletionTime() { return this.estimatedCompletionTime; } /** *

* Indicates the estimated time for when the recommendation generation will complete. *

* * @param estimatedCompletionTime * Indicates the estimated time for when the recommendation generation will complete. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerationSummary withEstimatedCompletionTime(String estimatedCompletionTime) { setEstimatedCompletionTime(estimatedCompletionTime); 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 (getRecommendationId() != null) sb.append("RecommendationId: ").append(getRecommendationId()).append(","); if (getGenerationStatus() != null) sb.append("GenerationStatus: ").append(getGenerationStatus()).append(","); if (getGenerationStartedTime() != null) sb.append("GenerationStartedTime: ").append(getGenerationStartedTime()).append(","); if (getGenerationCompletionTime() != null) sb.append("GenerationCompletionTime: ").append(getGenerationCompletionTime()).append(","); if (getEstimatedCompletionTime() != null) sb.append("EstimatedCompletionTime: ").append(getEstimatedCompletionTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GenerationSummary == false) return false; GenerationSummary other = (GenerationSummary) obj; if (other.getRecommendationId() == null ^ this.getRecommendationId() == null) return false; if (other.getRecommendationId() != null && other.getRecommendationId().equals(this.getRecommendationId()) == false) return false; if (other.getGenerationStatus() == null ^ this.getGenerationStatus() == null) return false; if (other.getGenerationStatus() != null && other.getGenerationStatus().equals(this.getGenerationStatus()) == false) return false; if (other.getGenerationStartedTime() == null ^ this.getGenerationStartedTime() == null) return false; if (other.getGenerationStartedTime() != null && other.getGenerationStartedTime().equals(this.getGenerationStartedTime()) == false) return false; if (other.getGenerationCompletionTime() == null ^ this.getGenerationCompletionTime() == null) return false; if (other.getGenerationCompletionTime() != null && other.getGenerationCompletionTime().equals(this.getGenerationCompletionTime()) == false) return false; if (other.getEstimatedCompletionTime() == null ^ this.getEstimatedCompletionTime() == null) return false; if (other.getEstimatedCompletionTime() != null && other.getEstimatedCompletionTime().equals(this.getEstimatedCompletionTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRecommendationId() == null) ? 0 : getRecommendationId().hashCode()); hashCode = prime * hashCode + ((getGenerationStatus() == null) ? 0 : getGenerationStatus().hashCode()); hashCode = prime * hashCode + ((getGenerationStartedTime() == null) ? 0 : getGenerationStartedTime().hashCode()); hashCode = prime * hashCode + ((getGenerationCompletionTime() == null) ? 0 : getGenerationCompletionTime().hashCode()); hashCode = prime * hashCode + ((getEstimatedCompletionTime() == null) ? 0 : getEstimatedCompletionTime().hashCode()); return hashCode; } @Override public GenerationSummary clone() { try { return (GenerationSummary) 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.costexplorer.model.transform.GenerationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy