com.volcengine.privatelink.model.CreateVpcEndpointRequest Maven / Gradle / Ivy
/*
* privatelink
* 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.privatelink.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 com.volcengine.privatelink.model.TagForCreateVpcEndpointInput;
import com.volcengine.privatelink.model.ZoneForCreateVpcEndpointInput;
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;
/**
* CreateVpcEndpointRequest
*/
public class CreateVpcEndpointRequest {
@SerializedName("ClientToken")
private String clientToken = null;
@SerializedName("Description")
private String description = null;
@SerializedName("EndpointName")
private String endpointName = null;
@SerializedName("PrivateDNSEnabled")
private String privateDNSEnabled = null;
@SerializedName("ProjectName")
private String projectName = null;
@SerializedName("SecurityGroupIds")
private List securityGroupIds = null;
@SerializedName("ServiceId")
private String serviceId = null;
@SerializedName("ServiceName")
private String serviceName = null;
@SerializedName("Tags")
private List tags = null;
@SerializedName("VpcId")
private String vpcId = null;
@SerializedName("Zones")
private List zones = null;
public CreateVpcEndpointRequest clientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}
/**
* Get clientToken
* @return clientToken
**/
@Schema(description = "")
public String getClientToken() {
return clientToken;
}
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
public CreateVpcEndpointRequest description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@Schema(description = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public CreateVpcEndpointRequest endpointName(String endpointName) {
this.endpointName = endpointName;
return this;
}
/**
* Get endpointName
* @return endpointName
**/
@Schema(description = "")
public String getEndpointName() {
return endpointName;
}
public void setEndpointName(String endpointName) {
this.endpointName = endpointName;
}
public CreateVpcEndpointRequest privateDNSEnabled(String privateDNSEnabled) {
this.privateDNSEnabled = privateDNSEnabled;
return this;
}
/**
* Get privateDNSEnabled
* @return privateDNSEnabled
**/
@Schema(description = "")
public String getPrivateDNSEnabled() {
return privateDNSEnabled;
}
public void setPrivateDNSEnabled(String privateDNSEnabled) {
this.privateDNSEnabled = privateDNSEnabled;
}
public CreateVpcEndpointRequest projectName(String projectName) {
this.projectName = projectName;
return this;
}
/**
* Get projectName
* @return projectName
**/
@Schema(description = "")
public String getProjectName() {
return projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
public CreateVpcEndpointRequest securityGroupIds(List securityGroupIds) {
this.securityGroupIds = securityGroupIds;
return this;
}
public CreateVpcEndpointRequest 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 CreateVpcEndpointRequest serviceId(String serviceId) {
this.serviceId = serviceId;
return this;
}
/**
* Get serviceId
* @return serviceId
**/
@NotNull
@Schema(required = true, description = "")
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public CreateVpcEndpointRequest serviceName(String serviceName) {
this.serviceName = serviceName;
return this;
}
/**
* Get serviceName
* @return serviceName
**/
@Schema(description = "")
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public CreateVpcEndpointRequest tags(List tags) {
this.tags = tags;
return this;
}
public CreateVpcEndpointRequest addTagsItem(TagForCreateVpcEndpointInput tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList();
}
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@Valid
@Schema(description = "")
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
public CreateVpcEndpointRequest vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Get vpcId
* @return vpcId
**/
@NotNull
@Schema(required = true, description = "")
public String getVpcId() {
return vpcId;
}
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
public CreateVpcEndpointRequest zones(List zones) {
this.zones = zones;
return this;
}
public CreateVpcEndpointRequest addZonesItem(ZoneForCreateVpcEndpointInput zonesItem) {
if (this.zones == null) {
this.zones = new ArrayList();
}
this.zones.add(zonesItem);
return this;
}
/**
* Get zones
* @return zones
**/
@Valid
@Schema(description = "")
public List getZones() {
return zones;
}
public void setZones(List zones) {
this.zones = zones;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateVpcEndpointRequest createVpcEndpointRequest = (CreateVpcEndpointRequest) o;
return Objects.equals(this.clientToken, createVpcEndpointRequest.clientToken) &&
Objects.equals(this.description, createVpcEndpointRequest.description) &&
Objects.equals(this.endpointName, createVpcEndpointRequest.endpointName) &&
Objects.equals(this.privateDNSEnabled, createVpcEndpointRequest.privateDNSEnabled) &&
Objects.equals(this.projectName, createVpcEndpointRequest.projectName) &&
Objects.equals(this.securityGroupIds, createVpcEndpointRequest.securityGroupIds) &&
Objects.equals(this.serviceId, createVpcEndpointRequest.serviceId) &&
Objects.equals(this.serviceName, createVpcEndpointRequest.serviceName) &&
Objects.equals(this.tags, createVpcEndpointRequest.tags) &&
Objects.equals(this.vpcId, createVpcEndpointRequest.vpcId) &&
Objects.equals(this.zones, createVpcEndpointRequest.zones);
}
@Override
public int hashCode() {
return Objects.hash(clientToken, description, endpointName, privateDNSEnabled, projectName, securityGroupIds, serviceId, serviceName, tags, vpcId, zones);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateVpcEndpointRequest {\n");
sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" endpointName: ").append(toIndentedString(endpointName)).append("\n");
sb.append(" privateDNSEnabled: ").append(toIndentedString(privateDNSEnabled)).append("\n");
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
sb.append(" securityGroupIds: ").append(toIndentedString(securityGroupIds)).append("\n");
sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n");
sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n");
sb.append(" zones: ").append(toIndentedString(zones)).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 ");
}
}