All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.okta.sdk.resource.model.OktaActiveDirectoryGroupProfile Maven / Gradle / Ivy

Go to download

The Okta Java SDK API .jar provides a Java API that your code can use to make calls to the Okta API. This .jar is the only compile-time dependency within the Okta SDK project that your code should depend on. Implementations of this API (implementation .jars) should be runtime dependencies only.

There is a newer version: 23.0.1
Show newest version
package com.okta.sdk.resource.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;

/**
 * Profile for a Group that is imported from Active Directory. The `objectClass` for such groups is
 * `okta:windows_security_principal`.
 */
@ApiModel(description = "Profile for a Group that is imported from Active Directory.  The `objectClass` for such groups is `okta:windows_security_principal`.")
@JsonPropertyOrder({ OktaActiveDirectoryGroupProfile.JSON_PROPERTY_DESCRIPTION,
        OktaActiveDirectoryGroupProfile.JSON_PROPERTY_DN, OktaActiveDirectoryGroupProfile.JSON_PROPERTY_EXTERNAL_ID,
        OktaActiveDirectoryGroupProfile.JSON_PROPERTY_NAME,
        OktaActiveDirectoryGroupProfile.JSON_PROPERTY_SAM_ACCOUNT_NAME,
        OktaActiveDirectoryGroupProfile.JSON_PROPERTY_WINDOWS_DOMAIN_QUALIFIED_NAME })
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-15T08:48:47.130589-06:00[America/Chicago]", comments = "Generator version: 7.8.0")
public class OktaActiveDirectoryGroupProfile implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String JSON_PROPERTY_DESCRIPTION = "description";
    private String description;

    public static final String JSON_PROPERTY_DN = "dn";
    private String dn;

    public static final String JSON_PROPERTY_EXTERNAL_ID = "externalId";
    private String externalId;

    public static final String JSON_PROPERTY_NAME = "name";
    private String name;

    public static final String JSON_PROPERTY_SAM_ACCOUNT_NAME = "samAccountName";
    private String samAccountName;

    public static final String JSON_PROPERTY_WINDOWS_DOMAIN_QUALIFIED_NAME = "windowsDomainQualifiedName";
    private String windowsDomainQualifiedName;

    public OktaActiveDirectoryGroupProfile() {
    }

    public OktaActiveDirectoryGroupProfile description(String description) {

        this.description = description;
        return this;
    }

    /**
     * Description of the Windows Group
     *
     * @return description
     **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "example.com/West Coast/West Coast Users", value = "Description of the Windows Group")
    @JsonProperty(JSON_PROPERTY_DESCRIPTION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getDescription() {
        return description;
    }

    @JsonProperty(JSON_PROPERTY_DESCRIPTION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setDescription(String description) {
        this.description = description;
    }

    public OktaActiveDirectoryGroupProfile dn(String dn) {

        this.dn = dn;
        return this;
    }

    /**
     * The distinguished name of the Windows Group
     *
     * @return dn
     **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "CN=West Coast Users,OU=West Coast,DC=example,DC=com", value = "The distinguished name of the Windows Group")
    @JsonProperty(JSON_PROPERTY_DN)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getDn() {
        return dn;
    }

    @JsonProperty(JSON_PROPERTY_DN)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setDn(String dn) {
        this.dn = dn;
    }

    public OktaActiveDirectoryGroupProfile externalId(String externalId) {

        this.externalId = externalId;
        return this;
    }

    /**
     * Base-64 encoded GUID (`objectGUID`) of the Windows Group
     *
     * @return externalId
     **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "VKzYZ1C+IkSZxIWlrW5ITg==", value = "Base-64 encoded GUID (`objectGUID`) of the Windows Group")
    @JsonProperty(JSON_PROPERTY_EXTERNAL_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getExternalId() {
        return externalId;
    }

    @JsonProperty(JSON_PROPERTY_EXTERNAL_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setExternalId(String externalId) {
        this.externalId = externalId;
    }

    public OktaActiveDirectoryGroupProfile name(String name) {

        this.name = name;
        return this;
    }

    /**
     * Name of the Windows Group
     *
     * @return name
     **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "West Coast Users", value = "Name of the Windows Group")
    @JsonProperty(JSON_PROPERTY_NAME)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getName() {
        return name;
    }

    @JsonProperty(JSON_PROPERTY_NAME)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setName(String name) {
        this.name = name;
    }

    public OktaActiveDirectoryGroupProfile samAccountName(String samAccountName) {

        this.samAccountName = samAccountName;
        return this;
    }

    /**
     * Pre-Windows 2000 name of the Windows Group
     *
     * @return samAccountName
     **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "West Coast Users", value = "Pre-Windows 2000 name of the Windows Group")
    @JsonProperty(JSON_PROPERTY_SAM_ACCOUNT_NAME)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getSamAccountName() {
        return samAccountName;
    }

    @JsonProperty(JSON_PROPERTY_SAM_ACCOUNT_NAME)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setSamAccountName(String samAccountName) {
        this.samAccountName = samAccountName;
    }

    public OktaActiveDirectoryGroupProfile windowsDomainQualifiedName(String windowsDomainQualifiedName) {

        this.windowsDomainQualifiedName = windowsDomainQualifiedName;
        return this;
    }

    /**
     * Fully qualified name of the Windows Group
     *
     * @return windowsDomainQualifiedName
     **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "EXAMPLE\\\\West Coast Users", value = "Fully qualified name of the Windows Group")
    @JsonProperty(JSON_PROPERTY_WINDOWS_DOMAIN_QUALIFIED_NAME)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getWindowsDomainQualifiedName() {
        return windowsDomainQualifiedName;
    }

    @JsonProperty(JSON_PROPERTY_WINDOWS_DOMAIN_QUALIFIED_NAME)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setWindowsDomainQualifiedName(String windowsDomainQualifiedName) {
        this.windowsDomainQualifiedName = windowsDomainQualifiedName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        OktaActiveDirectoryGroupProfile oktaActiveDirectoryGroupProfile = (OktaActiveDirectoryGroupProfile) o;
        return Objects.equals(this.description, oktaActiveDirectoryGroupProfile.description)
                && Objects.equals(this.dn, oktaActiveDirectoryGroupProfile.dn)
                && Objects.equals(this.externalId, oktaActiveDirectoryGroupProfile.externalId)
                && Objects.equals(this.name, oktaActiveDirectoryGroupProfile.name)
                && Objects.equals(this.samAccountName, oktaActiveDirectoryGroupProfile.samAccountName)
                && Objects.equals(this.windowsDomainQualifiedName,
                        oktaActiveDirectoryGroupProfile.windowsDomainQualifiedName);
        // ;
    }

    @Override
    public int hashCode() {
        return Objects.hash(description, dn, externalId, name, samAccountName, windowsDomainQualifiedName);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class OktaActiveDirectoryGroupProfile {\n");
        sb.append("    description: ").append(toIndentedString(description)).append("\n");
        sb.append("    dn: ").append(toIndentedString(dn)).append("\n");
        sb.append("    externalId: ").append(toIndentedString(externalId)).append("\n");
        sb.append("    name: ").append(toIndentedString(name)).append("\n");
        sb.append("    samAccountName: ").append(toIndentedString(samAccountName)).append("\n");
        sb.append("    windowsDomainQualifiedName: ").append(toIndentedString(windowsDomainQualifiedName)).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(Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy