001package com.box.sdkgen.managers.workflows; 002 003import com.box.sdkgen.internal.NullableFieldTracker; 004import com.box.sdkgen.internal.SerializableObject; 005import com.fasterxml.jackson.annotation.JsonFilter; 006import java.util.Objects; 007 008@JsonFilter("nullablePropertyFilter") 009public class StartWorkflowRequestBodyFlowField extends SerializableObject { 010 011 /** The type of the flow object. */ 012 protected String type; 013 014 /** The id of the flow. */ 015 protected String id; 016 017 public StartWorkflowRequestBodyFlowField() { 018 super(); 019 } 020 021 protected StartWorkflowRequestBodyFlowField(Builder builder) { 022 super(); 023 this.type = builder.type; 024 this.id = builder.id; 025 markNullableFieldsAsSet(builder.getExplicitlySetNullableFields()); 026 } 027 028 public String getType() { 029 return type; 030 } 031 032 public String getId() { 033 return id; 034 } 035 036 @Override 037 public boolean equals(Object o) { 038 if (this == o) { 039 return true; 040 } 041 if (o == null || getClass() != o.getClass()) { 042 return false; 043 } 044 StartWorkflowRequestBodyFlowField casted = (StartWorkflowRequestBodyFlowField) o; 045 return Objects.equals(type, casted.type) && Objects.equals(id, casted.id); 046 } 047 048 @Override 049 public int hashCode() { 050 return Objects.hash(type, id); 051 } 052 053 @Override 054 public String toString() { 055 return "StartWorkflowRequestBodyFlowField{" 056 + "type='" 057 + type 058 + '\'' 059 + ", " 060 + "id='" 061 + id 062 + '\'' 063 + "}"; 064 } 065 066 public static class Builder extends NullableFieldTracker { 067 068 protected String type; 069 070 protected String id; 071 072 public Builder type(String type) { 073 this.type = type; 074 return this; 075 } 076 077 public Builder id(String id) { 078 this.id = id; 079 return this; 080 } 081 082 public StartWorkflowRequestBodyFlowField build() { 083 return new StartWorkflowRequestBodyFlowField(this); 084 } 085 } 086}