
com.vmware.avi.sdk.model.NsxtSIEndpointDetails Maven / Gradle / Ivy
/*
* Copyright 2021 VMware, Inc.
* SPDX-License-Identifier: Apache License 2.0
*/
package com.vmware.avi.sdk.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* The NsxtSIEndpointDetails is a POJO class extends AviRestResource that used for creating
* NsxtSIEndpointDetails.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NsxtSIEndpointDetails {
@JsonProperty("endpoint")
private String endpoint;
@JsonProperty("error_string")
private String errorString;
@JsonProperty("segroup")
private String segroup;
@JsonProperty("services")
private List services;
@JsonProperty("targetIps")
private List targetIps;
@JsonProperty("tier1")
private String tier1;
/**
* This is the getter method this will return the attribute value.
* Virtualendpoint path.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return endpoint
*/
public String getEndpoint() {
return endpoint;
}
/**
* This is the setter method to the attribute.
* Virtualendpoint path.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param endpoint set the endpoint.
*/
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
/**
* This is the getter method this will return the attribute value.
* Error message.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return errorString
*/
public String getErrorString() {
return errorString;
}
/**
* This is the setter method to the attribute.
* Error message.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param errorString set the errorString.
*/
public void setErrorString(String errorString) {
this.errorString = errorString;
}
/**
* This is the getter method this will return the attribute value.
* Serviceenginegroup name.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return segroup
*/
public String getSegroup() {
return segroup;
}
/**
* This is the setter method to the attribute.
* Serviceenginegroup name.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param segroup set the segroup.
*/
public void setSegroup(String segroup) {
this.segroup = segroup;
}
/**
* This is the getter method this will return the attribute value.
* Services where endpoint refers.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return services
*/
public List getServices() {
return services;
}
/**
* This is the setter method. this will set the services
* Services where endpoint refers.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return services
*/
public void setServices(List services) {
this.services = services;
}
/**
* This is the setter method this will set the services
* Services where endpoint refers.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return services
*/
public NsxtSIEndpointDetails addServicesItem(String servicesItem) {
if (this.services == null) {
this.services = new ArrayList();
}
this.services.add(servicesItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Endpoint target ips.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return targetIps
*/
public List getTargetips() {
return targetIps;
}
/**
* This is the setter method. this will set the targetIps
* Endpoint target ips.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return targetIps
*/
public void setTargetips(List targetIps) {
this.targetIps = targetIps;
}
/**
* This is the setter method this will set the targetIps
* Endpoint target ips.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return targetIps
*/
public NsxtSIEndpointDetails addTargetipsItem(String targetIpsItem) {
if (this.targetIps == null) {
this.targetIps = new ArrayList();
}
this.targetIps.add(targetIpsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Tier1 path.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return tier1
*/
public String getTier1() {
return tier1;
}
/**
* This is the setter method to the attribute.
* Tier1 path.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param tier1 set the tier1.
*/
public void setTier1(String tier1) {
this.tier1 = tier1;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NsxtSIEndpointDetails objNsxtSIEndpointDetails = (NsxtSIEndpointDetails) o;
return Objects.equals(this.segroup, objNsxtSIEndpointDetails.segroup)&&
Objects.equals(this.tier1, objNsxtSIEndpointDetails.tier1)&&
Objects.equals(this.errorString, objNsxtSIEndpointDetails.errorString)&&
Objects.equals(this.endpoint, objNsxtSIEndpointDetails.endpoint)&&
Objects.equals(this.services, objNsxtSIEndpointDetails.services)&&
Objects.equals(this.targetIps, objNsxtSIEndpointDetails.targetIps);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NsxtSIEndpointDetails {\n");
sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n");
sb.append(" errorString: ").append(toIndentedString(errorString)).append("\n");
sb.append(" segroup: ").append(toIndentedString(segroup)).append("\n");
sb.append(" services: ").append(toIndentedString(services)).append("\n");
sb.append(" targetIps: ").append(toIndentedString(targetIps)).append("\n");
sb.append(" tier1: ").append(toIndentedString(tier1)).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 - 2025 Weber Informatics LLC | Privacy Policy