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

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

There is a newer version: 8.0.5
Show newest version
package com.symphony.api.model;

import com.symphony.api.model.V1DLPPolicy;
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;

/**
  * List of policies
 **/
@Schema(description="List of policies")
public class V1DLPPoliciesCollectionResponse   {
  
  @Schema(description = "List of policies")
 /**
   * List of policies  
  **/
  private List policies = null;
  
  @Schema(description = "Page number of current page")
 /**
   * Page number of current page  
  **/
  private Integer page = null;
  
  @Schema(description = "Total number of pages available")
 /**
   * Total number of pages available  
  **/
  private Integer pageCount = null;
 /**
   * List of policies
   * @return policies
  **/
  @JsonProperty("policies")
  public List getPolicies() {
    return policies;
  }

  public void setPolicies(List policies) {
    this.policies = policies;
  }

  public V1DLPPoliciesCollectionResponse policies(List policies) {
    this.policies = policies;
    return this;
  }

  public V1DLPPoliciesCollectionResponse addPoliciesItem(V1DLPPolicy policiesItem) {
    this.policies.add(policiesItem);
    return this;
  }

 /**
   * Page number of current page
   * @return page
  **/
  @JsonProperty("page")
  public Integer getPage() {
    return page;
  }

  public void setPage(Integer page) {
    this.page = page;
  }

  public V1DLPPoliciesCollectionResponse page(Integer page) {
    this.page = page;
    return this;
  }

 /**
   * Total number of pages available
   * @return pageCount
  **/
  @JsonProperty("pageCount")
  public Integer getPageCount() {
    return pageCount;
  }

  public void setPageCount(Integer pageCount) {
    this.pageCount = pageCount;
  }

  public V1DLPPoliciesCollectionResponse pageCount(Integer pageCount) {
    this.pageCount = pageCount;
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1DLPPoliciesCollectionResponse {\n");
    
    sb.append("    policies: ").append(toIndentedString(policies)).append("\n");
    sb.append("    page: ").append(toIndentedString(page)).append("\n");
    sb.append("    pageCount: ").append(toIndentedString(pageCount)).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