
localhost.models.ApiRestV2GroupAdduserRequest Maven / Gradle / Ivy
/*
* RESTAPISDKLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package localhost.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import java.util.List;
/**
* This is a model class for ApiRestV2GroupAdduserRequest type.
*/
public class ApiRestV2GroupAdduserRequest {
private String name;
private String id;
private List users;
/**
* Default constructor.
*/
public ApiRestV2GroupAdduserRequest() {
}
/**
* Initialization constructor.
* @param name String value for name.
* @param id String value for id.
* @param users List of UserNameAndIDInput value for users.
*/
public ApiRestV2GroupAdduserRequest(
String name,
String id,
List users) {
this.name = name;
this.id = id;
this.users = users;
}
/**
* Getter for Name.
* Name of the group
* @return Returns the String
*/
@JsonGetter("name")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getName() {
return name;
}
/**
* Setter for Name.
* Name of the group
* @param name Value for String
*/
@JsonSetter("name")
public void setName(String name) {
this.name = name;
}
/**
* Getter for Id.
* The GUID of the group
* @return Returns the String
*/
@JsonGetter("id")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getId() {
return id;
}
/**
* Setter for Id.
* The GUID of the group
* @param id Value for String
*/
@JsonSetter("id")
public void setId(String id) {
this.id = id;
}
/**
* Getter for Users.
* A JSON array of name of users or GUIDs of users or both. When both are given then id is
* considered
* @return Returns the List of UserNameAndIDInput
*/
@JsonGetter("users")
@JsonInclude(JsonInclude.Include.NON_NULL)
public List getUsers() {
return users;
}
/**
* Setter for Users.
* A JSON array of name of users or GUIDs of users or both. When both are given then id is
* considered
* @param users Value for List of UserNameAndIDInput
*/
@JsonSetter("users")
public void setUsers(List users) {
this.users = users;
}
/**
* Converts this ApiRestV2GroupAdduserRequest into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "ApiRestV2GroupAdduserRequest [" + "name=" + name + ", id=" + id + ", users=" + users
+ "]";
}
/**
* Builds a new {@link ApiRestV2GroupAdduserRequest.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link ApiRestV2GroupAdduserRequest.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.name(getName())
.id(getId())
.users(getUsers());
return builder;
}
/**
* Class to build instances of {@link ApiRestV2GroupAdduserRequest}.
*/
public static class Builder {
private String name;
private String id;
private List users;
/**
* Setter for name.
* @param name String value for name.
* @return Builder
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* Setter for id.
* @param id String value for id.
* @return Builder
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* Setter for users.
* @param users List of UserNameAndIDInput value for users.
* @return Builder
*/
public Builder users(List users) {
this.users = users;
return this;
}
/**
* Builds a new {@link ApiRestV2GroupAdduserRequest} object using the set fields.
* @return {@link ApiRestV2GroupAdduserRequest}
*/
public ApiRestV2GroupAdduserRequest build() {
return new ApiRestV2GroupAdduserRequest(name, id, users);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy