net.leanix.mtm.api.models.IdentityProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-mtm-sdk-java Show documentation
Show all versions of leanix-mtm-sdk-java Show documentation
SDK for Java to access leanIX MTM REST API
/*
* LeanIX MTM REST API
* Multi-tenancy-manager for LeanIX. Manages accounts, contracts, users, workspaces, permissions, and more.
*
* OpenAPI spec version: 1.6.348
*
*
* 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 net.leanix.mtm.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import net.leanix.mtm.api.models.Account;
/**
* IdentityProvider
*/
public class IdentityProvider {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("userNameDomain")
private String userNameDomain = null;
@JsonProperty("account")
private Account account = null;
/**
* Gets or Sets identityManagement
*/
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;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static IdentityManagementEnum fromValue(String text) {
for (IdentityManagementEnum b : IdentityManagementEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("identityManagement")
private IdentityManagementEnum identityManagement = null;
@JsonProperty("entityId")
private String entityId = null;
@JsonProperty("metadata")
private String metadata = null;
@JsonProperty("certificateExpiryDate")
private OffsetDateTime certificateExpiryDate = null;
public IdentityProvider id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public IdentityProvider name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public IdentityProvider userNameDomain(String userNameDomain) {
this.userNameDomain = userNameDomain;
return this;
}
/**
* Get userNameDomain
* @return userNameDomain
**/
@ApiModelProperty(value = "")
public String getUserNameDomain() {
return userNameDomain;
}
public void setUserNameDomain(String userNameDomain) {
this.userNameDomain = userNameDomain;
}
public IdentityProvider account(Account account) {
this.account = account;
return this;
}
/**
* Get account
* @return account
**/
@ApiModelProperty(value = "")
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
public IdentityProvider identityManagement(IdentityManagementEnum identityManagement) {
this.identityManagement = identityManagement;
return this;
}
/**
* Get identityManagement
* @return identityManagement
**/
@ApiModelProperty(required = true, value = "")
public IdentityManagementEnum getIdentityManagement() {
return identityManagement;
}
public void setIdentityManagement(IdentityManagementEnum identityManagement) {
this.identityManagement = identityManagement;
}
public IdentityProvider entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* Get entityId
* @return entityId
**/
@ApiModelProperty(value = "")
public String getEntityId() {
return entityId;
}
public void setEntityId(String entityId) {
this.entityId = entityId;
}
public IdentityProvider metadata(String metadata) {
this.metadata = metadata;
return this;
}
/**
* Get metadata
* @return metadata
**/
@ApiModelProperty(value = "")
public String getMetadata() {
return metadata;
}
public void setMetadata(String metadata) {
this.metadata = metadata;
}
public IdentityProvider certificateExpiryDate(OffsetDateTime certificateExpiryDate) {
this.certificateExpiryDate = certificateExpiryDate;
return this;
}
/**
* Get certificateExpiryDate
* @return certificateExpiryDate
**/
@ApiModelProperty(value = "")
public OffsetDateTime getCertificateExpiryDate() {
return certificateExpiryDate;
}
public void setCertificateExpiryDate(OffsetDateTime certificateExpiryDate) {
this.certificateExpiryDate = certificateExpiryDate;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IdentityProvider identityProvider = (IdentityProvider) o;
return Objects.equals(this.id, identityProvider.id) &&
Objects.equals(this.name, identityProvider.name) &&
Objects.equals(this.userNameDomain, identityProvider.userNameDomain) &&
Objects.equals(this.account, identityProvider.account) &&
Objects.equals(this.identityManagement, identityProvider.identityManagement) &&
Objects.equals(this.entityId, identityProvider.entityId) &&
Objects.equals(this.metadata, identityProvider.metadata) &&
Objects.equals(this.certificateExpiryDate, identityProvider.certificateExpiryDate);
}
@Override
public int hashCode() {
return Objects.hash(id, name, userNameDomain, account, identityManagement, entityId, metadata, certificateExpiryDate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IdentityProvider {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" userNameDomain: ").append(toIndentedString(userNameDomain)).append("\n");
sb.append(" account: ").append(toIndentedString(account)).append("\n");
sb.append(" identityManagement: ").append(toIndentedString(identityManagement)).append("\n");
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" certificateExpiryDate: ").append(toIndentedString(certificateExpiryDate)).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