
com.vmware.avi.sdk.model.HdrMatch 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 HdrMatch is a POJO class extends AviRestResource that used for creating
* HdrMatch.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class HdrMatch {
@JsonProperty("hdr")
private String hdr;
@JsonProperty("match_case")
private String matchCase = "INSENSITIVE";
@JsonProperty("match_criteria")
private String matchCriteria;
@JsonProperty("value")
private List value;
/**
* This is the getter method this will return the attribute value.
* Name of the http header whose value is to be matched.
* 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 hdr
*/
public String getHdr() {
return hdr;
}
/**
* This is the setter method to the attribute.
* Name of the http header whose value is to be matched.
* 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 hdr set the hdr.
*/
public void setHdr(String hdr) {
this.hdr = hdr;
}
/**
* This is the getter method this will return the attribute value.
* Case sensitivity to use for the match.
* Enum options - SENSITIVE, INSENSITIVE.
* 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 "INSENSITIVE".
* @return matchCase
*/
public String getMatchCase() {
return matchCase;
}
/**
* This is the setter method to the attribute.
* Case sensitivity to use for the match.
* Enum options - SENSITIVE, INSENSITIVE.
* 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 "INSENSITIVE".
* @param matchCase set the matchCase.
*/
public void setMatchCase(String matchCase) {
this.matchCase = matchCase;
}
/**
* This is the getter method this will return the attribute value.
* Criterion to use for matching headers in the http request.
* Enum options - HDR_EXISTS, HDR_DOES_NOT_EXIST, HDR_BEGINS_WITH, HDR_DOES_NOT_BEGIN_WITH, HDR_CONTAINS, HDR_DOES_NOT_CONTAIN, HDR_ENDS_WITH,
* HDR_DOES_NOT_END_WITH, HDR_EQUALS, HDR_DOES_NOT_EQUAL.
* 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 matchCriteria
*/
public String getMatchCriteria() {
return matchCriteria;
}
/**
* This is the setter method to the attribute.
* Criterion to use for matching headers in the http request.
* Enum options - HDR_EXISTS, HDR_DOES_NOT_EXIST, HDR_BEGINS_WITH, HDR_DOES_NOT_BEGIN_WITH, HDR_CONTAINS, HDR_DOES_NOT_CONTAIN, HDR_ENDS_WITH,
* HDR_DOES_NOT_END_WITH, HDR_EQUALS, HDR_DOES_NOT_EQUAL.
* 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 matchCriteria set the matchCriteria.
*/
public void setMatchCriteria(String matchCriteria) {
this.matchCriteria = matchCriteria;
}
/**
* This is the getter method this will return the attribute value.
* String values to match in the http header.
* 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 value
*/
public List getValue() {
return value;
}
/**
* This is the setter method. this will set the value
* String values to match in the http header.
* 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 value
*/
public void setValue(List value) {
this.value = value;
}
/**
* This is the setter method this will set the value
* String values to match in the http header.
* 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 value
*/
public HdrMatch addValueItem(String valueItem) {
if (this.value == null) {
this.value = new ArrayList();
}
this.value.add(valueItem);
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
HdrMatch objHdrMatch = (HdrMatch) o;
return Objects.equals(this.matchCriteria, objHdrMatch.matchCriteria)&&
Objects.equals(this.hdr, objHdrMatch.hdr)&&
Objects.equals(this.matchCase, objHdrMatch.matchCase)&&
Objects.equals(this.value, objHdrMatch.value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HdrMatch {\n");
sb.append(" hdr: ").append(toIndentedString(hdr)).append("\n");
sb.append(" matchCase: ").append(toIndentedString(matchCase)).append("\n");
sb.append(" matchCriteria: ").append(toIndentedString(matchCriteria)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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