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

com.amazonaws.services.applicationsignals.model.UpdateServiceLevelObjectiveRequest 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.applicationsignals.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 UpdateServiceLevelObjectiveRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) or name of the service level objective that you want to update. *

*/ private String id; /** *

* An optional description for the SLO. *

*/ private String description; /** *

* A structure that contains information about what performance metric this SLO will monitor. *

*/ private ServiceLevelIndicatorConfig sliConfig; /** *

* A structure that contains the attributes that determine the goal of the SLO. This includes the time period for * evaluation and the attainment threshold. *

*/ private Goal goal; /** *

* The Amazon Resource Name (ARN) or name of the service level objective that you want to update. *

* * @param id * The Amazon Resource Name (ARN) or name of the service level objective that you want to update. */ public void setId(String id) { this.id = id; } /** *

* The Amazon Resource Name (ARN) or name of the service level objective that you want to update. *

* * @return The Amazon Resource Name (ARN) or name of the service level objective that you want to update. */ public String getId() { return this.id; } /** *

* The Amazon Resource Name (ARN) or name of the service level objective that you want to update. *

* * @param id * The Amazon Resource Name (ARN) or name of the service level objective that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServiceLevelObjectiveRequest withId(String id) { setId(id); return this; } /** *

* An optional description for the SLO. *

* * @param description * An optional description for the SLO. */ public void setDescription(String description) { this.description = description; } /** *

* An optional description for the SLO. *

* * @return An optional description for the SLO. */ public String getDescription() { return this.description; } /** *

* An optional description for the SLO. *

* * @param description * An optional description for the SLO. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServiceLevelObjectiveRequest withDescription(String description) { setDescription(description); return this; } /** *

* A structure that contains information about what performance metric this SLO will monitor. *

* * @param sliConfig * A structure that contains information about what performance metric this SLO will monitor. */ public void setSliConfig(ServiceLevelIndicatorConfig sliConfig) { this.sliConfig = sliConfig; } /** *

* A structure that contains information about what performance metric this SLO will monitor. *

* * @return A structure that contains information about what performance metric this SLO will monitor. */ public ServiceLevelIndicatorConfig getSliConfig() { return this.sliConfig; } /** *

* A structure that contains information about what performance metric this SLO will monitor. *

* * @param sliConfig * A structure that contains information about what performance metric this SLO will monitor. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServiceLevelObjectiveRequest withSliConfig(ServiceLevelIndicatorConfig sliConfig) { setSliConfig(sliConfig); return this; } /** *

* A structure that contains the attributes that determine the goal of the SLO. This includes the time period for * evaluation and the attainment threshold. *

* * @param goal * A structure that contains the attributes that determine the goal of the SLO. This includes the time period * for evaluation and the attainment threshold. */ public void setGoal(Goal goal) { this.goal = goal; } /** *

* A structure that contains the attributes that determine the goal of the SLO. This includes the time period for * evaluation and the attainment threshold. *

* * @return A structure that contains the attributes that determine the goal of the SLO. This includes the time * period for evaluation and the attainment threshold. */ public Goal getGoal() { return this.goal; } /** *

* A structure that contains the attributes that determine the goal of the SLO. This includes the time period for * evaluation and the attainment threshold. *

* * @param goal * A structure that contains the attributes that determine the goal of the SLO. This includes the time period * for evaluation and the attainment threshold. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServiceLevelObjectiveRequest withGoal(Goal goal) { setGoal(goal); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getSliConfig() != null) sb.append("SliConfig: ").append(getSliConfig()).append(","); if (getGoal() != null) sb.append("Goal: ").append(getGoal()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateServiceLevelObjectiveRequest == false) return false; UpdateServiceLevelObjectiveRequest other = (UpdateServiceLevelObjectiveRequest) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getSliConfig() == null ^ this.getSliConfig() == null) return false; if (other.getSliConfig() != null && other.getSliConfig().equals(this.getSliConfig()) == false) return false; if (other.getGoal() == null ^ this.getGoal() == null) return false; if (other.getGoal() != null && other.getGoal().equals(this.getGoal()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getSliConfig() == null) ? 0 : getSliConfig().hashCode()); hashCode = prime * hashCode + ((getGoal() == null) ? 0 : getGoal().hashCode()); return hashCode; } @Override public UpdateServiceLevelObjectiveRequest clone() { return (UpdateServiceLevelObjectiveRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy