@Generated(value="software.amazon.awssdk:codegen") public final class AttackProperty extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AttackProperty.Builder,AttackProperty>
Details of the described attack.
Modifier and Type | Class and Description |
---|---|
static interface |
AttackProperty.Builder |
Modifier and Type | Method and Description |
---|---|
AttackLayer |
attackLayer()
The type of distributed denial of service (DDoS) event that was observed.
|
String |
attackLayerAsString()
The type of distributed denial of service (DDoS) event that was observed.
|
AttackPropertyIdentifier |
attackPropertyIdentifier()
Defines the DDoS attack property information that is provided.
|
String |
attackPropertyIdentifierAsString()
Defines the DDoS attack property information that is provided.
|
static AttackProperty.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTopContributors()
Returns true if the TopContributors property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AttackProperty.Builder> |
serializableBuilderClass() |
AttackProperty.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
List<Contributor> |
topContributors()
The array of contributor objects that includes the top five contributors to an attack.
|
String |
toString()
Returns a string representation of this object.
|
Long |
total()
The total contributions made to this attack by all contributors, not just the five listed in the
TopContributors list. |
Unit |
unit()
The unit of the
Value of the contributions. |
String |
unitAsString()
The unit of the
Value of the contributions. |
copy
public final AttackLayer attackLayer()
The type of distributed denial of service (DDoS) event that was observed. NETWORK
indicates layer 3
and layer 4 events and APPLICATION
indicates layer 7 events.
If the service returns an enum value that is not available in the current SDK version, attackLayer
will
return AttackLayer.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
attackLayerAsString()
.
NETWORK
indicates
layer 3 and layer 4 events and APPLICATION
indicates layer 7 events.AttackLayer
public final String attackLayerAsString()
The type of distributed denial of service (DDoS) event that was observed. NETWORK
indicates layer 3
and layer 4 events and APPLICATION
indicates layer 7 events.
If the service returns an enum value that is not available in the current SDK version, attackLayer
will
return AttackLayer.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
attackLayerAsString()
.
NETWORK
indicates
layer 3 and layer 4 events and APPLICATION
indicates layer 7 events.AttackLayer
public final AttackPropertyIdentifier attackPropertyIdentifier()
Defines the DDoS attack property information that is provided. The WORDPRESS_PINGBACK_REFLECTOR
and
WORDPRESS_PINGBACK_SOURCE
values are valid only for WordPress reflective pingback DDoS attacks.
If the service returns an enum value that is not available in the current SDK version,
attackPropertyIdentifier
will return AttackPropertyIdentifier.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from attackPropertyIdentifierAsString()
.
WORDPRESS_PINGBACK_REFLECTOR
and WORDPRESS_PINGBACK_SOURCE
values are valid
only for WordPress reflective pingback DDoS attacks.AttackPropertyIdentifier
public final String attackPropertyIdentifierAsString()
Defines the DDoS attack property information that is provided. The WORDPRESS_PINGBACK_REFLECTOR
and
WORDPRESS_PINGBACK_SOURCE
values are valid only for WordPress reflective pingback DDoS attacks.
If the service returns an enum value that is not available in the current SDK version,
attackPropertyIdentifier
will return AttackPropertyIdentifier.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from attackPropertyIdentifierAsString()
.
WORDPRESS_PINGBACK_REFLECTOR
and WORDPRESS_PINGBACK_SOURCE
values are valid
only for WordPress reflective pingback DDoS attacks.AttackPropertyIdentifier
public final boolean hasTopContributors()
public final List<Contributor> topContributors()
The array of contributor objects that includes the top five contributors to an attack.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTopContributors()
to see if a value was sent in this field.
public final Unit unit()
The unit of the Value
of the contributions.
If the service returns an enum value that is not available in the current SDK version, unit
will return
Unit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
Value
of the contributions.Unit
public final String unitAsString()
The unit of the Value
of the contributions.
If the service returns an enum value that is not available in the current SDK version, unit
will return
Unit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
Value
of the contributions.Unit
public final Long total()
The total contributions made to this attack by all contributors, not just the five listed in the
TopContributors
list.
TopContributors
list.public AttackProperty.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AttackProperty.Builder,AttackProperty>
public static AttackProperty.Builder builder()
public static Class<? extends AttackProperty.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.