-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Subhobrata Dey <[email protected]> (cherry picked from commit 0dd9787)
- Loading branch information
1 parent
c605fa0
commit 3f01502
Showing
12 changed files
with
534 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
.../java/org/opensearch/securityanalytics/threatIntel/action/ThreatIntelIndicesResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
package org.opensearch.securityanalytics.threatIntel.action; | ||
|
||
import org.opensearch.core.action.ActionResponse; | ||
import org.opensearch.core.common.io.stream.StreamInput; | ||
import org.opensearch.core.common.io.stream.StreamOutput; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
public class ThreatIntelIndicesResponse extends ActionResponse { | ||
|
||
private Boolean isAcknowledged; | ||
|
||
private List<String> indices; | ||
|
||
public ThreatIntelIndicesResponse(Boolean isAcknowledged, List<String> indices) { | ||
super(); | ||
this.isAcknowledged = isAcknowledged; | ||
this.indices = indices; | ||
} | ||
|
||
public ThreatIntelIndicesResponse(StreamInput sin) throws IOException { | ||
this(sin.readBoolean(), sin.readStringList()); | ||
} | ||
|
||
@Override | ||
public void writeTo(StreamOutput out) throws IOException { | ||
out.writeBoolean(isAcknowledged); | ||
out.writeStringCollection(indices); | ||
} | ||
|
||
public Boolean isAcknowledged() { | ||
return isAcknowledged; | ||
} | ||
|
||
public List<String> getIndices() { | ||
return indices; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.