com.seeq.model.AssetGroupInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.AssetGroupAssetInputV1;
import com.seeq.model.AssetGroupRootInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* AssetGroupInputV1
*/
public class AssetGroupInputV1 {
@JsonProperty("childAssets")
private List childAssets = new ArrayList();
@JsonProperty("rootAsset")
private AssetGroupRootInputV1 rootAsset = null;
public AssetGroupInputV1 childAssets(List childAssets) {
this.childAssets = childAssets;
return this;
}
public AssetGroupInputV1 addChildAssetsItem(AssetGroupAssetInputV1 childAssetsItem) {
if (this.childAssets == null) {
this.childAssets = new ArrayList();
}
this.childAssets.add(childAssetsItem);
return this;
}
/**
* List of children for the asset tree
* @return childAssets
**/
@Schema(description = "List of children for the asset tree")
public List getChildAssets() {
return childAssets;
}
public void setChildAssets(List childAssets) {
this.childAssets = childAssets;
}
public AssetGroupInputV1 rootAsset(AssetGroupRootInputV1 rootAsset) {
this.rootAsset = rootAsset;
return this;
}
/**
* Get rootAsset
* @return rootAsset
**/
@Schema(description = "")
public AssetGroupRootInputV1 getRootAsset() {
return rootAsset;
}
public void setRootAsset(AssetGroupRootInputV1 rootAsset) {
this.rootAsset = rootAsset;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AssetGroupInputV1 assetGroupInputV1 = (AssetGroupInputV1) o;
return Objects.equals(this.childAssets, assetGroupInputV1.childAssets) &&
Objects.equals(this.rootAsset, assetGroupInputV1.rootAsset);
}
@Override
public int hashCode() {
return Objects.hash(childAssets, rootAsset);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AssetGroupInputV1 {\n");
sb.append(" childAssets: ").append(toIndentedString(childAssets)).append("\n");
sb.append(" rootAsset: ").append(toIndentedString(rootAsset)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}