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

net.leanix.api.models.SubscriptionRole Maven / Gradle / Ivy

There is a newer version: 3.9.32
Show newest version
/*
 * LeanIX Pathfinder REST API
 * Core application for storage and analysis of IT landscape data
 *
 * OpenAPI spec version: 4.0.161-SNAPSHOT
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package net.leanix.api.models;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * SubscriptionRole
 */

public class SubscriptionRole {
  @JsonProperty("id")
  private UUID id = null;

  @JsonProperty("name")
  private String name = null;

  /**
   * Gets or Sets subscriptionType
   */
  public enum SubscriptionTypeEnum {
    ACCOUNTABLE("ACCOUNTABLE"),
    
    RESPONSIBLE("RESPONSIBLE"),
    
    OBSERVER("OBSERVER");

    private String value;

    SubscriptionTypeEnum(String value) {
      this.value = value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static SubscriptionTypeEnum fromValue(String text) {
      for (SubscriptionTypeEnum b : SubscriptionTypeEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("subscriptionType")
  private SubscriptionTypeEnum subscriptionType = null;

  @JsonProperty("restrictToFactSheetTypes")
  private List restrictToFactSheetTypes = new ArrayList();

  public SubscriptionRole id(UUID id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "null", value = "")
  public UUID getId() {
    return id;
  }

  public void setId(UUID id) {
    this.id = id;
  }

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

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getName() {
    return name;
  }

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

  public SubscriptionRole subscriptionType(SubscriptionTypeEnum subscriptionType) {
    this.subscriptionType = subscriptionType;
    return this;
  }

   /**
   * Get subscriptionType
   * @return subscriptionType
  **/
  @ApiModelProperty(example = "null", value = "")
  public SubscriptionTypeEnum getSubscriptionType() {
    return subscriptionType;
  }

  public void setSubscriptionType(SubscriptionTypeEnum subscriptionType) {
    this.subscriptionType = subscriptionType;
  }

  public SubscriptionRole restrictToFactSheetTypes(List restrictToFactSheetTypes) {
    this.restrictToFactSheetTypes = restrictToFactSheetTypes;
    return this;
  }

  public SubscriptionRole addRestrictToFactSheetTypesItem(String restrictToFactSheetTypesItem) {
    this.restrictToFactSheetTypes.add(restrictToFactSheetTypesItem);
    return this;
  }

   /**
   * Get restrictToFactSheetTypes
   * @return restrictToFactSheetTypes
  **/
  @ApiModelProperty(example = "null", value = "")
  public List getRestrictToFactSheetTypes() {
    return restrictToFactSheetTypes;
  }

  public void setRestrictToFactSheetTypes(List restrictToFactSheetTypes) {
    this.restrictToFactSheetTypes = restrictToFactSheetTypes;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SubscriptionRole subscriptionRole = (SubscriptionRole) o;
    return Objects.equals(this.id, subscriptionRole.id) &&
        Objects.equals(this.name, subscriptionRole.name) &&
        Objects.equals(this.subscriptionType, subscriptionRole.subscriptionType) &&
        Objects.equals(this.restrictToFactSheetTypes, subscriptionRole.restrictToFactSheetTypes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, subscriptionType, restrictToFactSheetTypes);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SubscriptionRole {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    subscriptionType: ").append(toIndentedString(subscriptionType)).append("\n");
    sb.append("    restrictToFactSheetTypes: ").append(toIndentedString(restrictToFactSheetTypes)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy