001package com.box.sdkgen.schemas.v2026r0.automateworkflowstartrequestv2026r0; 002 003import com.box.sdkgen.internal.SerializableObject; 004import com.fasterxml.jackson.annotation.JsonFilter; 005import com.fasterxml.jackson.annotation.JsonProperty; 006import java.util.List; 007import java.util.Objects; 008 009/** Request body to start an Automate workflow. */ 010@JsonFilter("nullablePropertyFilter") 011public class AutomateWorkflowStartRequestV2026R0 extends SerializableObject { 012 013 /** The callable action ID used to trigger the selected workflow. */ 014 @JsonProperty("workflow_action_id") 015 protected final String workflowActionId; 016 017 /** The files to process with the selected workflow. */ 018 @JsonProperty("file_ids") 019 protected final List<String> fileIds; 020 021 public AutomateWorkflowStartRequestV2026R0( 022 @JsonProperty("workflow_action_id") String workflowActionId, 023 @JsonProperty("file_ids") List<String> fileIds) { 024 super(); 025 this.workflowActionId = workflowActionId; 026 this.fileIds = fileIds; 027 } 028 029 public String getWorkflowActionId() { 030 return workflowActionId; 031 } 032 033 public List<String> getFileIds() { 034 return fileIds; 035 } 036 037 @Override 038 public boolean equals(Object o) { 039 if (this == o) { 040 return true; 041 } 042 if (o == null || getClass() != o.getClass()) { 043 return false; 044 } 045 AutomateWorkflowStartRequestV2026R0 casted = (AutomateWorkflowStartRequestV2026R0) o; 046 return Objects.equals(workflowActionId, casted.workflowActionId) 047 && Objects.equals(fileIds, casted.fileIds); 048 } 049 050 @Override 051 public int hashCode() { 052 return Objects.hash(workflowActionId, fileIds); 053 } 054 055 @Override 056 public String toString() { 057 return "AutomateWorkflowStartRequestV2026R0{" 058 + "workflowActionId='" 059 + workflowActionId 060 + '\'' 061 + ", " 062 + "fileIds='" 063 + fileIds 064 + '\'' 065 + "}"; 066 } 067}