@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DnsRequestAction extends Object implements Serializable, Cloneable, StructuredPojo
Provided if ActionType is DNS_REQUEST. It provides details about the DNS request that was
detected.
| Constructor and Description |
|---|
DnsRequestAction() |
| Modifier and Type | Method and Description |
|---|---|
DnsRequestAction |
clone() |
boolean |
equals(Object obj) |
Boolean |
getBlocked()
Indicates whether the DNS request was blocked.
|
String |
getDomain()
The DNS domain that is associated with the DNS request.
|
String |
getProtocol()
The protocol that was used for the DNS request.
|
int |
hashCode() |
Boolean |
isBlocked()
Indicates whether the DNS request was blocked.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBlocked(Boolean blocked)
Indicates whether the DNS request was blocked.
|
void |
setDomain(String domain)
The DNS domain that is associated with the DNS request.
|
void |
setProtocol(String protocol)
The protocol that was used for the DNS request.
|
String |
toString()
Returns a string representation of this object.
|
DnsRequestAction |
withBlocked(Boolean blocked)
Indicates whether the DNS request was blocked.
|
DnsRequestAction |
withDomain(String domain)
The DNS domain that is associated with the DNS request.
|
DnsRequestAction |
withProtocol(String protocol)
The protocol that was used for the DNS request.
|
public void setDomain(String domain)
The DNS domain that is associated with the DNS request.
Length Constraints: 128.
domain - The DNS domain that is associated with the DNS request.
Length Constraints: 128.
public String getDomain()
The DNS domain that is associated with the DNS request.
Length Constraints: 128.
Length Constraints: 128.
public DnsRequestAction withDomain(String domain)
The DNS domain that is associated with the DNS request.
Length Constraints: 128.
domain - The DNS domain that is associated with the DNS request.
Length Constraints: 128.
public void setProtocol(String protocol)
The protocol that was used for the DNS request.
Length Constraints: Minimum length of 1. Maximum length of 64.
protocol - The protocol that was used for the DNS request.
Length Constraints: Minimum length of 1. Maximum length of 64.
public String getProtocol()
The protocol that was used for the DNS request.
Length Constraints: Minimum length of 1. Maximum length of 64.
Length Constraints: Minimum length of 1. Maximum length of 64.
public DnsRequestAction withProtocol(String protocol)
The protocol that was used for the DNS request.
Length Constraints: Minimum length of 1. Maximum length of 64.
protocol - The protocol that was used for the DNS request.
Length Constraints: Minimum length of 1. Maximum length of 64.
public void setBlocked(Boolean blocked)
Indicates whether the DNS request was blocked.
blocked - Indicates whether the DNS request was blocked.public Boolean getBlocked()
Indicates whether the DNS request was blocked.
public DnsRequestAction withBlocked(Boolean blocked)
Indicates whether the DNS request was blocked.
blocked - Indicates whether the DNS request was blocked.public Boolean isBlocked()
Indicates whether the DNS request was blocked.
public String toString()
toString in class ObjectObject.toString()public DnsRequestAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.