|
| 1 | +/* |
| 2 | + * Copyright 2020 IBM Corp. All Rights Reserved. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | +package com.ibm.watson.data.client.model; |
| 17 | + |
| 18 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 19 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 20 | +import com.fasterxml.jackson.databind.JsonDeserializer; |
| 21 | +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 22 | + |
| 23 | +import java.util.List; |
| 24 | +import java.util.Objects; |
| 25 | + |
| 26 | +/** |
| 27 | + * AssetSearchResultEntity |
| 28 | + */ |
| 29 | +@JsonDeserialize(using = JsonDeserializer.None.class) |
| 30 | +public class AssetSearchResultEntity extends AbstractSearchResultEntity { |
| 31 | + |
| 32 | + private String catalogId; |
| 33 | + private List<String> connectionPaths; |
| 34 | + private String resourceKey; |
| 35 | + private List<String> columnTerms; |
| 36 | + private List<String> columnDataClassNames; |
| 37 | + private List<String> columnTermsGlobalIds; |
| 38 | + private List<String> columnNames; |
| 39 | + private List<String> columnTags; |
| 40 | + private List<String> connectionIds; |
| 41 | + |
| 42 | + @javax.annotation.Nullable |
| 43 | + @JsonProperty("catalog_id") |
| 44 | + @JsonInclude(value = JsonInclude.Include.NON_NULL) |
| 45 | + public String getCatalogId() { return catalogId; } |
| 46 | + public void setCatalogId(String catalogId) { this.catalogId = catalogId; } |
| 47 | + |
| 48 | + @javax.annotation.Nullable |
| 49 | + @JsonProperty("connection_paths") |
| 50 | + @JsonInclude(value = JsonInclude.Include.NON_NULL) |
| 51 | + public List<String> getConnectionPaths() { return connectionPaths; } |
| 52 | + public void setConnectionPaths(List<String> connectionPaths) { this.connectionPaths = connectionPaths; } |
| 53 | + |
| 54 | + @javax.annotation.Nullable |
| 55 | + @JsonProperty("resource_key") |
| 56 | + @JsonInclude(value = JsonInclude.Include.NON_NULL) |
| 57 | + public String getResourceKey() { return resourceKey; } |
| 58 | + public void setResourceKey(String resourceKey) { this.resourceKey = resourceKey; } |
| 59 | + |
| 60 | + @javax.annotation.Nullable |
| 61 | + @JsonProperty("column_terms") |
| 62 | + @JsonInclude(value = JsonInclude.Include.NON_NULL) |
| 63 | + public List<String> getColumnTerms() { return columnTerms; } |
| 64 | + public void setColumnTerms(List<String> columnTerms) { this.columnTerms = columnTerms; } |
| 65 | + |
| 66 | + @javax.annotation.Nullable |
| 67 | + @JsonProperty("column_data_class_names") |
| 68 | + @JsonInclude(value = JsonInclude.Include.NON_NULL) |
| 69 | + public List<String> getColumnDataClassNames() { return columnDataClassNames; } |
| 70 | + public void setColumnDataClassNames(List<String> columnDataClassNames) { this.columnDataClassNames = columnDataClassNames; } |
| 71 | + |
| 72 | + @javax.annotation.Nullable |
| 73 | + @JsonProperty("column_terms_global_ids") |
| 74 | + @JsonInclude(value = JsonInclude.Include.NON_NULL) |
| 75 | + public List<String> getColumnTermsGlobalIds() { return columnTermsGlobalIds; } |
| 76 | + public void setColumnTermsGlobalIds(List<String> columnTermsGlobalIds) { this.columnTermsGlobalIds = columnTermsGlobalIds; } |
| 77 | + |
| 78 | + @javax.annotation.Nullable |
| 79 | + @JsonProperty("column_names") |
| 80 | + @JsonInclude(value = JsonInclude.Include.NON_NULL) |
| 81 | + public List<String> getColumnNames() { return columnNames; } |
| 82 | + public void setColumnNames(List<String> columnNames) { this.columnNames = columnNames; } |
| 83 | + |
| 84 | + @javax.annotation.Nullable |
| 85 | + @JsonProperty("column_tags") |
| 86 | + @JsonInclude(value = JsonInclude.Include.NON_NULL) |
| 87 | + public List<String> getColumnTags() { return columnTags; } |
| 88 | + public void setColumnTags(List<String> columnTags) { this.columnTags = columnTags; } |
| 89 | + |
| 90 | + @javax.annotation.Nullable |
| 91 | + @JsonProperty("connection_ids") |
| 92 | + @JsonInclude(value = JsonInclude.Include.NON_NULL) |
| 93 | + public List<String> getConnectionIds() { return connectionIds; } |
| 94 | + public void setConnectionIds(List<String> connectionIds) { this.connectionIds = connectionIds; } |
| 95 | + |
| 96 | + @Override |
| 97 | + public boolean equals(Object o) { |
| 98 | + if (this == o) return true; |
| 99 | + if (o == null || getClass() != o.getClass()) return false; |
| 100 | + AssetSearchResultEntity that = (AssetSearchResultEntity) o; |
| 101 | + return Objects.equals(catalogId, that.catalogId) && |
| 102 | + Objects.equals(connectionPaths, that.connectionPaths) && |
| 103 | + Objects.equals(resourceKey, that.resourceKey) && |
| 104 | + Objects.equals(columnTerms, that.columnTerms) && |
| 105 | + Objects.equals(columnDataClassNames, that.columnDataClassNames) && |
| 106 | + Objects.equals(columnTermsGlobalIds, that.columnTermsGlobalIds) && |
| 107 | + Objects.equals(columnNames, that.columnNames) && |
| 108 | + Objects.equals(columnTags, that.columnTags) && |
| 109 | + Objects.equals(connectionIds, that.connectionIds); |
| 110 | + } |
| 111 | + |
| 112 | + @Override |
| 113 | + public int hashCode() { |
| 114 | + return Objects.hash(catalogId, connectionPaths, resourceKey, columnTerms, |
| 115 | + columnDataClassNames, columnTermsGlobalIds, columnNames, columnTags, |
| 116 | + connectionIds); |
| 117 | + } |
| 118 | + |
| 119 | + @Override |
| 120 | + public String toString() { |
| 121 | + StringBuilder sb = new StringBuilder(); |
| 122 | + sb.append("class AssetSearchResultEntity {\n"); |
| 123 | + sb.append(" catalogId: ").append(toIndentedString(catalogId)).append("\n"); |
| 124 | + sb.append(" connectionPaths: ").append(toIndentedString(connectionPaths)).append("\n"); |
| 125 | + sb.append(" resourceKey: ").append(toIndentedString(resourceKey)).append("\n"); |
| 126 | + sb.append(" columnTerms: ").append(toIndentedString(columnTerms)).append("\n"); |
| 127 | + sb.append(" columnDataClassNames: ").append(toIndentedString(columnDataClassNames)).append("\n"); |
| 128 | + sb.append(" columnTermsGlobalIds: ").append(toIndentedString(columnTermsGlobalIds)).append("\n"); |
| 129 | + sb.append(" columnNames: ").append(toIndentedString(columnNames)).append("\n"); |
| 130 | + sb.append(" columnTags: ").append(toIndentedString(columnTags)).append("\n"); |
| 131 | + sb.append(" connectionIds: ").append(toIndentedString(connectionIds)).append("\n"); |
| 132 | + sb.append("}"); |
| 133 | + return sb.toString(); |
| 134 | + } |
| 135 | + |
| 136 | +} |
0 commit comments