com.amazonaws.services.forecast.model.DescribeMonitorResult Maven / Gradle / Ivy
/*
* 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.forecast.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeMonitorResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The name of the monitor.
*
*/
private String monitorName;
/**
*
* The Amazon Resource Name (ARN) of the monitor resource described.
*
*/
private String monitorArn;
/**
*
* The Amazon Resource Name (ARN) of the auto predictor being monitored.
*
*/
private String resourceArn;
/**
*
* The status of the monitor resource.
*
*/
private String status;
/**
*
* The timestamp of the latest evaluation completed by the monitor.
*
*/
private java.util.Date lastEvaluationTime;
/**
*
* The state of the monitor's latest evaluation.
*
*/
private String lastEvaluationState;
/**
*
* Metrics you can use as a baseline for comparison purposes. Use these values you interpret monitoring results for
* an auto predictor.
*
*/
private Baseline baseline;
/**
*
* An error message, if any, for the monitor.
*
*/
private String message;
/**
*
* The timestamp for when the monitor resource was created.
*
*/
private java.util.Date creationTime;
/**
*
* The timestamp of the latest modification to the monitor.
*
*/
private java.util.Date lastModificationTime;
/**
*
* The estimated number of minutes remaining before the monitor resource finishes its current evaluation.
*
*/
private Long estimatedEvaluationTimeRemainingInMinutes;
/**
*
* The name of the monitor.
*
*
* @param monitorName
* The name of the monitor.
*/
public void setMonitorName(String monitorName) {
this.monitorName = monitorName;
}
/**
*
* The name of the monitor.
*
*
* @return The name of the monitor.
*/
public String getMonitorName() {
return this.monitorName;
}
/**
*
* The name of the monitor.
*
*
* @param monitorName
* The name of the monitor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withMonitorName(String monitorName) {
setMonitorName(monitorName);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the monitor resource described.
*
*
* @param monitorArn
* The Amazon Resource Name (ARN) of the monitor resource described.
*/
public void setMonitorArn(String monitorArn) {
this.monitorArn = monitorArn;
}
/**
*
* The Amazon Resource Name (ARN) of the monitor resource described.
*
*
* @return The Amazon Resource Name (ARN) of the monitor resource described.
*/
public String getMonitorArn() {
return this.monitorArn;
}
/**
*
* The Amazon Resource Name (ARN) of the monitor resource described.
*
*
* @param monitorArn
* The Amazon Resource Name (ARN) of the monitor resource described.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withMonitorArn(String monitorArn) {
setMonitorArn(monitorArn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the auto predictor being monitored.
*
*
* @param resourceArn
* The Amazon Resource Name (ARN) of the auto predictor being monitored.
*/
public void setResourceArn(String resourceArn) {
this.resourceArn = resourceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the auto predictor being monitored.
*
*
* @return The Amazon Resource Name (ARN) of the auto predictor being monitored.
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the auto predictor being monitored.
*
*
* @param resourceArn
* The Amazon Resource Name (ARN) of the auto predictor being monitored.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withResourceArn(String resourceArn) {
setResourceArn(resourceArn);
return this;
}
/**
*
* The status of the monitor resource.
*
*
* @param status
* The status of the monitor resource.
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the monitor resource.
*
*
* @return The status of the monitor resource.
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the monitor resource.
*
*
* @param status
* The status of the monitor resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The timestamp of the latest evaluation completed by the monitor.
*
*
* @param lastEvaluationTime
* The timestamp of the latest evaluation completed by the monitor.
*/
public void setLastEvaluationTime(java.util.Date lastEvaluationTime) {
this.lastEvaluationTime = lastEvaluationTime;
}
/**
*
* The timestamp of the latest evaluation completed by the monitor.
*
*
* @return The timestamp of the latest evaluation completed by the monitor.
*/
public java.util.Date getLastEvaluationTime() {
return this.lastEvaluationTime;
}
/**
*
* The timestamp of the latest evaluation completed by the monitor.
*
*
* @param lastEvaluationTime
* The timestamp of the latest evaluation completed by the monitor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withLastEvaluationTime(java.util.Date lastEvaluationTime) {
setLastEvaluationTime(lastEvaluationTime);
return this;
}
/**
*
* The state of the monitor's latest evaluation.
*
*
* @param lastEvaluationState
* The state of the monitor's latest evaluation.
*/
public void setLastEvaluationState(String lastEvaluationState) {
this.lastEvaluationState = lastEvaluationState;
}
/**
*
* The state of the monitor's latest evaluation.
*
*
* @return The state of the monitor's latest evaluation.
*/
public String getLastEvaluationState() {
return this.lastEvaluationState;
}
/**
*
* The state of the monitor's latest evaluation.
*
*
* @param lastEvaluationState
* The state of the monitor's latest evaluation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withLastEvaluationState(String lastEvaluationState) {
setLastEvaluationState(lastEvaluationState);
return this;
}
/**
*
* Metrics you can use as a baseline for comparison purposes. Use these values you interpret monitoring results for
* an auto predictor.
*
*
* @param baseline
* Metrics you can use as a baseline for comparison purposes. Use these values you interpret monitoring
* results for an auto predictor.
*/
public void setBaseline(Baseline baseline) {
this.baseline = baseline;
}
/**
*
* Metrics you can use as a baseline for comparison purposes. Use these values you interpret monitoring results for
* an auto predictor.
*
*
* @return Metrics you can use as a baseline for comparison purposes. Use these values you interpret monitoring
* results for an auto predictor.
*/
public Baseline getBaseline() {
return this.baseline;
}
/**
*
* Metrics you can use as a baseline for comparison purposes. Use these values you interpret monitoring results for
* an auto predictor.
*
*
* @param baseline
* Metrics you can use as a baseline for comparison purposes. Use these values you interpret monitoring
* results for an auto predictor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withBaseline(Baseline baseline) {
setBaseline(baseline);
return this;
}
/**
*
* An error message, if any, for the monitor.
*
*
* @param message
* An error message, if any, for the monitor.
*/
public void setMessage(String message) {
this.message = message;
}
/**
*
* An error message, if any, for the monitor.
*
*
* @return An error message, if any, for the monitor.
*/
public String getMessage() {
return this.message;
}
/**
*
* An error message, if any, for the monitor.
*
*
* @param message
* An error message, if any, for the monitor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withMessage(String message) {
setMessage(message);
return this;
}
/**
*
* The timestamp for when the monitor resource was created.
*
*
* @param creationTime
* The timestamp for when the monitor resource was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The timestamp for when the monitor resource was created.
*
*
* @return The timestamp for when the monitor resource was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The timestamp for when the monitor resource was created.
*
*
* @param creationTime
* The timestamp for when the monitor resource was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The timestamp of the latest modification to the monitor.
*
*
* @param lastModificationTime
* The timestamp of the latest modification to the monitor.
*/
public void setLastModificationTime(java.util.Date lastModificationTime) {
this.lastModificationTime = lastModificationTime;
}
/**
*
* The timestamp of the latest modification to the monitor.
*
*
* @return The timestamp of the latest modification to the monitor.
*/
public java.util.Date getLastModificationTime() {
return this.lastModificationTime;
}
/**
*
* The timestamp of the latest modification to the monitor.
*
*
* @param lastModificationTime
* The timestamp of the latest modification to the monitor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withLastModificationTime(java.util.Date lastModificationTime) {
setLastModificationTime(lastModificationTime);
return this;
}
/**
*
* The estimated number of minutes remaining before the monitor resource finishes its current evaluation.
*
*
* @param estimatedEvaluationTimeRemainingInMinutes
* The estimated number of minutes remaining before the monitor resource finishes its current evaluation.
*/
public void setEstimatedEvaluationTimeRemainingInMinutes(Long estimatedEvaluationTimeRemainingInMinutes) {
this.estimatedEvaluationTimeRemainingInMinutes = estimatedEvaluationTimeRemainingInMinutes;
}
/**
*
* The estimated number of minutes remaining before the monitor resource finishes its current evaluation.
*
*
* @return The estimated number of minutes remaining before the monitor resource finishes its current evaluation.
*/
public Long getEstimatedEvaluationTimeRemainingInMinutes() {
return this.estimatedEvaluationTimeRemainingInMinutes;
}
/**
*
* The estimated number of minutes remaining before the monitor resource finishes its current evaluation.
*
*
* @param estimatedEvaluationTimeRemainingInMinutes
* The estimated number of minutes remaining before the monitor resource finishes its current evaluation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMonitorResult withEstimatedEvaluationTimeRemainingInMinutes(Long estimatedEvaluationTimeRemainingInMinutes) {
setEstimatedEvaluationTimeRemainingInMinutes(estimatedEvaluationTimeRemainingInMinutes);
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 (getMonitorName() != null)
sb.append("MonitorName: ").append(getMonitorName()).append(",");
if (getMonitorArn() != null)
sb.append("MonitorArn: ").append(getMonitorArn()).append(",");
if (getResourceArn() != null)
sb.append("ResourceArn: ").append(getResourceArn()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getLastEvaluationTime() != null)
sb.append("LastEvaluationTime: ").append(getLastEvaluationTime()).append(",");
if (getLastEvaluationState() != null)
sb.append("LastEvaluationState: ").append(getLastEvaluationState()).append(",");
if (getBaseline() != null)
sb.append("Baseline: ").append(getBaseline()).append(",");
if (getMessage() != null)
sb.append("Message: ").append(getMessage()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getLastModificationTime() != null)
sb.append("LastModificationTime: ").append(getLastModificationTime()).append(",");
if (getEstimatedEvaluationTimeRemainingInMinutes() != null)
sb.append("EstimatedEvaluationTimeRemainingInMinutes: ").append(getEstimatedEvaluationTimeRemainingInMinutes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeMonitorResult == false)
return false;
DescribeMonitorResult other = (DescribeMonitorResult) obj;
if (other.getMonitorName() == null ^ this.getMonitorName() == null)
return false;
if (other.getMonitorName() != null && other.getMonitorName().equals(this.getMonitorName()) == false)
return false;
if (other.getMonitorArn() == null ^ this.getMonitorArn() == null)
return false;
if (other.getMonitorArn() != null && other.getMonitorArn().equals(this.getMonitorArn()) == false)
return false;
if (other.getResourceArn() == null ^ this.getResourceArn() == null)
return false;
if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getLastEvaluationTime() == null ^ this.getLastEvaluationTime() == null)
return false;
if (other.getLastEvaluationTime() != null && other.getLastEvaluationTime().equals(this.getLastEvaluationTime()) == false)
return false;
if (other.getLastEvaluationState() == null ^ this.getLastEvaluationState() == null)
return false;
if (other.getLastEvaluationState() != null && other.getLastEvaluationState().equals(this.getLastEvaluationState()) == false)
return false;
if (other.getBaseline() == null ^ this.getBaseline() == null)
return false;
if (other.getBaseline() != null && other.getBaseline().equals(this.getBaseline()) == false)
return false;
if (other.getMessage() == null ^ this.getMessage() == null)
return false;
if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getLastModificationTime() == null ^ this.getLastModificationTime() == null)
return false;
if (other.getLastModificationTime() != null && other.getLastModificationTime().equals(this.getLastModificationTime()) == false)
return false;
if (other.getEstimatedEvaluationTimeRemainingInMinutes() == null ^ this.getEstimatedEvaluationTimeRemainingInMinutes() == null)
return false;
if (other.getEstimatedEvaluationTimeRemainingInMinutes() != null
&& other.getEstimatedEvaluationTimeRemainingInMinutes().equals(this.getEstimatedEvaluationTimeRemainingInMinutes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMonitorName() == null) ? 0 : getMonitorName().hashCode());
hashCode = prime * hashCode + ((getMonitorArn() == null) ? 0 : getMonitorArn().hashCode());
hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getLastEvaluationTime() == null) ? 0 : getLastEvaluationTime().hashCode());
hashCode = prime * hashCode + ((getLastEvaluationState() == null) ? 0 : getLastEvaluationState().hashCode());
hashCode = prime * hashCode + ((getBaseline() == null) ? 0 : getBaseline().hashCode());
hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLastModificationTime() == null) ? 0 : getLastModificationTime().hashCode());
hashCode = prime * hashCode
+ ((getEstimatedEvaluationTimeRemainingInMinutes() == null) ? 0 : getEstimatedEvaluationTimeRemainingInMinutes().hashCode());
return hashCode;
}
@Override
public DescribeMonitorResult clone() {
try {
return (DescribeMonitorResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}