net.leanix.mtm.api.models.Instance Maven / Gradle / Ivy
package net.leanix.mtm.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import net.leanix.mtm.api.models.Account;
import net.leanix.mtm.api.models.Application;
import net.leanix.mtm.api.models.Link;
public class Instance {
private String id = null;
private String name = null;
private String url = null;
public enum IdentityManagementEnum {
FULLY_EXTERNAL("FULLY_EXTERNAL"),
MTM_BASED_ROLES("MTM_BASED_ROLES"),
FULLY_MTM_BASED("FULLY_MTM_BASED");
private String value;
IdentityManagementEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return value;
}
}
private IdentityManagementEnum identityManagement = null;
private Boolean isDefault = false;
private Boolean isPrimary = false;
private String entityId = null;
private Application application = null;
private String resourceServerKey = null;
private String description = null;
private List scopes = new ArrayList();
private String resourceServerSecret = null;
private Account account = null;
private List links = new ArrayList();
private Boolean thirdParty = false;
/**
**/
public Instance id(String id) {
this.id = id;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
**/
public Instance name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
**/
public Instance url(String url) {
this.url = url;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("url")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
/**
**/
public Instance identityManagement(IdentityManagementEnum identityManagement) {
this.identityManagement = identityManagement;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("identityManagement")
public IdentityManagementEnum getIdentityManagement() {
return identityManagement;
}
public void setIdentityManagement(IdentityManagementEnum identityManagement) {
this.identityManagement = identityManagement;
}
/**
**/
public Instance isDefault(Boolean isDefault) {
this.isDefault = isDefault;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("isDefault")
public Boolean getIsDefault() {
return isDefault;
}
public void setIsDefault(Boolean isDefault) {
this.isDefault = isDefault;
}
/**
**/
public Instance isPrimary(Boolean isPrimary) {
this.isPrimary = isPrimary;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("isPrimary")
public Boolean getIsPrimary() {
return isPrimary;
}
public void setIsPrimary(Boolean isPrimary) {
this.isPrimary = isPrimary;
}
/**
**/
public Instance entityId(String entityId) {
this.entityId = entityId;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("entityId")
public String getEntityId() {
return entityId;
}
public void setEntityId(String entityId) {
this.entityId = entityId;
}
/**
**/
public Instance application(Application application) {
this.application = application;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("application")
public Application getApplication() {
return application;
}
public void setApplication(Application application) {
this.application = application;
}
/**
**/
public Instance resourceServerKey(String resourceServerKey) {
this.resourceServerKey = resourceServerKey;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("resourceServerKey")
public String getResourceServerKey() {
return resourceServerKey;
}
public void setResourceServerKey(String resourceServerKey) {
this.resourceServerKey = resourceServerKey;
}
/**
**/
public Instance description(String description) {
this.description = description;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
/**
**/
public Instance scopes(List scopes) {
this.scopes = scopes;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("scopes")
public List getScopes() {
return scopes;
}
public void setScopes(List scopes) {
this.scopes = scopes;
}
/**
**/
public Instance resourceServerSecret(String resourceServerSecret) {
this.resourceServerSecret = resourceServerSecret;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("resourceServerSecret")
public String getResourceServerSecret() {
return resourceServerSecret;
}
public void setResourceServerSecret(String resourceServerSecret) {
this.resourceServerSecret = resourceServerSecret;
}
/**
**/
public Instance account(Account account) {
this.account = account;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("account")
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
/**
**/
public Instance links(List links) {
this.links = links;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("links")
public List getLinks() {
return links;
}
public void setLinks(List links) {
this.links = links;
}
/**
**/
public Instance thirdParty(Boolean thirdParty) {
this.thirdParty = thirdParty;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("thirdParty")
public Boolean getThirdParty() {
return thirdParty;
}
public void setThirdParty(Boolean thirdParty) {
this.thirdParty = thirdParty;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Instance instance = (Instance) o;
return Objects.equals(this.id, instance.id) &&
Objects.equals(this.name, instance.name) &&
Objects.equals(this.url, instance.url) &&
Objects.equals(this.identityManagement, instance.identityManagement) &&
Objects.equals(this.isDefault, instance.isDefault) &&
Objects.equals(this.isPrimary, instance.isPrimary) &&
Objects.equals(this.entityId, instance.entityId) &&
Objects.equals(this.application, instance.application) &&
Objects.equals(this.resourceServerKey, instance.resourceServerKey) &&
Objects.equals(this.description, instance.description) &&
Objects.equals(this.scopes, instance.scopes) &&
Objects.equals(this.resourceServerSecret, instance.resourceServerSecret) &&
Objects.equals(this.account, instance.account) &&
Objects.equals(this.links, instance.links) &&
Objects.equals(this.thirdParty, instance.thirdParty);
}
@Override
public int hashCode() {
return Objects.hash(id, name, url, identityManagement, isDefault, isPrimary, entityId, application, resourceServerKey, description, scopes, resourceServerSecret, account, links, thirdParty);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Instance {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" identityManagement: ").append(toIndentedString(identityManagement)).append("\n");
sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n");
sb.append(" isPrimary: ").append(toIndentedString(isPrimary)).append("\n");
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
sb.append(" application: ").append(toIndentedString(application)).append("\n");
sb.append(" resourceServerKey: ").append(toIndentedString(resourceServerKey)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n");
sb.append(" resourceServerSecret: ").append(toIndentedString(resourceServerSecret)).append("\n");
sb.append(" account: ").append(toIndentedString(account)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append(" thirdParty: ").append(toIndentedString(thirdParty)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy