com.okta.sdk.resource.model.BasicAuthApplication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of okta-sdk-api Show documentation
Show all versions of okta-sdk-api Show documentation
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.
The newest version!
package com.okta.sdk.resource.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.okta.sdk.resource.model.Application;
import com.okta.sdk.resource.model.ApplicationAccessibility;
import com.okta.sdk.resource.model.ApplicationEmbedded;
import com.okta.sdk.resource.model.ApplicationLicensing;
import com.okta.sdk.resource.model.ApplicationLifecycleStatus;
import com.okta.sdk.resource.model.ApplicationLinks;
import com.okta.sdk.resource.model.ApplicationSignOnMode;
import com.okta.sdk.resource.model.ApplicationVisibility;
import com.okta.sdk.resource.model.BasicApplicationSettings;
import com.okta.sdk.resource.model.SchemeApplicationCredentials;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
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;
/**
* BasicAuthApplication
*/
@JsonPropertyOrder({ BasicAuthApplication.JSON_PROPERTY_CREDENTIALS, BasicAuthApplication.JSON_PROPERTY_NAME,
BasicAuthApplication.JSON_PROPERTY_SETTINGS })
@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")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "signOnMode", visible = true, defaultImpl = BasicAuthApplication.class)
public class BasicAuthApplication extends Application implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_CREDENTIALS = "credentials";
private SchemeApplicationCredentials credentials;
/**
* `template_basic_auth` is the key name for a Basic Authentication scheme app instance
*/
public enum NameEnum {
TEMPLATE_BASIC_AUTH("template_basic_auth"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
NameEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static NameEnum fromValue(String value) {
for (NameEnum b : NameEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return UNKNOWN_DEFAULT_OPEN_API;
}
}
public static final String JSON_PROPERTY_NAME = "name";
private NameEnum name;
public static final String JSON_PROPERTY_SETTINGS = "settings";
private BasicApplicationSettings settings;
public BasicAuthApplication() {
}
/*
* @JsonCreator public BasicAuthApplication(
*
* @JsonProperty(JSON_PROPERTY_CREATED) OffsetDateTime created,
*
* @JsonProperty(JSON_PROPERTY_ID) String id,
*
* @JsonProperty(JSON_PROPERTY_LAST_UPDATED) OffsetDateTime lastUpdated,
*
* @JsonProperty(JSON_PROPERTY_ORN) String orn ) { this(); this.created = created; this.id = id; this.lastUpdated =
* lastUpdated; this.orn = orn; }
*/
public BasicAuthApplication credentials(SchemeApplicationCredentials credentials) {
this.credentials = credentials;
return this;
}
/**
* Get credentials
*
* @return credentials
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CREDENTIALS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SchemeApplicationCredentials getCredentials() {
return credentials;
}
@JsonProperty(JSON_PROPERTY_CREDENTIALS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCredentials(SchemeApplicationCredentials credentials) {
this.credentials = credentials;
}
public BasicAuthApplication name(NameEnum name) {
this.name = name;
return this;
}
/**
* `template_basic_auth` is the key name for a Basic Authentication scheme app instance
*
* @return name
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "`template_basic_auth` is the key name for a Basic Authentication scheme app instance")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public NameEnum getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(NameEnum name) {
this.name = name;
}
public BasicAuthApplication settings(BasicApplicationSettings settings) {
this.settings = settings;
return this;
}
/**
* Get settings
*
* @return settings
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_SETTINGS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BasicApplicationSettings getSettings() {
return settings;
}
@JsonProperty(JSON_PROPERTY_SETTINGS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSettings(BasicApplicationSettings settings) {
this.settings = settings;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BasicAuthApplication basicAuthApplication = (BasicAuthApplication) o;
return Objects.equals(this.credentials, basicAuthApplication.credentials)
&& Objects.equals(this.name, basicAuthApplication.name)
&& Objects.equals(this.settings, basicAuthApplication.settings);
// && super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(credentials, name, settings, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BasicAuthApplication {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" credentials: ").append(toIndentedString(credentials)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" settings: ").append(toIndentedString(settings)).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