Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 63.1.6-v202409101657
*
*
* 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.IdentityMappingListV1;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* The user groups to create or update
*/
@Schema(description = "The user groups to create or update")
public class UserGroupWithIdInputV1 {
@JsonProperty("dataId")
private String dataId = null;
@JsonProperty("datasourceClass")
private String datasourceClass = null;
@JsonProperty("datasourceId")
private String datasourceId = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("isEnabled")
private Boolean isEnabled = true;
@JsonProperty("mapping")
private Boolean mapping = false;
@JsonProperty("mappings")
private IdentityMappingListV1 mappings = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("remoteGroupEditable")
private Boolean remoteGroupEditable = false;
@JsonProperty("removePermissions")
private Boolean removePermissions = false;
@JsonProperty("syncToken")
private String syncToken = null;
public UserGroupWithIdInputV1 dataId(String dataId) {
this.dataId = dataId;
return this;
}
/**
* A unique identifier for the user group within its datasource.
* @return dataId
**/
@Schema(description = "A unique identifier for the user group within its datasource.")
public String getDataId() {
return dataId;
}
public void setDataId(String dataId) {
this.dataId = dataId;
}
public UserGroupWithIdInputV1 datasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
return this;
}
/**
* Along with the Datasource ID, the Datasource Class uniquely identifies a datasource. For example, a datasource may be a particular instance of an Active Directory.
* @return datasourceClass
**/
@Schema(description = "Along with the Datasource ID, the Datasource Class uniquely identifies a datasource. For example, a datasource may be a particular instance of an Active Directory.")
public String getDatasourceClass() {
return datasourceClass;
}
public void setDatasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
}
public UserGroupWithIdInputV1 datasourceId(String datasourceId) {
this.datasourceId = datasourceId;
return this;
}
/**
* Along with the Datasource Class, the Datasource ID uniquely identifies a datasource. For example, a datasource may be a particular instance of an Active Directory.
* @return datasourceId
**/
@Schema(description = "Along with the Datasource Class, the Datasource ID uniquely identifies a datasource. For example, a datasource may be a particular instance of an Active Directory.")
public String getDatasourceId() {
return datasourceId;
}
public void setDatasourceId(String datasourceId) {
this.datasourceId = datasourceId;
}
public UserGroupWithIdInputV1 description(String description) {
this.description = description;
return this;
}
/**
* Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.
* @return description
**/
@Schema(description = "Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public UserGroupWithIdInputV1 isEnabled(Boolean isEnabled) {
this.isEnabled = isEnabled;
return this;
}
/**
* Whether the user group is enabled or disabled (default true).
* @return isEnabled
**/
@Schema(description = "Whether the user group is enabled or disabled (default true).")
public Boolean getIsEnabled() {
return isEnabled;
}
public void setIsEnabled(Boolean isEnabled) {
this.isEnabled = isEnabled;
}
public UserGroupWithIdInputV1 mapping(Boolean mapping) {
this.mapping = mapping;
return this;
}
/**
* Whether the user group is a mapping (default false).
* @return mapping
**/
@Schema(description = "Whether the user group is a mapping (default false).")
public Boolean getMapping() {
return mapping;
}
public void setMapping(Boolean mapping) {
this.mapping = mapping;
}
public UserGroupWithIdInputV1 mappings(IdentityMappingListV1 mappings) {
this.mappings = mappings;
return this;
}
/**
* Get mappings
* @return mappings
**/
@Schema(description = "")
public IdentityMappingListV1 getMappings() {
return mappings;
}
public void setMappings(IdentityMappingListV1 mappings) {
this.mappings = mappings;
}
public UserGroupWithIdInputV1 name(String name) {
this.name = name;
return this;
}
/**
* Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.
* @return name
**/
@Schema(required = true, description = "Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public UserGroupWithIdInputV1 remoteGroupEditable(Boolean remoteGroupEditable) {
this.remoteGroupEditable = remoteGroupEditable;
return this;
}
/**
* Whether the user group remains editable in Seeq even when sourced from a remote system.
* @return remoteGroupEditable
**/
@Schema(description = "Whether the user group remains editable in Seeq even when sourced from a remote system.")
public Boolean getRemoteGroupEditable() {
return remoteGroupEditable;
}
public void setRemoteGroupEditable(Boolean remoteGroupEditable) {
this.remoteGroupEditable = remoteGroupEditable;
}
public UserGroupWithIdInputV1 removePermissions(Boolean removePermissions) {
this.removePermissions = removePermissions;
return this;
}
/**
* Whether permissions associated with the group should be removed when disabling the group (default false).
* @return removePermissions
**/
@Schema(description = "Whether permissions associated with the group should be removed when disabling the group (default false).")
public Boolean getRemovePermissions() {
return removePermissions;
}
public void setRemovePermissions(Boolean removePermissions) {
this.removePermissions = removePermissions;
}
public UserGroupWithIdInputV1 syncToken(String syncToken) {
this.syncToken = syncToken;
return this;
}
/**
* An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and may be archived using the Datasources clean-up API.
* @return syncToken
**/
@Schema(description = "An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and may be archived using the Datasources clean-up API.")
public String getSyncToken() {
return syncToken;
}
public void setSyncToken(String syncToken) {
this.syncToken = syncToken;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserGroupWithIdInputV1 userGroupWithIdInputV1 = (UserGroupWithIdInputV1) o;
return Objects.equals(this.dataId, userGroupWithIdInputV1.dataId) &&
Objects.equals(this.datasourceClass, userGroupWithIdInputV1.datasourceClass) &&
Objects.equals(this.datasourceId, userGroupWithIdInputV1.datasourceId) &&
Objects.equals(this.description, userGroupWithIdInputV1.description) &&
Objects.equals(this.isEnabled, userGroupWithIdInputV1.isEnabled) &&
Objects.equals(this.mapping, userGroupWithIdInputV1.mapping) &&
Objects.equals(this.mappings, userGroupWithIdInputV1.mappings) &&
Objects.equals(this.name, userGroupWithIdInputV1.name) &&
Objects.equals(this.remoteGroupEditable, userGroupWithIdInputV1.remoteGroupEditable) &&
Objects.equals(this.removePermissions, userGroupWithIdInputV1.removePermissions) &&
Objects.equals(this.syncToken, userGroupWithIdInputV1.syncToken);
}
@Override
public int hashCode() {
return Objects.hash(dataId, datasourceClass, datasourceId, description, isEnabled, mapping, mappings, name, remoteGroupEditable, removePermissions, syncToken);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserGroupWithIdInputV1 {\n");
sb.append(" dataId: ").append(toIndentedString(dataId)).append("\n");
sb.append(" datasourceClass: ").append(toIndentedString(datasourceClass)).append("\n");
sb.append(" datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
sb.append(" mapping: ").append(toIndentedString(mapping)).append("\n");
sb.append(" mappings: ").append(toIndentedString(mappings)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" remoteGroupEditable: ").append(toIndentedString(remoteGroupEditable)).append("\n");
sb.append(" removePermissions: ").append(toIndentedString(removePermissions)).append("\n");
sb.append(" syncToken: ").append(toIndentedString(syncToken)).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 ");
}
}