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

com.newrelic.agent.security.intcodeagent.models.IASTDataTransferRequest Maven / Gradle / Ivy

Go to download

The New Relic Security Java agent module for full-stack security. To be used in newrelic-java-agent only.

The newest version!
package com.newrelic.agent.security.intcodeagent.models;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.newrelic.agent.security.intcodeagent.websocket.JsonConverter;
import org.apache.commons.lang3.StringUtils;

import java.util.Map;
import java.util.Set;

@JsonIgnoreProperties(ignoreUnknown = true)
public class IASTDataTransferRequest {
    private String jsonName = "iast-data-request";
    private String applicationUUID;
    private String appAccountId;
    private String appEntityGuid;

    private int batchSize;

    private Set pendingRequestIds;

    private Map> completedRequests;

    private String sequenceNumber;

    public IASTDataTransferRequest() {}
    public IASTDataTransferRequest(String applicationUUID) {
        this.applicationUUID = applicationUUID;
    }

    public String getApplicationUUID() {
        return applicationUUID;
    }

    public void setApplicationUUID(String applicationUUID) {
        this.applicationUUID = applicationUUID;
    }

    public int getBatchSize() {
        return batchSize;
    }

    public void setBatchSize(int batchSize) {
        this.batchSize = batchSize;
    }

    public Map> getCompletedRequests() {
        return completedRequests;
    }

    public void setCompletedRequests(Map> completedRequests) {
        this.completedRequests = completedRequests;
    }

    public Set getPendingRequestIds() {
        return pendingRequestIds;
    }

    public void setPendingRequestIds(Set pendingRequestIds) {
        this.pendingRequestIds = pendingRequestIds;
    }

    public String getJsonName() {
        return jsonName;
    }

    public void setJsonName(String jsonName) {
        this.jsonName = jsonName;
    }

    public String getAppAccountId() {
        return appAccountId;
    }

    public void setAppAccountId(String appAccountId) {
        this.appAccountId = appAccountId;
    }

    public String getAppEntityGuid() {
        return appEntityGuid;
    }

    public void setAppEntityGuid(String appEntityGuid) {
        this.appEntityGuid = appEntityGuid;
    }

    @Override
    public String toString() {
        try {
            return JsonConverter.getObjectMapper().writeValueAsString(this);
        } catch (Exception e) {
            return StringUtils.EMPTY;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy