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

com.symphony.api.model.ApplicationDetail Maven / Gradle / Ivy

package com.symphony.api.model;

import com.symphony.api.model.AppAuthenticationKeys;
import com.symphony.api.model.AppNotification;
import com.symphony.api.model.ApplicationInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;

/**
  * Detailed record of application.
 **/
@Schema(description="Detailed record of application.")
public class ApplicationDetail   {
  
  @Schema(description = "")
  private ApplicationInfo applicationInfo = null;
  
  @Schema(description = "Url to a icon to use for app. Must start with \"https://\".")
 /**
   * Url to a icon to use for app. Must start with \"https://\".  
  **/
  private String iconUrl = null;
  
  @Schema(description = "Description of the application.")
 /**
   * Description of the application.  
  **/
  private String description = null;
  
  @Schema(description = "The permitted domains to send or receive a request from. The field is for the purpose of CORS which set the app specific \"ALLOW-ORIGIN-DOMAINS\" header in HTTP. ")
 /**
   * The permitted domains to send or receive a request from. The field is for the purpose of CORS which set the app specific \"ALLOW-ORIGIN-DOMAINS\" header in HTTP.   
  **/
  private String allowOrigins = null;
  
  @Schema(description = "List of application permissions provisioned for the application Accepted values:   - SEND_MESSAGES   - GET_USER_CONNECTIONS   - REQUEST_USER_CONNECTIONS   - SET_PRESENCE   - GET_PRESENCE   - GET_BASIC_USER_INFO   - GET_EXTENDED_USER_INFO   - GET_BASIC_CONTACT_INFO   - GET_EXTENDED_CONTACT_INFO   - ACT_AS_USER ")
 /**
   * List of application permissions provisioned for the application Accepted values:   - SEND_MESSAGES   - GET_USER_CONNECTIONS   - REQUEST_USER_CONNECTIONS   - SET_PRESENCE   - GET_PRESENCE   - GET_BASIC_USER_INFO   - GET_EXTENDED_USER_INFO   - GET_BASIC_CONTACT_INFO   - GET_EXTENDED_CONTACT_INFO   - ACT_AS_USER   
  **/
  private List permissions = null;
  
  @Schema(description = "The app public certificate in pem format.")
 /**
   * The app public certificate in pem format.  
  **/
  private String cert = null;
  
  @Schema(description = "")
  private AppAuthenticationKeys authenticationKeys = null;
  
  @Schema(description = "")
  private AppNotification notification = null;
 /**
   * Get applicationInfo
   * @return applicationInfo
  **/
  @JsonProperty("applicationInfo")
  public ApplicationInfo getApplicationInfo() {
    return applicationInfo;
  }

  public void setApplicationInfo(ApplicationInfo applicationInfo) {
    this.applicationInfo = applicationInfo;
  }

  public ApplicationDetail applicationInfo(ApplicationInfo applicationInfo) {
    this.applicationInfo = applicationInfo;
    return this;
  }

 /**
   * Url to a icon to use for app. Must start with \"https://\".
   * @return iconUrl
  **/
  @JsonProperty("iconUrl")
  public String getIconUrl() {
    return iconUrl;
  }

  public void setIconUrl(String iconUrl) {
    this.iconUrl = iconUrl;
  }

  public ApplicationDetail iconUrl(String iconUrl) {
    this.iconUrl = iconUrl;
    return this;
  }

 /**
   * Description of the application.
   * @return description
  **/
  @JsonProperty("description")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public ApplicationDetail description(String description) {
    this.description = description;
    return this;
  }

 /**
   * The permitted domains to send or receive a request from. The field is for the purpose of CORS which set the app specific \"ALLOW-ORIGIN-DOMAINS\" header in HTTP. 
   * @return allowOrigins
  **/
  @JsonProperty("allowOrigins")
  public String getAllowOrigins() {
    return allowOrigins;
  }

  public void setAllowOrigins(String allowOrigins) {
    this.allowOrigins = allowOrigins;
  }

  public ApplicationDetail allowOrigins(String allowOrigins) {
    this.allowOrigins = allowOrigins;
    return this;
  }

 /**
   * List of application permissions provisioned for the application Accepted values:   - SEND_MESSAGES   - GET_USER_CONNECTIONS   - REQUEST_USER_CONNECTIONS   - SET_PRESENCE   - GET_PRESENCE   - GET_BASIC_USER_INFO   - GET_EXTENDED_USER_INFO   - GET_BASIC_CONTACT_INFO   - GET_EXTENDED_CONTACT_INFO   - ACT_AS_USER 
   * @return permissions
  **/
  @JsonProperty("permissions")
  public List getPermissions() {
    return permissions;
  }

  public void setPermissions(List permissions) {
    this.permissions = permissions;
  }

  public ApplicationDetail permissions(List permissions) {
    this.permissions = permissions;
    return this;
  }

  public ApplicationDetail addPermissionsItem(String permissionsItem) {
    this.permissions.add(permissionsItem);
    return this;
  }

 /**
   * The app public certificate in pem format.
   * @return cert
  **/
  @JsonProperty("cert")
  public String getCert() {
    return cert;
  }

  public void setCert(String cert) {
    this.cert = cert;
  }

  public ApplicationDetail cert(String cert) {
    this.cert = cert;
    return this;
  }

 /**
   * Get authenticationKeys
   * @return authenticationKeys
  **/
  @JsonProperty("authenticationKeys")
  public AppAuthenticationKeys getAuthenticationKeys() {
    return authenticationKeys;
  }

  public void setAuthenticationKeys(AppAuthenticationKeys authenticationKeys) {
    this.authenticationKeys = authenticationKeys;
  }

  public ApplicationDetail authenticationKeys(AppAuthenticationKeys authenticationKeys) {
    this.authenticationKeys = authenticationKeys;
    return this;
  }

 /**
   * Get notification
   * @return notification
  **/
  @JsonProperty("notification")
  public AppNotification getNotification() {
    return notification;
  }

  public void setNotification(AppNotification notification) {
    this.notification = notification;
  }

  public ApplicationDetail notification(AppNotification notification) {
    this.notification = notification;
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApplicationDetail {\n");
    
    sb.append("    applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n");
    sb.append("    iconUrl: ").append(toIndentedString(iconUrl)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    allowOrigins: ").append(toIndentedString(allowOrigins)).append("\n");
    sb.append("    permissions: ").append(toIndentedString(permissions)).append("\n");
    sb.append("    cert: ").append(toIndentedString(cert)).append("\n");
    sb.append("    authenticationKeys: ").append(toIndentedString(authenticationKeys)).append("\n");
    sb.append("    notification: ").append(toIndentedString(notification)).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 static String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy