com.softlayer.api.service.container.network.intrusionprotection.Statistic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.container.network.intrusionprotection;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
/**
* The IntrusionProtection_Statistic is used exclusively by the getMainStatistics method on the TippingPointReporting service, and serves mainly as a pair object, storing a name and an attack count. Name is usually the name of an attack, but it can also be an attacking IP Address
*
* @see SoftLayer_Container_Network_IntrusionProtection_Statistic
*/
@ApiType("SoftLayer_Container_Network_IntrusionProtection_Statistic")
public class Statistic extends Entity {
/**
* The number of attacks effecting this name over the time period
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long attackCount;
public Long getAttackCount() {
return attackCount;
}
public void setAttackCount(Long attackCount) {
attackCountSpecified = true;
this.attackCount = attackCount;
}
protected boolean attackCountSpecified;
public boolean isAttackCountSpecified() {
return attackCountSpecified;
}
public void unsetAttackCount() {
attackCount = null;
attackCountSpecified = false;
}
/**
* Either the name of the attack in question, or the attacking IP Address
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String name;
public String getName() {
return name;
}
public void setName(String name) {
nameSpecified = true;
this.name = name;
}
protected boolean nameSpecified;
public boolean isNameSpecified() {
return nameSpecified;
}
public void unsetName() {
name = null;
nameSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask attackCount() {
withLocalProperty("attackCount");
return this;
}
public Mask name() {
withLocalProperty("name");
return this;
}
}
}