Skip to content

Commit

Permalink
fix: Fix invalid variant config for Integration mapping Slack (box/bo…
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build authored Jan 15, 2025
1 parent 5480eb0 commit c86142b
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "ab51050", "specHash": "4ccce13", "version": "0.3.0" }
{ "engineHash": "ab51050", "specHash": "00c93fe", "version": "0.3.0" }
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@

public class IntegrationMapping extends IntegrationMappingBase {

@JsonProperty("box_item")
protected final FolderMini boxItem;

@JsonProperty("created_at")
protected String createdAt;

@JsonProperty("modified_at")
protected String modifiedAt;

@JsonDeserialize(
using =
IntegrationMappingIntegrationTypeField.IntegrationMappingIntegrationTypeFieldDeserializer
Expand All @@ -39,35 +48,38 @@ public class IntegrationMapping extends IntegrationMappingBase {
@JsonProperty("partner_item")
protected final IntegrationMappingPartnerItemSlackUnion partnerItem;

@JsonProperty("box_item")
protected final FolderMini boxItem;

@JsonProperty("created_at")
protected String createdAt;

@JsonProperty("modified_at")
protected String modifiedAt;

public IntegrationMapping(
@JsonProperty("id") String id,
@JsonProperty("partner_item") IntegrationMappingPartnerItemSlackUnion partnerItem,
@JsonProperty("box_item") FolderMini boxItem) {
@JsonProperty("box_item") FolderMini boxItem,
@JsonProperty("partner_item") IntegrationMappingPartnerItemSlackUnion partnerItem) {
super(id);
this.partnerItem = partnerItem;
this.boxItem = boxItem;
this.partnerItem = partnerItem;
}

protected IntegrationMapping(IntegrationMappingBuilder builder) {
super(builder);
this.boxItem = builder.boxItem;
this.createdAt = builder.createdAt;
this.modifiedAt = builder.modifiedAt;
this.integrationType = builder.integrationType;
this.isManuallyCreated = builder.isManuallyCreated;
this.options = builder.options;
this.createdBy = builder.createdBy;
this.modifiedBy = builder.modifiedBy;
this.partnerItem = builder.partnerItem;
this.boxItem = builder.boxItem;
this.createdAt = builder.createdAt;
this.modifiedAt = builder.modifiedAt;
}

public FolderMini getBoxItem() {
return boxItem;
}

public String getCreatedAt() {
return createdAt;
}

public String getModifiedAt() {
return modifiedAt;
}

public EnumWrapper<IntegrationMappingIntegrationTypeField> getIntegrationType() {
Expand All @@ -94,18 +106,6 @@ public IntegrationMappingPartnerItemSlackUnion getPartnerItem() {
return partnerItem;
}

public FolderMini getBoxItem() {
return boxItem;
}

public String getCreatedAt() {
return createdAt;
}

public String getModifiedAt() {
return modifiedAt;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -117,31 +117,31 @@ public boolean equals(Object o) {
IntegrationMapping casted = (IntegrationMapping) o;
return Objects.equals(id, casted.id)
&& Objects.equals(type, casted.type)
&& Objects.equals(boxItem, casted.boxItem)
&& Objects.equals(createdAt, casted.createdAt)
&& Objects.equals(modifiedAt, casted.modifiedAt)
&& Objects.equals(integrationType, casted.integrationType)
&& Objects.equals(isManuallyCreated, casted.isManuallyCreated)
&& Objects.equals(options, casted.options)
&& Objects.equals(createdBy, casted.createdBy)
&& Objects.equals(modifiedBy, casted.modifiedBy)
&& Objects.equals(partnerItem, casted.partnerItem)
&& Objects.equals(boxItem, casted.boxItem)
&& Objects.equals(createdAt, casted.createdAt)
&& Objects.equals(modifiedAt, casted.modifiedAt);
&& Objects.equals(partnerItem, casted.partnerItem);
}

@Override
public int hashCode() {
return Objects.hash(
id,
type,
boxItem,
createdAt,
modifiedAt,
integrationType,
isManuallyCreated,
options,
createdBy,
modifiedBy,
partnerItem,
boxItem,
createdAt,
modifiedAt);
partnerItem);
}

@Override
Expand All @@ -155,6 +155,18 @@ public String toString() {
+ type
+ '\''
+ ", "
+ "boxItem='"
+ boxItem
+ '\''
+ ", "
+ "createdAt='"
+ createdAt
+ '\''
+ ", "
+ "modifiedAt='"
+ modifiedAt
+ '\''
+ ", "
+ "integrationType='"
+ integrationType
+ '\''
Expand All @@ -178,23 +190,17 @@ public String toString() {
+ "partnerItem='"
+ partnerItem
+ '\''
+ ", "
+ "boxItem='"
+ boxItem
+ '\''
+ ", "
+ "createdAt='"
+ createdAt
+ '\''
+ ", "
+ "modifiedAt='"
+ modifiedAt
+ '\''
+ "}";
}

public static class IntegrationMappingBuilder extends IntegrationMappingBaseBuilder {

protected final FolderMini boxItem;

protected String createdAt;

protected String modifiedAt;

protected EnumWrapper<IntegrationMappingIntegrationTypeField> integrationType;

protected Boolean isManuallyCreated;
Expand All @@ -207,17 +213,21 @@ public static class IntegrationMappingBuilder extends IntegrationMappingBaseBuil

protected final IntegrationMappingPartnerItemSlackUnion partnerItem;

protected final FolderMini boxItem;

protected String createdAt;

protected String modifiedAt;

public IntegrationMappingBuilder(
String id, IntegrationMappingPartnerItemSlackUnion partnerItem, FolderMini boxItem) {
String id, FolderMini boxItem, IntegrationMappingPartnerItemSlackUnion partnerItem) {
super(id);
this.partnerItem = partnerItem;
this.boxItem = boxItem;
this.partnerItem = partnerItem;
}

public IntegrationMappingBuilder createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}

public IntegrationMappingBuilder modifiedAt(String modifiedAt) {
this.modifiedAt = modifiedAt;
return this;
}

public IntegrationMappingBuilder integrationType(
Expand Down Expand Up @@ -254,16 +264,6 @@ public IntegrationMappingBuilder modifiedBy(UserIntegrationMappings modifiedBy)
return this;
}

public IntegrationMappingBuilder createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}

public IntegrationMappingBuilder modifiedAt(String modifiedAt) {
this.modifiedAt = modifiedAt;
return this;
}

@Override
public IntegrationMappingBuilder type(EnumWrapper<IntegrationMappingBaseTypeField> type) {
this.type = type;
Expand Down

0 comments on commit c86142b

Please sign in to comment.