com.softlayer.api.service.container.network.intrusionprotection.Statistics 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;
import com.softlayer.api.service.container.network.intrusionprotection.Statistic;
import java.util.ArrayList;
import java.util.List;
/**
* The IntrusionProtection_Statistics Type is used as a container for SoftLayer_Container_Network_IntrusionProtection_Statistic objects. The SoftLayer_Container_Network_IntrusionProtection_Statistics class holds the "header" information, like the item being queried (either account or data center), the time frame, and the grand total of the attacks.
*
* @see SoftLayer_Container_Network_IntrusionProtection_Statistics
*/
@ApiType("SoftLayer_Container_Network_IntrusionProtection_Statistics")
public class Statistics extends Entity {
/**
* The actual target, either a datacenter name, an account ID, or a subnet IP
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String target;
public String getTarget() {
return target;
}
public void setTarget(String target) {
targetSpecified = true;
this.target = target;
}
protected boolean targetSpecified;
public boolean isTargetSpecified() {
return targetSpecified;
}
public void unsetTarget() {
target = null;
targetSpecified = false;
}
/**
* The type of the target, right now either "datacenter", "account", or "subnet"
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String targetType;
public String getTargetType() {
return targetType;
}
public void setTargetType(String targetType) {
targetTypeSpecified = true;
this.targetType = targetType;
}
protected boolean targetTypeSpecified;
public boolean isTargetTypeSpecified() {
return targetTypeSpecified;
}
public void unsetTargetType() {
targetType = null;
targetTypeSpecified = false;
}
/**
* The time frame of the attack, in string form, like "Last 24 hours"
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String timeFrame;
public String getTimeFrame() {
return timeFrame;
}
public void setTimeFrame(String timeFrame) {
timeFrameSpecified = true;
this.timeFrame = timeFrame;
}
protected boolean timeFrameSpecified;
public boolean isTimeFrameSpecified() {
return timeFrameSpecified;
}
public void unsetTimeFrame() {
timeFrame = null;
timeFrameSpecified = false;
}
/**
* The top attacks for this target over this time frame
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List topAttacks;
public List getTopAttacks() {
if (topAttacks == null) {
topAttacks = new ArrayList();
}
return topAttacks;
}
protected boolean topAttacksSpecified;
public boolean isTopAttacksSpecified() {
return topAttacksSpecified;
}
public void unsetTopAttacks() {
topAttacks = null;
topAttacksSpecified = false;
}
/**
* Total attacks for this $target over this time frame
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long totalAttacks;
public Long getTotalAttacks() {
return totalAttacks;
}
public void setTotalAttacks(Long totalAttacks) {
totalAttacksSpecified = true;
this.totalAttacks = totalAttacks;
}
protected boolean totalAttacksSpecified;
public boolean isTotalAttacksSpecified() {
return totalAttacksSpecified;
}
public void unsetTotalAttacks() {
totalAttacks = null;
totalAttacksSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask target() {
withLocalProperty("target");
return this;
}
public Mask targetType() {
withLocalProperty("targetType");
return this;
}
public Mask timeFrame() {
withLocalProperty("timeFrame");
return this;
}
public Statistic.Mask topAttacks() {
return withSubMask("topAttacks", Statistic.Mask.class);
}
public Mask totalAttacks() {
withLocalProperty("totalAttacks");
return this;
}
}
}