
com.okta.sdk.resource.model.PostAPIServiceIntegrationInstance 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.APIServiceIntegrationLinks;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
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;
/**
* PostAPIServiceIntegrationInstance
*/
@JsonPropertyOrder({ PostAPIServiceIntegrationInstance.JSON_PROPERTY_CONFIG_GUIDE_URL,
PostAPIServiceIntegrationInstance.JSON_PROPERTY_CREATED_AT,
PostAPIServiceIntegrationInstance.JSON_PROPERTY_CREATED_BY,
PostAPIServiceIntegrationInstance.JSON_PROPERTY_GRANTED_SCOPES,
PostAPIServiceIntegrationInstance.JSON_PROPERTY_ID, PostAPIServiceIntegrationInstance.JSON_PROPERTY_NAME,
PostAPIServiceIntegrationInstance.JSON_PROPERTY_TYPE, PostAPIServiceIntegrationInstance.JSON_PROPERTY_LINKS,
PostAPIServiceIntegrationInstance.JSON_PROPERTY_CLIENT_SECRET })
@JsonTypeName("postAPIServiceIntegrationInstance")
@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 PostAPIServiceIntegrationInstance implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_CONFIG_GUIDE_URL = "configGuideUrl";
private String configGuideUrl;
public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
private String createdAt;
public static final String JSON_PROPERTY_CREATED_BY = "createdBy";
private String createdBy;
public static final String JSON_PROPERTY_GRANTED_SCOPES = "grantedScopes";
private List grantedScopes = null;
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_TYPE = "type";
private String type;
public static final String JSON_PROPERTY_LINKS = "_links";
private APIServiceIntegrationLinks links;
public static final String JSON_PROPERTY_CLIENT_SECRET = "clientSecret";
private String clientSecret;
public PostAPIServiceIntegrationInstance() {
}
/*
* @JsonCreator public PostAPIServiceIntegrationInstance(
*
* @JsonProperty(JSON_PROPERTY_CONFIG_GUIDE_URL) String configGuideUrl,
*
* @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt,
*
* @JsonProperty(JSON_PROPERTY_CREATED_BY) String createdBy,
*
* @JsonProperty(JSON_PROPERTY_ID) String id,
*
* @JsonProperty(JSON_PROPERTY_NAME) String name,
*
* @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) String clientSecret ) { this(); this.configGuideUrl = configGuideUrl;
* this.createdAt = createdAt; this.createdBy = createdBy; this.id = id; this.name = name; this.clientSecret =
* clientSecret; }
*/
/**
* The URL to the API service integration configuration guide
*
* @return configGuideUrl
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "https://{docDomain}/my-app-cie/configuration-guide", value = "The URL to the API service integration configuration guide")
@JsonProperty(JSON_PROPERTY_CONFIG_GUIDE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getConfigGuideUrl() {
return configGuideUrl;
}
/**
* Timestamp when the API Service Integration instance was created
*
* @return createdAt
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2023-02-21T20:08:24.000Z", value = "Timestamp when the API Service Integration instance was created")
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCreatedAt() {
return createdAt;
}
/**
* The user ID of the API Service Integration instance creator
*
* @return createdBy
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "00uu3u0ujW1P6AfZC2d5", value = "The user ID of the API Service Integration instance creator")
@JsonProperty(JSON_PROPERTY_CREATED_BY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCreatedBy() {
return createdBy;
}
public PostAPIServiceIntegrationInstance grantedScopes(List grantedScopes) {
this.grantedScopes = grantedScopes;
return this;
}
public PostAPIServiceIntegrationInstance addgrantedScopesItem(String grantedScopesItem) {
if (this.grantedScopes == null) {
this.grantedScopes = new ArrayList<>();
}
this.grantedScopes.add(grantedScopesItem);
return this;
}
/**
* The list of Okta management scopes granted to the API Service Integration instance. See [Okta management OAuth
* 2.0 scopes](/oauth2/#okta-admin-management).
*
* @return grantedScopes
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "[okta.logs.read]", value = "The list of Okta management scopes granted to the API Service Integration instance. See [Okta management OAuth 2.0 scopes](/oauth2/#okta-admin-management).")
@JsonProperty(JSON_PROPERTY_GRANTED_SCOPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getGrantedScopes() {
return grantedScopes;
}
@JsonProperty(JSON_PROPERTY_GRANTED_SCOPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGrantedScopes(List grantedScopes) {
this.grantedScopes = grantedScopes;
}
/**
* The ID of the API Service Integration instance
*
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "0oa72lrepvp4WqEET1d9", value = "The ID of the API Service Integration instance")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}
/**
* The name of the API service integration that corresponds with the `type` property. This is the full
* name of the API service integration listed in the Okta Integration Network (OIN) catalog.
*
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "My App Cloud Identity Engine", value = "The name of the API service integration that corresponds with the `type` property. This is the full name of the API service integration listed in the Okta Integration Network (OIN) catalog.")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
public PostAPIServiceIntegrationInstance type(String type) {
this.type = type;
return this;
}
/**
* The type of the API service integration. This string is an underscore-concatenated, lowercased API service
* integration name. For example, `my_api_log_integration`.
*
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "my_app_cie", value = "The type of the API service integration. This string is an underscore-concatenated, lowercased API service integration name. For example, `my_api_log_integration`.")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(String type) {
this.type = type;
}
public PostAPIServiceIntegrationInstance links(APIServiceIntegrationLinks 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 APIServiceIntegrationLinks getLinks() {
return links;
}
@JsonProperty(JSON_PROPERTY_LINKS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLinks(APIServiceIntegrationLinks links) {
this.links = links;
}
/**
* The client secret for the API Service Integration instance. This property is only returned in a POST response.
*
* @return clientSecret
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The client secret for the API Service Integration instance. This property is only returned in a POST response.")
@JsonProperty(JSON_PROPERTY_CLIENT_SECRET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClientSecret() {
return clientSecret;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PostAPIServiceIntegrationInstance postAPIServiceIntegrationInstance = (PostAPIServiceIntegrationInstance) o;
return Objects.equals(this.configGuideUrl, postAPIServiceIntegrationInstance.configGuideUrl)
&& Objects.equals(this.createdAt, postAPIServiceIntegrationInstance.createdAt)
&& Objects.equals(this.createdBy, postAPIServiceIntegrationInstance.createdBy)
&& Objects.equals(this.grantedScopes, postAPIServiceIntegrationInstance.grantedScopes)
&& Objects.equals(this.id, postAPIServiceIntegrationInstance.id)
&& Objects.equals(this.name, postAPIServiceIntegrationInstance.name)
&& Objects.equals(this.type, postAPIServiceIntegrationInstance.type)
&& Objects.equals(this.links, postAPIServiceIntegrationInstance.links)
&& Objects.equals(this.clientSecret, postAPIServiceIntegrationInstance.clientSecret);
// ;
}
@Override
public int hashCode() {
return Objects.hash(configGuideUrl, createdAt, createdBy, grantedScopes, id, name, type, links, clientSecret);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PostAPIServiceIntegrationInstance {\n");
sb.append(" configGuideUrl: ").append(toIndentedString(configGuideUrl)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
sb.append(" grantedScopes: ").append(toIndentedString(grantedScopes)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append(" clientSecret: ").append(toIndentedString(clientSecret)).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