public class AssetAttributes
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A collection of attributes of the host from which the finding is generated.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
agentId
The ID of the agent that is installed on the EC2 instance where the
finding is generated.
|
private java.lang.String |
amiId
The ID of the Amazon Machine Image (AMI) that is installed on the EC2
instance where the finding is generated.
|
private java.lang.String |
autoScalingGroup
The Auto Scaling group of the EC2 instance where the finding is
generated.
|
private java.lang.String |
hostname
The hostname of the EC2 instance where the finding is generated.
|
private java.util.List<java.lang.String> |
ipv4Addresses
The list of IP v4 addresses of the EC2 instance where the finding is
generated.
|
private java.lang.Integer |
schemaVersion
The schema version of this data type.
|
Constructor and Description |
---|
AssetAttributes() |
Modifier and Type | Method and Description |
---|---|
AssetAttributes |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAgentId()
The ID of the agent that is installed on the EC2 instance where the
finding is generated.
|
java.lang.String |
getAmiId()
The ID of the Amazon Machine Image (AMI) that is installed on the EC2
instance where the finding is generated.
|
java.lang.String |
getAutoScalingGroup()
The Auto Scaling group of the EC2 instance where the finding is
generated.
|
java.lang.String |
getHostname()
The hostname of the EC2 instance where the finding is generated.
|
java.util.List<java.lang.String> |
getIpv4Addresses()
The list of IP v4 addresses of the EC2 instance where the finding is
generated.
|
java.lang.Integer |
getSchemaVersion()
The schema version of this data type.
|
int |
hashCode() |
void |
setAgentId(java.lang.String agentId)
The ID of the agent that is installed on the EC2 instance where the
finding is generated.
|
void |
setAmiId(java.lang.String amiId)
The ID of the Amazon Machine Image (AMI) that is installed on the EC2
instance where the finding is generated.
|
void |
setAutoScalingGroup(java.lang.String autoScalingGroup)
The Auto Scaling group of the EC2 instance where the finding is
generated.
|
void |
setHostname(java.lang.String hostname)
The hostname of the EC2 instance where the finding is generated.
|
void |
setIpv4Addresses(java.util.Collection<java.lang.String> ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is
generated.
|
void |
setSchemaVersion(java.lang.Integer schemaVersion)
The schema version of this data type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AssetAttributes |
withAgentId(java.lang.String agentId)
The ID of the agent that is installed on the EC2 instance where the
finding is generated.
|
AssetAttributes |
withAmiId(java.lang.String amiId)
The ID of the Amazon Machine Image (AMI) that is installed on the EC2
instance where the finding is generated.
|
AssetAttributes |
withAutoScalingGroup(java.lang.String autoScalingGroup)
The Auto Scaling group of the EC2 instance where the finding is
generated.
|
AssetAttributes |
withHostname(java.lang.String hostname)
The hostname of the EC2 instance where the finding is generated.
|
AssetAttributes |
withIpv4Addresses(java.util.Collection<java.lang.String> ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is
generated.
|
AssetAttributes |
withIpv4Addresses(java.lang.String... ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is
generated.
|
AssetAttributes |
withSchemaVersion(java.lang.Integer schemaVersion)
The schema version of this data type.
|
private java.lang.Integer schemaVersion
The schema version of this data type.
private java.lang.String agentId
The ID of the agent that is installed on the EC2 instance where the finding is generated.
private java.lang.String autoScalingGroup
The Auto Scaling group of the EC2 instance where the finding is generated.
private java.lang.String amiId
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
private java.lang.String hostname
The hostname of the EC2 instance where the finding is generated.
private java.util.List<java.lang.String> ipv4Addresses
The list of IP v4 addresses of the EC2 instance where the finding is generated.
public void setSchemaVersion(java.lang.Integer schemaVersion)
The schema version of this data type.
schemaVersion
- The schema version of this data type.public java.lang.Integer getSchemaVersion()
The schema version of this data type.
public AssetAttributes withSchemaVersion(java.lang.Integer schemaVersion)
The schema version of this data type.
schemaVersion
- The schema version of this data type.public void setAgentId(java.lang.String agentId)
The ID of the agent that is installed on the EC2 instance where the finding is generated.
agentId
- The ID of the agent that is installed on the EC2 instance where
the finding is generated.public java.lang.String getAgentId()
The ID of the agent that is installed on the EC2 instance where the finding is generated.
public AssetAttributes withAgentId(java.lang.String agentId)
The ID of the agent that is installed on the EC2 instance where the finding is generated.
agentId
- The ID of the agent that is installed on the EC2 instance where
the finding is generated.public void setAutoScalingGroup(java.lang.String autoScalingGroup)
The Auto Scaling group of the EC2 instance where the finding is generated.
autoScalingGroup
- The Auto Scaling group of the EC2 instance where the finding is
generated.public java.lang.String getAutoScalingGroup()
The Auto Scaling group of the EC2 instance where the finding is generated.
public AssetAttributes withAutoScalingGroup(java.lang.String autoScalingGroup)
The Auto Scaling group of the EC2 instance where the finding is generated.
autoScalingGroup
- The Auto Scaling group of the EC2 instance where the finding is
generated.public void setAmiId(java.lang.String amiId)
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
amiId
- The ID of the Amazon Machine Image (AMI) that is installed on the
EC2 instance where the finding is generated.public java.lang.String getAmiId()
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
public AssetAttributes withAmiId(java.lang.String amiId)
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
amiId
- The ID of the Amazon Machine Image (AMI) that is installed on the
EC2 instance where the finding is generated.public void setHostname(java.lang.String hostname)
The hostname of the EC2 instance where the finding is generated.
hostname
- The hostname of the EC2 instance where the finding is generated.public java.lang.String getHostname()
The hostname of the EC2 instance where the finding is generated.
public AssetAttributes withHostname(java.lang.String hostname)
The hostname of the EC2 instance where the finding is generated.
hostname
- The hostname of the EC2 instance where the finding is generated.public java.util.List<java.lang.String> getIpv4Addresses()
The list of IP v4 addresses of the EC2 instance where the finding is generated.
public void setIpv4Addresses(java.util.Collection<java.lang.String> ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.
ipv4Addresses
- The list of IP v4 addresses of the EC2 instance where the finding
is generated.public AssetAttributes withIpv4Addresses(java.lang.String... ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.
NOTE: This method appends the values to the existing list (if
any). Use setIpv4Addresses(java.util.Collection)
or
withIpv4Addresses(java.util.Collection)
if you want to override
the existing values.
ipv4Addresses
- The list of IP v4 addresses of the EC2 instance where the finding
is generated.public AssetAttributes withIpv4Addresses(java.util.Collection<java.lang.String> ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.
ipv4Addresses
- The list of IP v4 addresses of the EC2 instance where the finding
is generated.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AssetAttributes clone()
clone
in class java.lang.Object