
com.okta.sdk.resource.model.OAuth2Client 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.
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 com.okta.sdk.resource.model.OAuth2ClientLinks;
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;
/**
* OAuth2Client
*/
@JsonPropertyOrder({ OAuth2Client.JSON_PROPERTY_CLIENT_ID, OAuth2Client.JSON_PROPERTY_CLIENT_NAME,
OAuth2Client.JSON_PROPERTY_CLIENT_URI, OAuth2Client.JSON_PROPERTY_LOGO_URI, OAuth2Client.JSON_PROPERTY_LINKS })
@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 OAuth2Client implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_CLIENT_ID = "client_id";
private String clientId;
public static final String JSON_PROPERTY_CLIENT_NAME = "client_name";
private String clientName;
public static final String JSON_PROPERTY_CLIENT_URI = "client_uri";
private String clientUri;
public static final String JSON_PROPERTY_LOGO_URI = "logo_uri";
private String logoUri;
public static final String JSON_PROPERTY_LINKS = "_links";
private OAuth2ClientLinks links;
public OAuth2Client() {
}
/*
* @JsonCreator public OAuth2Client(
*
* @JsonProperty(JSON_PROPERTY_CLIENT_ID) String clientId,
*
* @JsonProperty(JSON_PROPERTY_CLIENT_NAME) String clientName,
*
* @JsonProperty(JSON_PROPERTY_CLIENT_URI) String clientUri,
*
* @JsonProperty(JSON_PROPERTY_LOGO_URI) String logoUri ) { this(); this.clientId = clientId; this.clientName =
* clientName; this.clientUri = clientUri; this.logoUri = logoUri; }
*/
/**
* Unique key for the client application. The `client_id` is immutable.
*
* @return clientId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "0oabskvc6442nkvQO0h7", value = "Unique key for the client application. The `client_id` is immutable.")
@JsonProperty(JSON_PROPERTY_CLIENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClientId() {
return clientId;
}
/**
* Human-readable string name of the client application
*
* @return clientName
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "My App", value = "Human-readable string name of the client application")
@JsonProperty(JSON_PROPERTY_CLIENT_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClientName() {
return clientName;
}
/**
* Get clientUri
*
* @return clientUri
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "https://www.example.com", value = "")
@JsonProperty(JSON_PROPERTY_CLIENT_URI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClientUri() {
return clientUri;
}
/**
* URL string that references a logo for the client consent dialog (not the sign-in dialog)
*
* @return logoUri
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "https://www.example.com/logo.png", value = "URL string that references a logo for the client consent dialog (not the sign-in dialog)")
@JsonProperty(JSON_PROPERTY_LOGO_URI)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLogoUri() {
return logoUri;
}
public OAuth2Client links(OAuth2ClientLinks links) {
this.links = links;
return this;
}
/**
* Get links
*
* @return links
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LINKS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OAuth2ClientLinks getLinks() {
return links;
}
@JsonProperty(JSON_PROPERTY_LINKS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLinks(OAuth2ClientLinks links) {
this.links = links;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OAuth2Client oauth2Client = (OAuth2Client) o;
return Objects.equals(this.clientId, oauth2Client.clientId)
&& Objects.equals(this.clientName, oauth2Client.clientName)
&& Objects.equals(this.clientUri, oauth2Client.clientUri)
&& Objects.equals(this.logoUri, oauth2Client.logoUri) && Objects.equals(this.links, oauth2Client.links);
// ;
}
@Override
public int hashCode() {
return Objects.hash(clientId, clientName, clientUri, logoUri, links);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OAuth2Client {\n");
sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n");
sb.append(" clientName: ").append(toIndentedString(clientName)).append("\n");
sb.append(" clientUri: ").append(toIndentedString(clientUri)).append("\n");
sb.append(" logoUri: ").append(toIndentedString(logoUri)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).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