@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ec2InstanceAggregationResponse extends Object implements Serializable, Cloneable, StructuredPojo
A response that contains the results of a finding aggregation by Amazon EC2 instance.
Constructor and Description |
---|
Ec2InstanceAggregationResponse() |
Modifier and Type | Method and Description |
---|---|
Ec2InstanceAggregationResponse |
addInstanceTagsEntry(String key,
String value)
Add a single InstanceTags entry
|
Ec2InstanceAggregationResponse |
clearInstanceTagsEntries()
Removes all the entries added into InstanceTags.
|
Ec2InstanceAggregationResponse |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The Amazon Web Services account for the Amazon EC2 instance.
|
String |
getAmi()
The Amazon Machine Image (AMI) of the Amazon EC2 instance.
|
String |
getInstanceId()
The Amazon EC2 instance ID.
|
Map<String,String> |
getInstanceTags()
The tags attached to the instance.
|
Long |
getNetworkFindings()
The number of network findings for the Amazon EC2 instance.
|
String |
getOperatingSystem()
The operating system of the Amazon EC2 instance.
|
SeverityCounts |
getSeverityCounts()
An object that contains the count of matched findings per severity.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The Amazon Web Services account for the Amazon EC2 instance.
|
void |
setAmi(String ami)
The Amazon Machine Image (AMI) of the Amazon EC2 instance.
|
void |
setInstanceId(String instanceId)
The Amazon EC2 instance ID.
|
void |
setInstanceTags(Map<String,String> instanceTags)
The tags attached to the instance.
|
void |
setNetworkFindings(Long networkFindings)
The number of network findings for the Amazon EC2 instance.
|
void |
setOperatingSystem(String operatingSystem)
The operating system of the Amazon EC2 instance.
|
void |
setSeverityCounts(SeverityCounts severityCounts)
An object that contains the count of matched findings per severity.
|
String |
toString()
Returns a string representation of this object.
|
Ec2InstanceAggregationResponse |
withAccountId(String accountId)
The Amazon Web Services account for the Amazon EC2 instance.
|
Ec2InstanceAggregationResponse |
withAmi(String ami)
The Amazon Machine Image (AMI) of the Amazon EC2 instance.
|
Ec2InstanceAggregationResponse |
withInstanceId(String instanceId)
The Amazon EC2 instance ID.
|
Ec2InstanceAggregationResponse |
withInstanceTags(Map<String,String> instanceTags)
The tags attached to the instance.
|
Ec2InstanceAggregationResponse |
withNetworkFindings(Long networkFindings)
The number of network findings for the Amazon EC2 instance.
|
Ec2InstanceAggregationResponse |
withOperatingSystem(String operatingSystem)
The operating system of the Amazon EC2 instance.
|
Ec2InstanceAggregationResponse |
withSeverityCounts(SeverityCounts severityCounts)
An object that contains the count of matched findings per severity.
|
public void setAccountId(String accountId)
The Amazon Web Services account for the Amazon EC2 instance.
accountId
- The Amazon Web Services account for the Amazon EC2 instance.public String getAccountId()
The Amazon Web Services account for the Amazon EC2 instance.
public Ec2InstanceAggregationResponse withAccountId(String accountId)
The Amazon Web Services account for the Amazon EC2 instance.
accountId
- The Amazon Web Services account for the Amazon EC2 instance.public void setAmi(String ami)
The Amazon Machine Image (AMI) of the Amazon EC2 instance.
ami
- The Amazon Machine Image (AMI) of the Amazon EC2 instance.public String getAmi()
The Amazon Machine Image (AMI) of the Amazon EC2 instance.
public Ec2InstanceAggregationResponse withAmi(String ami)
The Amazon Machine Image (AMI) of the Amazon EC2 instance.
ami
- The Amazon Machine Image (AMI) of the Amazon EC2 instance.public void setInstanceId(String instanceId)
The Amazon EC2 instance ID.
instanceId
- The Amazon EC2 instance ID.public String getInstanceId()
The Amazon EC2 instance ID.
public Ec2InstanceAggregationResponse withInstanceId(String instanceId)
The Amazon EC2 instance ID.
instanceId
- The Amazon EC2 instance ID.public Map<String,String> getInstanceTags()
The tags attached to the instance.
public void setInstanceTags(Map<String,String> instanceTags)
The tags attached to the instance.
instanceTags
- The tags attached to the instance.public Ec2InstanceAggregationResponse withInstanceTags(Map<String,String> instanceTags)
The tags attached to the instance.
instanceTags
- The tags attached to the instance.public Ec2InstanceAggregationResponse addInstanceTagsEntry(String key, String value)
public Ec2InstanceAggregationResponse clearInstanceTagsEntries()
public void setNetworkFindings(Long networkFindings)
The number of network findings for the Amazon EC2 instance.
networkFindings
- The number of network findings for the Amazon EC2 instance.public Long getNetworkFindings()
The number of network findings for the Amazon EC2 instance.
public Ec2InstanceAggregationResponse withNetworkFindings(Long networkFindings)
The number of network findings for the Amazon EC2 instance.
networkFindings
- The number of network findings for the Amazon EC2 instance.public void setOperatingSystem(String operatingSystem)
The operating system of the Amazon EC2 instance.
operatingSystem
- The operating system of the Amazon EC2 instance.public String getOperatingSystem()
The operating system of the Amazon EC2 instance.
public Ec2InstanceAggregationResponse withOperatingSystem(String operatingSystem)
The operating system of the Amazon EC2 instance.
operatingSystem
- The operating system of the Amazon EC2 instance.public void setSeverityCounts(SeverityCounts severityCounts)
An object that contains the count of matched findings per severity.
severityCounts
- An object that contains the count of matched findings per severity.public SeverityCounts getSeverityCounts()
An object that contains the count of matched findings per severity.
public Ec2InstanceAggregationResponse withSeverityCounts(SeverityCounts severityCounts)
An object that contains the count of matched findings per severity.
severityCounts
- An object that contains the count of matched findings per severity.public String toString()
toString
in class Object
Object.toString()
public Ec2InstanceAggregationResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.