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

io.harness.cf.model.ProxyConfigAllOfEnvironments Maven / Gradle / Ivy

The newest version!
/*
 * Harness feature flag service client apis
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.harness.cf.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.harness.cf.model.FeatureConfig;
import io.harness.cf.model.Segment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * ProxyConfigAllOfEnvironments
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T14:30:44.890314Z[GMT]")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ProxyConfigAllOfEnvironments implements Serializable {
  private static final long serialVersionUID = 1L;

  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public static final String SERIALIZED_NAME_API_KEYS = "apiKeys";
  @SerializedName(SERIALIZED_NAME_API_KEYS)
  private List apiKeys = null;

  public static final String SERIALIZED_NAME_FEATURE_CONFIGS = "featureConfigs";
  @SerializedName(SERIALIZED_NAME_FEATURE_CONFIGS)
  private List featureConfigs = null;

  public static final String SERIALIZED_NAME_SEGMENTS = "segments";
  @SerializedName(SERIALIZED_NAME_SEGMENTS)
  private List segments = null;


  public ProxyConfigAllOfEnvironments id(String id) {
    
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getId() {
    return id;
  }


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


  public ProxyConfigAllOfEnvironments apiKeys(List apiKeys) {
    
    this.apiKeys = apiKeys;
    return this;
  }

   /**
   * Get apiKeys
   * @return apiKeys
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public List getApiKeys() {
    return apiKeys;
  }


  public void setApiKeys(List apiKeys) {
    this.apiKeys = apiKeys;
  }


  public ProxyConfigAllOfEnvironments featureConfigs(List featureConfigs) {
    
    this.featureConfigs = featureConfigs;
    return this;
  }

   /**
   * Get featureConfigs
   * @return featureConfigs
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public List getFeatureConfigs() {
    return featureConfigs;
  }


  public void setFeatureConfigs(List featureConfigs) {
    this.featureConfigs = featureConfigs;
  }


  public ProxyConfigAllOfEnvironments segments(List segments) {
    
    this.segments = segments;
    return this;
  }

   /**
   * Get segments
   * @return segments
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public List getSegments() {
    return segments;
  }


  public void setSegments(List segments) {
    this.segments = segments;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProxyConfigAllOfEnvironments proxyConfigAllOfEnvironments = (ProxyConfigAllOfEnvironments) o;
    return Objects.equals(this.id, proxyConfigAllOfEnvironments.id) &&
        Objects.equals(this.apiKeys, proxyConfigAllOfEnvironments.apiKeys) &&
        Objects.equals(this.featureConfigs, proxyConfigAllOfEnvironments.featureConfigs) &&
        Objects.equals(this.segments, proxyConfigAllOfEnvironments.segments);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, apiKeys, featureConfigs, segments);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProxyConfigAllOfEnvironments {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    apiKeys: ").append(toIndentedString(apiKeys)).append("\n");
    sb.append("    featureConfigs: ").append(toIndentedString(featureConfigs)).append("\n");
    sb.append("    segments: ").append(toIndentedString(segments)).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 - 2024 Weber Informatics LLC | Privacy Policy