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

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

package com.symphony.api.model;

import io.swagger.v3.oas.annotations.media.Schema;

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;

/**
  * Application Product
 **/
@Schema(description="Application Product")
public class Product   {
  
  @Schema(description = "App ID for the Product")
 /**
   * App ID for the Product  
  **/
  private String appId = null;
  
  @Schema(required = true, description = "Product Name")
 /**
   * Product Name  
  **/
  private String name = null;
  
  @Schema(description = "Product SKU")
 /**
   * Product SKU  
  **/
  private String sku = null;
  
  @Schema(required = true, description = "indicate whether the product is subscribed or not")
 /**
   * indicate whether the product is subscribed or not  
  **/
  private Boolean subscribed = null;
  
  @Schema(required = true, description = "Product Type (default or premium)")
 /**
   * Product Type (default or premium)  
  **/
  private String type = null;
 /**
   * App ID for the Product
   * @return appId
  **/
  @JsonProperty("appId")
  public String getAppId() {
    return appId;
  }

  public void setAppId(String appId) {
    this.appId = appId;
  }

  public Product appId(String appId) {
    this.appId = appId;
    return this;
  }

 /**
   * Product Name
   * @return name
  **/
  @JsonProperty("name")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Product name(String name) {
    this.name = name;
    return this;
  }

 /**
   * Product SKU
   * @return sku
  **/
  @JsonProperty("sku")
  public String getSku() {
    return sku;
  }

  public void setSku(String sku) {
    this.sku = sku;
  }

  public Product sku(String sku) {
    this.sku = sku;
    return this;
  }

 /**
   * indicate whether the product is subscribed or not
   * @return subscribed
  **/
  @JsonProperty("subscribed")
  public Boolean isSubscribed() {
    return subscribed;
  }

  public void setSubscribed(Boolean subscribed) {
    this.subscribed = subscribed;
  }

  public Product subscribed(Boolean subscribed) {
    this.subscribed = subscribed;
    return this;
  }

 /**
   * Product Type (default or premium)
   * @return type
  **/
  @JsonProperty("type")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public Product type(String type) {
    this.type = type;
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Product {\n");
    
    sb.append("    appId: ").append(toIndentedString(appId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    sku: ").append(toIndentedString(sku)).append("\n");
    sb.append("    subscribed: ").append(toIndentedString(subscribed)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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