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

com.volcengine.vefaas.model.VpcConfigForGetRevisionOutput Maven / Gradle / Ivy

There is a newer version: 0.1.144
Show newest version
/*
 * vefaas
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: common-version
 * 
 *
 * 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 com.volcengine.vefaas.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.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * VpcConfigForGetRevisionOutput
 */



public class VpcConfigForGetRevisionOutput {
  @SerializedName("EnableSharedInternetAccess")
  private Boolean enableSharedInternetAccess = null;

  @SerializedName("EnableVpc")
  private Boolean enableVpc = null;

  @SerializedName("SecurityGroupIds")
  private List securityGroupIds = null;

  @SerializedName("SubnetIds")
  private List subnetIds = null;

  @SerializedName("VpcId")
  private String vpcId = null;

  public VpcConfigForGetRevisionOutput enableSharedInternetAccess(Boolean enableSharedInternetAccess) {
    this.enableSharedInternetAccess = enableSharedInternetAccess;
    return this;
  }

   /**
   * Get enableSharedInternetAccess
   * @return enableSharedInternetAccess
  **/
  @Schema(description = "")
  public Boolean isEnableSharedInternetAccess() {
    return enableSharedInternetAccess;
  }

  public void setEnableSharedInternetAccess(Boolean enableSharedInternetAccess) {
    this.enableSharedInternetAccess = enableSharedInternetAccess;
  }

  public VpcConfigForGetRevisionOutput enableVpc(Boolean enableVpc) {
    this.enableVpc = enableVpc;
    return this;
  }

   /**
   * Get enableVpc
   * @return enableVpc
  **/
  @Schema(description = "")
  public Boolean isEnableVpc() {
    return enableVpc;
  }

  public void setEnableVpc(Boolean enableVpc) {
    this.enableVpc = enableVpc;
  }

  public VpcConfigForGetRevisionOutput securityGroupIds(List securityGroupIds) {
    this.securityGroupIds = securityGroupIds;
    return this;
  }

  public VpcConfigForGetRevisionOutput addSecurityGroupIdsItem(String securityGroupIdsItem) {
    if (this.securityGroupIds == null) {
      this.securityGroupIds = new ArrayList();
    }
    this.securityGroupIds.add(securityGroupIdsItem);
    return this;
  }

   /**
   * Get securityGroupIds
   * @return securityGroupIds
  **/
  @Schema(description = "")
  public List getSecurityGroupIds() {
    return securityGroupIds;
  }

  public void setSecurityGroupIds(List securityGroupIds) {
    this.securityGroupIds = securityGroupIds;
  }

  public VpcConfigForGetRevisionOutput subnetIds(List subnetIds) {
    this.subnetIds = subnetIds;
    return this;
  }

  public VpcConfigForGetRevisionOutput addSubnetIdsItem(String subnetIdsItem) {
    if (this.subnetIds == null) {
      this.subnetIds = new ArrayList();
    }
    this.subnetIds.add(subnetIdsItem);
    return this;
  }

   /**
   * Get subnetIds
   * @return subnetIds
  **/
  @Schema(description = "")
  public List getSubnetIds() {
    return subnetIds;
  }

  public void setSubnetIds(List subnetIds) {
    this.subnetIds = subnetIds;
  }

  public VpcConfigForGetRevisionOutput vpcId(String vpcId) {
    this.vpcId = vpcId;
    return this;
  }

   /**
   * Get vpcId
   * @return vpcId
  **/
  @Schema(description = "")
  public String getVpcId() {
    return vpcId;
  }

  public void setVpcId(String vpcId) {
    this.vpcId = vpcId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    VpcConfigForGetRevisionOutput vpcConfigForGetRevisionOutput = (VpcConfigForGetRevisionOutput) o;
    return Objects.equals(this.enableSharedInternetAccess, vpcConfigForGetRevisionOutput.enableSharedInternetAccess) &&
        Objects.equals(this.enableVpc, vpcConfigForGetRevisionOutput.enableVpc) &&
        Objects.equals(this.securityGroupIds, vpcConfigForGetRevisionOutput.securityGroupIds) &&
        Objects.equals(this.subnetIds, vpcConfigForGetRevisionOutput.subnetIds) &&
        Objects.equals(this.vpcId, vpcConfigForGetRevisionOutput.vpcId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(enableSharedInternetAccess, enableVpc, securityGroupIds, subnetIds, vpcId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class VpcConfigForGetRevisionOutput {\n");
    
    sb.append("    enableSharedInternetAccess: ").append(toIndentedString(enableSharedInternetAccess)).append("\n");
    sb.append("    enableVpc: ").append(toIndentedString(enableVpc)).append("\n");
    sb.append("    securityGroupIds: ").append(toIndentedString(securityGroupIds)).append("\n");
    sb.append("    subnetIds: ").append(toIndentedString(subnetIds)).append("\n");
    sb.append("    vpcId: ").append(toIndentedString(vpcId)).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 - 2024 Weber Informatics LLC | Privacy Policy