
com.vmware.avi.sdk.model.LogControllerMapping 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 LogControllerMapping is a POJO class extends AviRestResource that used for creating
* LogControllerMapping.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LogControllerMapping extends AviRestResource {
@JsonProperty("controller_ip")
private String controllerIp;
@JsonProperty("metrics_mgr_port")
private String metricsMgrPort = "METRICS_MGR_PORT_0";
@JsonProperty("node_uuid")
private String nodeUuid;
@JsonProperty("prev_controller_ip")
private String prevControllerIp;
@JsonProperty("prev_metrics_mgr_port")
private String prevMetricsMgrPort = "METRICS_MGR_PORT_0";
@JsonProperty("static_mapping")
private Boolean staticMapping = false;
@JsonProperty("tenant_ref")
private String tenantRef;
@JsonProperty("url")
private String url = "url";
@JsonProperty("uuid")
private String uuid;
@JsonProperty("vs_uuid")
private String vsUuid;
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return controllerIp
*/
public String getControllerIp() {
return controllerIp;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param controllerIp set the controllerIp.
*/
public void setControllerIp(String controllerIp) {
this.controllerIp = controllerIp;
}
/**
* This is the getter method this will return the attribute value.
* Enum options - METRICS_MGR_PORT_0, METRICS_MGR_PORT_1, METRICS_MGR_PORT_2, METRICS_MGR_PORT_3.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "METRICS_MGR_PORT_0".
* @return metricsMgrPort
*/
public String getMetricsMgrPort() {
return metricsMgrPort;
}
/**
* This is the setter method to the attribute.
* Enum options - METRICS_MGR_PORT_0, METRICS_MGR_PORT_1, METRICS_MGR_PORT_2, METRICS_MGR_PORT_3.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "METRICS_MGR_PORT_0".
* @param metricsMgrPort set the metricsMgrPort.
*/
public void setMetricsMgrPort(String metricsMgrPort) {
this.metricsMgrPort = metricsMgrPort;
}
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return nodeUuid
*/
public String getNodeUuid() {
return nodeUuid;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param nodeUuid set the nodeUuid.
*/
public void setNodeUuid(String nodeUuid) {
this.nodeUuid = nodeUuid;
}
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return prevControllerIp
*/
public String getPrevControllerIp() {
return prevControllerIp;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param prevControllerIp set the prevControllerIp.
*/
public void setPrevControllerIp(String prevControllerIp) {
this.prevControllerIp = prevControllerIp;
}
/**
* This is the getter method this will return the attribute value.
* Enum options - METRICS_MGR_PORT_0, METRICS_MGR_PORT_1, METRICS_MGR_PORT_2, METRICS_MGR_PORT_3.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "METRICS_MGR_PORT_0".
* @return prevMetricsMgrPort
*/
public String getPrevMetricsMgrPort() {
return prevMetricsMgrPort;
}
/**
* This is the setter method to the attribute.
* Enum options - METRICS_MGR_PORT_0, METRICS_MGR_PORT_1, METRICS_MGR_PORT_2, METRICS_MGR_PORT_3.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "METRICS_MGR_PORT_0".
* @param prevMetricsMgrPort set the prevMetricsMgrPort.
*/
public void setPrevMetricsMgrPort(String prevMetricsMgrPort) {
this.prevMetricsMgrPort = prevMetricsMgrPort;
}
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @return staticMapping
*/
public Boolean getStaticMapping() {
return staticMapping;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @param staticMapping set the staticMapping.
*/
public void setStaticMapping(Boolean staticMapping) {
this.staticMapping = staticMapping;
}
/**
* This is the getter method this will return the attribute value.
* It is a reference to an object of type tenant.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return tenantRef
*/
public String getTenantRef() {
return tenantRef;
}
/**
* This is the setter method to the attribute.
* It is a reference to an object of type tenant.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param tenantRef set the tenantRef.
*/
public void setTenantRef(String tenantRef) {
this.tenantRef = tenantRef;
}
/**
* This is the getter method this will return the attribute value.
* Avi controller URL of the object.
* @return url
*/
public String getUrl() {
return url;
}
/**
* This is the setter method. this will set the url
* Avi controller URL of the object.
* @return url
*/
public void setUrl(String url) {
this.url = url;
}
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return uuid
*/
public String getUuid() {
return uuid;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param uuid set the uuid.
*/
public void setUuid(String uuid) {
this.uuid = uuid;
}
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return vsUuid
*/
public String getVsUuid() {
return vsUuid;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param vsUuid set the vsUuid.
*/
public void setVsUuid(String vsUuid) {
this.vsUuid = vsUuid;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LogControllerMapping objLogControllerMapping = (LogControllerMapping) o;
return Objects.equals(this.uuid, objLogControllerMapping.uuid)&&
Objects.equals(this.vsUuid, objLogControllerMapping.vsUuid)&&
Objects.equals(this.controllerIp, objLogControllerMapping.controllerIp)&&
Objects.equals(this.prevControllerIp, objLogControllerMapping.prevControllerIp)&&
Objects.equals(this.metricsMgrPort, objLogControllerMapping.metricsMgrPort)&&
Objects.equals(this.prevMetricsMgrPort, objLogControllerMapping.prevMetricsMgrPort)&&
Objects.equals(this.staticMapping, objLogControllerMapping.staticMapping)&&
Objects.equals(this.nodeUuid, objLogControllerMapping.nodeUuid)&&
Objects.equals(this.tenantRef, objLogControllerMapping.tenantRef);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LogControllerMapping {\n");
sb.append(" controllerIp: ").append(toIndentedString(controllerIp)).append("\n");
sb.append(" metricsMgrPort: ").append(toIndentedString(metricsMgrPort)).append("\n");
sb.append(" nodeUuid: ").append(toIndentedString(nodeUuid)).append("\n");
sb.append(" prevControllerIp: ").append(toIndentedString(prevControllerIp)).append("\n");
sb.append(" prevMetricsMgrPort: ").append(toIndentedString(prevMetricsMgrPort)).append("\n");
sb.append(" staticMapping: ").append(toIndentedString(staticMapping)).append("\n");
sb.append(" tenantRef: ").append(toIndentedString(tenantRef)).append("\n");
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
sb.append(" vsUuid: ").append(toIndentedString(vsUuid)).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