com.vmware.avi.sdk.model.DosAttackEventDetails 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 DosAttackEventDetails is a POJO class extends AviRestResource that used for creating
* DosAttackEventDetails.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DosAttackEventDetails {
@JsonProperty("attack")
private String attack;
@JsonProperty("attack_count")
private Float attackCount;
@JsonProperty("ipgroup_uuids")
private List ipgroupUuids;
@JsonProperty("meta_data")
private List metaData;
@JsonProperty("src_ips")
private List srcIps;
@JsonProperty("urls")
private List urls;
/**
* This is the getter method this will return the attribute value.
* Enum options - LAND, SMURF, ICMP_PING_FLOOD, UNKOWN_PROTOCOL, TEARDROP, IP_FRAG_OVERRUN, IP_FRAG_TOOSMALL, IP_FRAG_FULL, IP_FRAG_INCOMPLETE,
* PORT_SCAN, TCP_NON_SYN_FLOOD_OLD, SYN_FLOOD, BAD_RST_FLOOD, MALFORMED_FLOOD, FAKE_SESSION, ZERO_WINDOW_STRESS, SMALL_WINDOW_STRESS,
* DOS_HTTP_TIMEOUT, DOS_HTTP_ERROR, DOS_HTTP_ABORT...
* 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 attack
*/
public String getAttack() {
return attack;
}
/**
* This is the setter method to the attribute.
* Enum options - LAND, SMURF, ICMP_PING_FLOOD, UNKOWN_PROTOCOL, TEARDROP, IP_FRAG_OVERRUN, IP_FRAG_TOOSMALL, IP_FRAG_FULL, IP_FRAG_INCOMPLETE,
* PORT_SCAN, TCP_NON_SYN_FLOOD_OLD, SYN_FLOOD, BAD_RST_FLOOD, MALFORMED_FLOOD, FAKE_SESSION, ZERO_WINDOW_STRESS, SMALL_WINDOW_STRESS,
* DOS_HTTP_TIMEOUT, DOS_HTTP_ERROR, DOS_HTTP_ABORT...
* 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 attack set the attack.
*/
public void setAttack(String attack) {
this.attack = attack;
}
/**
* 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 attackCount
*/
public Float getAttackCount() {
return attackCount;
}
/**
* 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 attackCount set the attackCount.
*/
public void setAttackCount(Float attackCount) {
this.attackCount = attackCount;
}
/**
* 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 ipgroupUuids
*/
public List getIpgroupUuids() {
return ipgroupUuids;
}
/**
* This is the setter method. this will set the ipgroupUuids
* 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 ipgroupUuids
*/
public void setIpgroupUuids(List ipgroupUuids) {
this.ipgroupUuids = ipgroupUuids;
}
/**
* This is the setter method this will set the ipgroupUuids
* 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 ipgroupUuids
*/
public DosAttackEventDetails addIpgroupUuidsItem(String ipgroupUuidsItem) {
if (this.ipgroupUuids == null) {
this.ipgroupUuids = new ArrayList();
}
this.ipgroupUuids.add(ipgroupUuidsItem);
return this;
}
/**
* 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 metaData
*/
public List getMetaData() {
return metaData;
}
/**
* This is the setter method. this will set the metaData
* 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 metaData
*/
public void setMetaData(List metaData) {
this.metaData = metaData;
}
/**
* This is the setter method this will set the metaData
* 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 metaData
*/
public DosAttackEventDetails addMetaDataItem(AttackMetaData metaDataItem) {
if (this.metaData == null) {
this.metaData = new ArrayList();
}
this.metaData.add(metaDataItem);
return this;
}
/**
* 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 srcIps
*/
public List getSrcIps() {
return srcIps;
}
/**
* This is the setter method. this will set the srcIps
* 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 srcIps
*/
public void setSrcIps(List srcIps) {
this.srcIps = srcIps;
}
/**
* This is the setter method this will set the srcIps
* 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 srcIps
*/
public DosAttackEventDetails addSrcIpsItem(String srcIpsItem) {
if (this.srcIps == null) {
this.srcIps = new ArrayList();
}
this.srcIps.add(srcIpsItem);
return this;
}
/**
* 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 urls
*/
public List getUrls() {
return urls;
}
/**
* This is the setter method. this will set the urls
* 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 urls
*/
public void setUrls(List urls) {
this.urls = urls;
}
/**
* This is the setter method this will set the urls
* 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 urls
*/
public DosAttackEventDetails addUrlsItem(String urlsItem) {
if (this.urls == null) {
this.urls = new ArrayList();
}
this.urls.add(urlsItem);
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DosAttackEventDetails objDosAttackEventDetails = (DosAttackEventDetails) o;
return Objects.equals(this.attackCount, objDosAttackEventDetails.attackCount)&&
Objects.equals(this.attack, objDosAttackEventDetails.attack)&&
Objects.equals(this.srcIps, objDosAttackEventDetails.srcIps)&&
Objects.equals(this.urls, objDosAttackEventDetails.urls)&&
Objects.equals(this.ipgroupUuids, objDosAttackEventDetails.ipgroupUuids)&&
Objects.equals(this.metaData, objDosAttackEventDetails.metaData);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DosAttackEventDetails {\n");
sb.append(" attack: ").append(toIndentedString(attack)).append("\n");
sb.append(" attackCount: ").append(toIndentedString(attackCount)).append("\n");
sb.append(" ipgroupUuids: ").append(toIndentedString(ipgroupUuids)).append("\n");
sb.append(" metaData: ").append(toIndentedString(metaData)).append("\n");
sb.append(" srcIps: ").append(toIndentedString(srcIps)).append("\n");
sb.append(" urls: ").append(toIndentedString(urls)).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