Class AssetAttributes
- java.lang.Object
-
- com.amazonaws.services.inspector.model.AssetAttributes
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AssetAttributes extends Object implements Serializable, Cloneable
A collection of attributes of the host from which the finding is generated.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetAttributes
clone()
boolean
equals(Object obj)
String
getAgentId()
The ID of the agent that is installed on the EC2 instance where the finding is generated.String
getAmiId()
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.String
getAutoScalingGroup()
The Auto Scaling group of the EC2 instance where the finding is generated.String
getHostname()
The hostname of the EC2 instance where the finding is generated.List<String>
getIpv4Addresses()
The list of IP v4 addresses of the EC2 instance where the finding is generated.Integer
getSchemaVersion()
The schema version of this data type.int
hashCode()
void
setAgentId(String agentId)
The ID of the agent that is installed on the EC2 instance where the finding is generated.void
setAmiId(String amiId)
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.void
setAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group of the EC2 instance where the finding is generated.void
setHostname(String hostname)
The hostname of the EC2 instance where the finding is generated.void
setIpv4Addresses(Collection<String> ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.void
setSchemaVersion(Integer schemaVersion)
The schema version of this data type.String
toString()
Returns a string representation of this object; useful for testing and debugging.AssetAttributes
withAgentId(String agentId)
The ID of the agent that is installed on the EC2 instance where the finding is generated.AssetAttributes
withAmiId(String amiId)
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.AssetAttributes
withAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group of the EC2 instance where the finding is generated.AssetAttributes
withHostname(String hostname)
The hostname of the EC2 instance where the finding is generated.AssetAttributes
withIpv4Addresses(String... ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.AssetAttributes
withIpv4Addresses(Collection<String> ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.AssetAttributes
withSchemaVersion(Integer schemaVersion)
The schema version of this data type.
-
-
-
Method Detail
-
setSchemaVersion
public void setSchemaVersion(Integer schemaVersion)
The schema version of this data type.
- Parameters:
schemaVersion
- The schema version of this data type.
-
getSchemaVersion
public Integer getSchemaVersion()
The schema version of this data type.
- Returns:
- The schema version of this data type.
-
withSchemaVersion
public AssetAttributes withSchemaVersion(Integer schemaVersion)
The schema version of this data type.
- Parameters:
schemaVersion
- The schema version of this data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAgentId
public void setAgentId(String agentId)
The ID of the agent that is installed on the EC2 instance where the finding is generated.
- Parameters:
agentId
- The ID of the agent that is installed on the EC2 instance where the finding is generated.
-
getAgentId
public String getAgentId()
The ID of the agent that is installed on the EC2 instance where the finding is generated.
- Returns:
- The ID of the agent that is installed on the EC2 instance where the finding is generated.
-
withAgentId
public AssetAttributes withAgentId(String agentId)
The ID of the agent that is installed on the EC2 instance where the finding is generated.
- Parameters:
agentId
- The ID of the agent that is installed on the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAutoScalingGroup
public void setAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group of the EC2 instance where the finding is generated.
- Parameters:
autoScalingGroup
- The Auto Scaling group of the EC2 instance where the finding is generated.
-
getAutoScalingGroup
public String getAutoScalingGroup()
The Auto Scaling group of the EC2 instance where the finding is generated.
- Returns:
- The Auto Scaling group of the EC2 instance where the finding is generated.
-
withAutoScalingGroup
public AssetAttributes withAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group of the EC2 instance where the finding is generated.
- Parameters:
autoScalingGroup
- The Auto Scaling group of the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAmiId
public void setAmiId(String amiId)
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
- Parameters:
amiId
- The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
-
getAmiId
public String getAmiId()
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
- Returns:
- The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
-
withAmiId
public AssetAttributes withAmiId(String amiId)
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
- Parameters:
amiId
- The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHostname
public void setHostname(String hostname)
The hostname of the EC2 instance where the finding is generated.
- Parameters:
hostname
- The hostname of the EC2 instance where the finding is generated.
-
getHostname
public String getHostname()
The hostname of the EC2 instance where the finding is generated.
- Returns:
- The hostname of the EC2 instance where the finding is generated.
-
withHostname
public AssetAttributes withHostname(String hostname)
The hostname of the EC2 instance where the finding is generated.
- Parameters:
hostname
- The hostname of the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getIpv4Addresses
public List<String> getIpv4Addresses()
The list of IP v4 addresses of the EC2 instance where the finding is generated.
- Returns:
- The list of IP v4 addresses of the EC2 instance where the finding is generated.
-
setIpv4Addresses
public void setIpv4Addresses(Collection<String> ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.
- Parameters:
ipv4Addresses
- The list of IP v4 addresses of the EC2 instance where the finding is generated.
-
withIpv4Addresses
public AssetAttributes withIpv4Addresses(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)
orwithIpv4Addresses(java.util.Collection)
if you want to override the existing values.- Parameters:
ipv4Addresses
- The list of IP v4 addresses of the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withIpv4Addresses
public AssetAttributes withIpv4Addresses(Collection<String> ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.
- Parameters:
ipv4Addresses
- The list of IP v4 addresses of the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AssetAttributes clone()
-
-