net.leanix.mtm.api.models.Domain Maven / Gradle / Ivy
package net.leanix.mtm.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import net.leanix.mtm.api.models.IdentityProvider;
public class Domain {
private String id = null;
private String fqdn = null;
private IdentityProvider identityProvider = null;
private Boolean exclusiveIdp = false;
/**
**/
public Domain 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 Domain fqdn(String fqdn) {
this.fqdn = fqdn;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("fqdn")
public String getFqdn() {
return fqdn;
}
public void setFqdn(String fqdn) {
this.fqdn = fqdn;
}
/**
**/
public Domain identityProvider(IdentityProvider identityProvider) {
this.identityProvider = identityProvider;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("identityProvider")
public IdentityProvider getIdentityProvider() {
return identityProvider;
}
public void setIdentityProvider(IdentityProvider identityProvider) {
this.identityProvider = identityProvider;
}
/**
**/
public Domain exclusiveIdp(Boolean exclusiveIdp) {
this.exclusiveIdp = exclusiveIdp;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("exclusiveIdp")
public Boolean getExclusiveIdp() {
return exclusiveIdp;
}
public void setExclusiveIdp(Boolean exclusiveIdp) {
this.exclusiveIdp = exclusiveIdp;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Domain domain = (Domain) o;
return Objects.equals(this.id, domain.id) &&
Objects.equals(this.fqdn, domain.fqdn) &&
Objects.equals(this.identityProvider, domain.identityProvider) &&
Objects.equals(this.exclusiveIdp, domain.exclusiveIdp);
}
@Override
public int hashCode() {
return Objects.hash(id, fqdn, identityProvider, exclusiveIdp);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Domain {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" fqdn: ").append(toIndentedString(fqdn)).append("\n");
sb.append(" identityProvider: ").append(toIndentedString(identityProvider)).append("\n");
sb.append(" exclusiveIdp: ").append(toIndentedString(exclusiveIdp)).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