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

nl.vpro.nep.sam.model.StreamWithProfilesResponse Maven / Gradle / Ivy

There is a newer version: 8.3.1
Show newest version
/*
 * Stream Access Manager
 * Get access to a stream in order to view it
 *
 * The version of the OpenAPI document: 4.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package nl.vpro.nep.sam.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 java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import nl.vpro.nep.sam.model.StreamProfileItemResponseAttributes;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;

/**
 * StreamWithProfilesResponse
 */
@JsonPropertyOrder({
  StreamWithProfilesResponse.JSON_PROPERTY_PROFILES
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-12-18T10:26:20.602909888Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class StreamWithProfilesResponse {
  public static final String JSON_PROPERTY_PROFILES = "profiles";
  private List<@Valid StreamProfileItemResponseAttributes> profiles = new ArrayList<>();

  public StreamWithProfilesResponse() {
  }

  public StreamWithProfilesResponse profiles(List<@Valid StreamProfileItemResponseAttributes> profiles) {
    
    this.profiles = profiles;
    return this;
  }

  public StreamWithProfilesResponse addProfilesItem(StreamProfileItemResponseAttributes profilesItem) {
    if (this.profiles == null) {
      this.profiles = new ArrayList<>();
    }
    this.profiles.add(profilesItem);
    return this;
  }

   /**
   * Get profiles
   * @return profiles
  **/
  @jakarta.annotation.Nullable
  @Valid

  @JsonProperty(JSON_PROPERTY_PROFILES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List<@Valid StreamProfileItemResponseAttributes> getProfiles() {
    return profiles;
  }


  @JsonProperty(JSON_PROPERTY_PROFILES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setProfiles(List<@Valid StreamProfileItemResponseAttributes> profiles) {
    this.profiles = profiles;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StreamWithProfilesResponse streamWithProfilesResponse = (StreamWithProfilesResponse) o;
    return Objects.equals(this.profiles, streamWithProfilesResponse.profiles);
  }

  @Override
  public int hashCode() {
    return Objects.hash(profiles);
  }

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