
com.vmware.avi.sdk.model.HealthMonitorHttp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avisdk Show documentation
Show all versions of avisdk Show documentation
Avi SDK is a java API which creates a session with controller and perform CRUD operations.
/*
* 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 HealthMonitorHttp is a POJO class extends AviRestResource that used for creating
* HealthMonitorHttp.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class HealthMonitorHttp {
@JsonProperty("auth_type")
private String authType;
@JsonProperty("exact_http_request")
private Boolean exactHttpRequest = false;
@JsonProperty("http_request")
private String httpRequest = "GET / HTTP/1.0";
@JsonProperty("http_request_body")
private String httpRequestBody;
@JsonProperty("http_response")
private String httpResponse;
@JsonProperty("http_response_code")
private List httpResponseCode;
@JsonProperty("maintenance_code")
private List maintenanceCode;
@JsonProperty("maintenance_response")
private String maintenanceResponse;
@JsonProperty("response_size")
private Integer responseSize;
@JsonProperty("ssl_attributes")
private HealthMonitorSSLAttributes sslAttributes;
/**
* This is the getter method this will return the attribute value.
* Type of the authentication method.
* Enum options - AUTH_BASIC, AUTH_NTLM.
* Field introduced in 20.1.1.
* 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 authType
*/
public String getAuthType() {
return authType;
}
/**
* This is the setter method to the attribute.
* Type of the authentication method.
* Enum options - AUTH_BASIC, AUTH_NTLM.
* Field introduced in 20.1.1.
* 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 authType set the authType.
*/
public void setAuthType(String authType) {
this.authType = authType;
}
/**
* This is the getter method this will return the attribute value.
* Use the exact http_request string as specified by user, without any automatic insert of headers like host header.
* Field introduced in 17.1.6,17.2.2.
* 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 exactHttpRequest
*/
public Boolean getExactHttpRequest() {
return exactHttpRequest;
}
/**
* This is the setter method to the attribute.
* Use the exact http_request string as specified by user, without any automatic insert of headers like host header.
* Field introduced in 17.1.6,17.2.2.
* 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 exactHttpRequest set the exactHttpRequest.
*/
public void setExactHttpRequest(Boolean exactHttpRequest) {
this.exactHttpRequest = exactHttpRequest;
}
/**
* This is the getter method this will return the attribute value.
* Send an http request to the server.
* The default get / http/1.0 may be extended with additional headers or information.
* For instance, get /index.htm http/1.1 host www.site.com connection close.
* 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 "GET / HTTP/1.0".
* @return httpRequest
*/
public String getHttpRequest() {
return httpRequest;
}
/**
* This is the setter method to the attribute.
* Send an http request to the server.
* The default get / http/1.0 may be extended with additional headers or information.
* For instance, get /index.htm http/1.1 host www.site.com connection close.
* 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 "GET / HTTP/1.0".
* @param httpRequest set the httpRequest.
*/
public void setHttpRequest(String httpRequest) {
this.httpRequest = httpRequest;
}
/**
* This is the getter method this will return the attribute value.
* Http request body.
* Field introduced in 20.1.1.
* 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 httpRequestBody
*/
public String getHttpRequestBody() {
return httpRequestBody;
}
/**
* This is the setter method to the attribute.
* Http request body.
* Field introduced in 20.1.1.
* 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 httpRequestBody set the httpRequestBody.
*/
public void setHttpRequestBody(String httpRequestBody) {
this.httpRequestBody = httpRequestBody;
}
/**
* This is the getter method this will return the attribute value.
* Match for a keyword in the first 2kb of the server header and body response.
* 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 httpResponse
*/
public String getHttpResponse() {
return httpResponse;
}
/**
* This is the setter method to the attribute.
* Match for a keyword in the first 2kb of the server header and body response.
* 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 httpResponse set the httpResponse.
*/
public void setHttpResponse(String httpResponse) {
this.httpResponse = httpResponse;
}
/**
* This is the getter method this will return the attribute value.
* List of http response codes to match as successful.
* Default is 2xx.
* Enum options - HTTP_ANY, HTTP_1XX, HTTP_2XX, HTTP_3XX, HTTP_4XX, HTTP_5XX.
* Minimum of 1 items required.
* 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 httpResponseCode
*/
public List getHttpResponseCode() {
return httpResponseCode;
}
/**
* This is the setter method. this will set the httpResponseCode
* List of http response codes to match as successful.
* Default is 2xx.
* Enum options - HTTP_ANY, HTTP_1XX, HTTP_2XX, HTTP_3XX, HTTP_4XX, HTTP_5XX.
* Minimum of 1 items required.
* 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 httpResponseCode
*/
public void setHttpResponseCode(List httpResponseCode) {
this.httpResponseCode = httpResponseCode;
}
/**
* This is the setter method this will set the httpResponseCode
* List of http response codes to match as successful.
* Default is 2xx.
* Enum options - HTTP_ANY, HTTP_1XX, HTTP_2XX, HTTP_3XX, HTTP_4XX, HTTP_5XX.
* Minimum of 1 items required.
* 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 httpResponseCode
*/
public HealthMonitorHttp addHttpResponseCodeItem(String httpResponseCodeItem) {
if (this.httpResponseCode == null) {
this.httpResponseCode = new ArrayList();
}
this.httpResponseCode.add(httpResponseCodeItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Match or look for this http response code indicating server maintenance.
* A successful match results in the server being marked down.
* Allowed values are 101-599.
* Maximum of 4 items allowed.
* 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 maintenanceCode
*/
public List getMaintenanceCode() {
return maintenanceCode;
}
/**
* This is the setter method. this will set the maintenanceCode
* Match or look for this http response code indicating server maintenance.
* A successful match results in the server being marked down.
* Allowed values are 101-599.
* Maximum of 4 items allowed.
* 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 maintenanceCode
*/
public void setMaintenanceCode(List maintenanceCode) {
this.maintenanceCode = maintenanceCode;
}
/**
* This is the setter method this will set the maintenanceCode
* Match or look for this http response code indicating server maintenance.
* A successful match results in the server being marked down.
* Allowed values are 101-599.
* Maximum of 4 items allowed.
* 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 maintenanceCode
*/
public HealthMonitorHttp addMaintenanceCodeItem(Integer maintenanceCodeItem) {
if (this.maintenanceCode == null) {
this.maintenanceCode = new ArrayList();
}
this.maintenanceCode.add(maintenanceCodeItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Match or look for this keyword in the first 2kb of server header and body response indicating server maintenance.
* A successful match results in the server being marked down.
* 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 maintenanceResponse
*/
public String getMaintenanceResponse() {
return maintenanceResponse;
}
/**
* This is the setter method to the attribute.
* Match or look for this keyword in the first 2kb of server header and body response indicating server maintenance.
* A successful match results in the server being marked down.
* 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 maintenanceResponse set the maintenanceResponse.
*/
public void setMaintenanceResponse(String maintenanceResponse) {
this.maintenanceResponse = maintenanceResponse;
}
/**
* This is the getter method this will return the attribute value.
* Expected http/https response page size.
* Allowed values are 2048-16384.
* Field introduced in 20.1.1.
* 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 responseSize
*/
public Integer getResponseSize() {
return responseSize;
}
/**
* This is the setter method to the attribute.
* Expected http/https response page size.
* Allowed values are 2048-16384.
* Field introduced in 20.1.1.
* 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 responseSize set the responseSize.
*/
public void setResponseSize(Integer responseSize) {
this.responseSize = responseSize;
}
/**
* This is the getter method this will return the attribute value.
* Ssl attributes for https health monitor.
* Field introduced in 17.1.1.
* 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 sslAttributes
*/
public HealthMonitorSSLAttributes getSslAttributes() {
return sslAttributes;
}
/**
* This is the setter method to the attribute.
* Ssl attributes for https health monitor.
* Field introduced in 17.1.1.
* 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 sslAttributes set the sslAttributes.
*/
public void setSslAttributes(HealthMonitorSSLAttributes sslAttributes) {
this.sslAttributes = sslAttributes;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
HealthMonitorHttp objHealthMonitorHttp = (HealthMonitorHttp) o;
return Objects.equals(this.httpRequest, objHealthMonitorHttp.httpRequest)&&
Objects.equals(this.httpResponseCode, objHealthMonitorHttp.httpResponseCode)&&
Objects.equals(this.httpResponse, objHealthMonitorHttp.httpResponse)&&
Objects.equals(this.maintenanceCode, objHealthMonitorHttp.maintenanceCode)&&
Objects.equals(this.maintenanceResponse, objHealthMonitorHttp.maintenanceResponse)&&
Objects.equals(this.sslAttributes, objHealthMonitorHttp.sslAttributes)&&
Objects.equals(this.exactHttpRequest, objHealthMonitorHttp.exactHttpRequest)&&
Objects.equals(this.authType, objHealthMonitorHttp.authType)&&
Objects.equals(this.httpRequestBody, objHealthMonitorHttp.httpRequestBody)&&
Objects.equals(this.responseSize, objHealthMonitorHttp.responseSize);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HealthMonitorHttp {\n");
sb.append(" authType: ").append(toIndentedString(authType)).append("\n");
sb.append(" exactHttpRequest: ").append(toIndentedString(exactHttpRequest)).append("\n");
sb.append(" httpRequest: ").append(toIndentedString(httpRequest)).append("\n");
sb.append(" httpRequestBody: ").append(toIndentedString(httpRequestBody)).append("\n");
sb.append(" httpResponse: ").append(toIndentedString(httpResponse)).append("\n");
sb.append(" httpResponseCode: ").append(toIndentedString(httpResponseCode)).append("\n");
sb.append(" maintenanceCode: ").append(toIndentedString(maintenanceCode)).append("\n");
sb.append(" maintenanceResponse: ").append(toIndentedString(maintenanceResponse)).append("\n");
sb.append(" responseSize: ").append(toIndentedString(responseSize)).append("\n");
sb.append(" sslAttributes: ").append(toIndentedString(sslAttributes)).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