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

com.ifountain.opsgenie.client.model.alert.RemoveDetailsRequest Maven / Gradle / Ivy

package com.ifountain.opsgenie.client.model.alert;

import com.ifountain.opsgenie.client.util.Strings;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Container for the parameters to remove details from alert api call.
 *
 * @author Sezgin Kucukkaraaslan
 * @see com.ifountain.opsgenie.client.IAlertOpsGenieClient#removeDetails(RemoveDetailsRequest)
 * @deprecated As of release 2.8.0, replaced by {@link com.ifountain.opsgenie.client.swagger.model.DeleteAlertDetailsRequest}
 */
@Deprecated
public class RemoveDetailsRequest extends BaseAlertRequestWithParameters {

    private List keys;

    /**
     * Keys to be deleted in String mode
     */
    @JsonProperty("keys")
    public String getKeysString() {
        if (getKeys() != null)
            return Strings.join(getKeys(), ",");
        return null;
    }

    public List getKeys() {
        return keys;
    }

    public void setKeys(List keys) {
        this.keys = keys;
    }

    public RemoveDetailsRequest withKeys(List keys) {
        this.keys = keys;
        return this;
    }

    @Override
    public String getEndPoint() {
        return "/v1/json/alert/details";
    }

    @Override
    public RemoveDetailsResponse createResponse() {
        return new RemoveDetailsResponse();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy