com.seeq.model.PutUserGroupsInputV1 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.UserGroupWithIdInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* PutUserGroupsInputV1
*/
public class PutUserGroupsInputV1 {
@JsonProperty("userGroups")
private List userGroups = new ArrayList();
public PutUserGroupsInputV1 userGroups(List userGroups) {
this.userGroups = userGroups;
return this;
}
public PutUserGroupsInputV1 addUserGroupsItem(UserGroupWithIdInputV1 userGroupsItem) {
this.userGroups.add(userGroupsItem);
return this;
}
/**
* The user groups to create or update
* @return userGroups
**/
@Schema(required = true, description = "The user groups to create or update")
public List getUserGroups() {
return userGroups;
}
public void setUserGroups(List userGroups) {
this.userGroups = userGroups;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PutUserGroupsInputV1 putUserGroupsInputV1 = (PutUserGroupsInputV1) o;
return Objects.equals(this.userGroups, putUserGroupsInputV1.userGroups);
}
@Override
public int hashCode() {
return Objects.hash(userGroups);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PutUserGroupsInputV1 {\n");
sb.append(" userGroups: ").append(toIndentedString(userGroups)).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 ");
}
}