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

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

    /**
     * 

* The ID of the problem. *

*/ private String problemId; /** *

* The status of the problem. Arguments can be passed for only problems that show a status of * RECOVERING. *

*/ private String updateStatus; /** *

* The visibility of a problem. When you pass a value of IGNORED, the problem is removed from the * default view, and all notifications for the problem are suspended. When VISIBLE is passed, the * IGNORED action is reversed. *

*/ private String visibility; /** *

* The ID of the problem. *

* * @param problemId * The ID of the problem. */ public void setProblemId(String problemId) { this.problemId = problemId; } /** *

* The ID of the problem. *

* * @return The ID of the problem. */ public String getProblemId() { return this.problemId; } /** *

* The ID of the problem. *

* * @param problemId * The ID of the problem. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProblemRequest withProblemId(String problemId) { setProblemId(problemId); return this; } /** *

* The status of the problem. Arguments can be passed for only problems that show a status of * RECOVERING. *

* * @param updateStatus * The status of the problem. Arguments can be passed for only problems that show a status of * RECOVERING. * @see UpdateStatus */ public void setUpdateStatus(String updateStatus) { this.updateStatus = updateStatus; } /** *

* The status of the problem. Arguments can be passed for only problems that show a status of * RECOVERING. *

* * @return The status of the problem. Arguments can be passed for only problems that show a status of * RECOVERING. * @see UpdateStatus */ public String getUpdateStatus() { return this.updateStatus; } /** *

* The status of the problem. Arguments can be passed for only problems that show a status of * RECOVERING. *

* * @param updateStatus * The status of the problem. Arguments can be passed for only problems that show a status of * RECOVERING. * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateStatus */ public UpdateProblemRequest withUpdateStatus(String updateStatus) { setUpdateStatus(updateStatus); return this; } /** *

* The status of the problem. Arguments can be passed for only problems that show a status of * RECOVERING. *

* * @param updateStatus * The status of the problem. Arguments can be passed for only problems that show a status of * RECOVERING. * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateStatus */ public UpdateProblemRequest withUpdateStatus(UpdateStatus updateStatus) { this.updateStatus = updateStatus.toString(); return this; } /** *

* The visibility of a problem. When you pass a value of IGNORED, the problem is removed from the * default view, and all notifications for the problem are suspended. When VISIBLE is passed, the * IGNORED action is reversed. *

* * @param visibility * The visibility of a problem. When you pass a value of IGNORED, the problem is removed from * the default view, and all notifications for the problem are suspended. When VISIBLE is * passed, the IGNORED action is reversed. * @see Visibility */ public void setVisibility(String visibility) { this.visibility = visibility; } /** *

* The visibility of a problem. When you pass a value of IGNORED, the problem is removed from the * default view, and all notifications for the problem are suspended. When VISIBLE is passed, the * IGNORED action is reversed. *

* * @return The visibility of a problem. When you pass a value of IGNORED, the problem is removed from * the default view, and all notifications for the problem are suspended. When VISIBLE is * passed, the IGNORED action is reversed. * @see Visibility */ public String getVisibility() { return this.visibility; } /** *

* The visibility of a problem. When you pass a value of IGNORED, the problem is removed from the * default view, and all notifications for the problem are suspended. When VISIBLE is passed, the * IGNORED action is reversed. *

* * @param visibility * The visibility of a problem. When you pass a value of IGNORED, the problem is removed from * the default view, and all notifications for the problem are suspended. When VISIBLE is * passed, the IGNORED action is reversed. * @return Returns a reference to this object so that method calls can be chained together. * @see Visibility */ public UpdateProblemRequest withVisibility(String visibility) { setVisibility(visibility); return this; } /** *

* The visibility of a problem. When you pass a value of IGNORED, the problem is removed from the * default view, and all notifications for the problem are suspended. When VISIBLE is passed, the * IGNORED action is reversed. *

* * @param visibility * The visibility of a problem. When you pass a value of IGNORED, the problem is removed from * the default view, and all notifications for the problem are suspended. When VISIBLE is * passed, the IGNORED action is reversed. * @return Returns a reference to this object so that method calls can be chained together. * @see Visibility */ public UpdateProblemRequest withVisibility(Visibility visibility) { this.visibility = visibility.toString(); 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 (getProblemId() != null) sb.append("ProblemId: ").append(getProblemId()).append(","); if (getUpdateStatus() != null) sb.append("UpdateStatus: ").append(getUpdateStatus()).append(","); if (getVisibility() != null) sb.append("Visibility: ").append(getVisibility()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateProblemRequest == false) return false; UpdateProblemRequest other = (UpdateProblemRequest) obj; if (other.getProblemId() == null ^ this.getProblemId() == null) return false; if (other.getProblemId() != null && other.getProblemId().equals(this.getProblemId()) == false) return false; if (other.getUpdateStatus() == null ^ this.getUpdateStatus() == null) return false; if (other.getUpdateStatus() != null && other.getUpdateStatus().equals(this.getUpdateStatus()) == false) return false; if (other.getVisibility() == null ^ this.getVisibility() == null) return false; if (other.getVisibility() != null && other.getVisibility().equals(this.getVisibility()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProblemId() == null) ? 0 : getProblemId().hashCode()); hashCode = prime * hashCode + ((getUpdateStatus() == null) ? 0 : getUpdateStatus().hashCode()); hashCode = prime * hashCode + ((getVisibility() == null) ? 0 : getVisibility().hashCode()); return hashCode; } @Override public UpdateProblemRequest clone() { return (UpdateProblemRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy