@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ec2InstanceAggregation extends Object implements Serializable, Cloneable, StructuredPojo
The details that define an aggregation based on Amazon EC2 instances.
| Constructor and Description |
|---|
Ec2InstanceAggregation() |
| Modifier and Type | Method and Description |
|---|---|
Ec2InstanceAggregation |
clone() |
boolean |
equals(Object obj) |
List<StringFilter> |
getAmis()
The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
|
List<StringFilter> |
getInstanceIds()
The Amazon EC2 instance IDs to aggregate findings for.
|
List<MapFilter> |
getInstanceTags()
The Amazon EC2 instance tags to aggregate findings for.
|
List<StringFilter> |
getOperatingSystems()
The operating system types to aggregate findings for.
|
String |
getSortBy()
The value to sort results by.
|
String |
getSortOrder()
The order to sort results by.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAmis(Collection<StringFilter> amis)
The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
|
void |
setInstanceIds(Collection<StringFilter> instanceIds)
The Amazon EC2 instance IDs to aggregate findings for.
|
void |
setInstanceTags(Collection<MapFilter> instanceTags)
The Amazon EC2 instance tags to aggregate findings for.
|
void |
setOperatingSystems(Collection<StringFilter> operatingSystems)
The operating system types to aggregate findings for.
|
void |
setSortBy(String sortBy)
The value to sort results by.
|
void |
setSortOrder(String sortOrder)
The order to sort results by.
|
String |
toString()
Returns a string representation of this object.
|
Ec2InstanceAggregation |
withAmis(Collection<StringFilter> amis)
The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
|
Ec2InstanceAggregation |
withAmis(StringFilter... amis)
The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
|
Ec2InstanceAggregation |
withInstanceIds(Collection<StringFilter> instanceIds)
The Amazon EC2 instance IDs to aggregate findings for.
|
Ec2InstanceAggregation |
withInstanceIds(StringFilter... instanceIds)
The Amazon EC2 instance IDs to aggregate findings for.
|
Ec2InstanceAggregation |
withInstanceTags(Collection<MapFilter> instanceTags)
The Amazon EC2 instance tags to aggregate findings for.
|
Ec2InstanceAggregation |
withInstanceTags(MapFilter... instanceTags)
The Amazon EC2 instance tags to aggregate findings for.
|
Ec2InstanceAggregation |
withOperatingSystems(Collection<StringFilter> operatingSystems)
The operating system types to aggregate findings for.
|
Ec2InstanceAggregation |
withOperatingSystems(StringFilter... operatingSystems)
The operating system types to aggregate findings for.
|
Ec2InstanceAggregation |
withSortBy(Ec2InstanceSortBy sortBy)
The value to sort results by.
|
Ec2InstanceAggregation |
withSortBy(String sortBy)
The value to sort results by.
|
Ec2InstanceAggregation |
withSortOrder(SortOrder sortOrder)
The order to sort results by.
|
Ec2InstanceAggregation |
withSortOrder(String sortOrder)
The order to sort results by.
|
public List<StringFilter> getAmis()
The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
public void setAmis(Collection<StringFilter> amis)
The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
amis - The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.public Ec2InstanceAggregation withAmis(StringFilter... amis)
The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
NOTE: This method appends the values to the existing list (if any). Use
setAmis(java.util.Collection) or withAmis(java.util.Collection) if you want to override the
existing values.
amis - The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.public Ec2InstanceAggregation withAmis(Collection<StringFilter> amis)
The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
amis - The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.public List<StringFilter> getInstanceIds()
The Amazon EC2 instance IDs to aggregate findings for.
public void setInstanceIds(Collection<StringFilter> instanceIds)
The Amazon EC2 instance IDs to aggregate findings for.
instanceIds - The Amazon EC2 instance IDs to aggregate findings for.public Ec2InstanceAggregation withInstanceIds(StringFilter... instanceIds)
The Amazon EC2 instance IDs to aggregate findings for.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceIds(java.util.Collection) or withInstanceIds(java.util.Collection) if you want to
override the existing values.
instanceIds - The Amazon EC2 instance IDs to aggregate findings for.public Ec2InstanceAggregation withInstanceIds(Collection<StringFilter> instanceIds)
The Amazon EC2 instance IDs to aggregate findings for.
instanceIds - The Amazon EC2 instance IDs to aggregate findings for.public List<MapFilter> getInstanceTags()
The Amazon EC2 instance tags to aggregate findings for.
public void setInstanceTags(Collection<MapFilter> instanceTags)
The Amazon EC2 instance tags to aggregate findings for.
instanceTags - The Amazon EC2 instance tags to aggregate findings for.public Ec2InstanceAggregation withInstanceTags(MapFilter... instanceTags)
The Amazon EC2 instance tags to aggregate findings for.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceTags(java.util.Collection) or withInstanceTags(java.util.Collection) if you want to
override the existing values.
instanceTags - The Amazon EC2 instance tags to aggregate findings for.public Ec2InstanceAggregation withInstanceTags(Collection<MapFilter> instanceTags)
The Amazon EC2 instance tags to aggregate findings for.
instanceTags - The Amazon EC2 instance tags to aggregate findings for.public List<StringFilter> getOperatingSystems()
The operating system types to aggregate findings for. Valid values must be uppercase and underscore separated,
examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.
ORACLE_LINUX_7 and ALPINE_LINUX_3_8.public void setOperatingSystems(Collection<StringFilter> operatingSystems)
The operating system types to aggregate findings for. Valid values must be uppercase and underscore separated,
examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.
operatingSystems - The operating system types to aggregate findings for. Valid values must be uppercase and underscore
separated, examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.public Ec2InstanceAggregation withOperatingSystems(StringFilter... operatingSystems)
The operating system types to aggregate findings for. Valid values must be uppercase and underscore separated,
examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.
NOTE: This method appends the values to the existing list (if any). Use
setOperatingSystems(java.util.Collection) or withOperatingSystems(java.util.Collection) if you
want to override the existing values.
operatingSystems - The operating system types to aggregate findings for. Valid values must be uppercase and underscore
separated, examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.public Ec2InstanceAggregation withOperatingSystems(Collection<StringFilter> operatingSystems)
The operating system types to aggregate findings for. Valid values must be uppercase and underscore separated,
examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.
operatingSystems - The operating system types to aggregate findings for. Valid values must be uppercase and underscore
separated, examples are ORACLE_LINUX_7 and ALPINE_LINUX_3_8.public void setSortBy(String sortBy)
The value to sort results by.
sortBy - The value to sort results by.Ec2InstanceSortBypublic String getSortBy()
The value to sort results by.
Ec2InstanceSortBypublic Ec2InstanceAggregation withSortBy(String sortBy)
The value to sort results by.
sortBy - The value to sort results by.Ec2InstanceSortBypublic Ec2InstanceAggregation withSortBy(Ec2InstanceSortBy sortBy)
The value to sort results by.
sortBy - The value to sort results by.Ec2InstanceSortBypublic void setSortOrder(String sortOrder)
The order to sort results by.
sortOrder - The order to sort results by.SortOrderpublic String getSortOrder()
The order to sort results by.
SortOrderpublic Ec2InstanceAggregation withSortOrder(String sortOrder)
The order to sort results by.
sortOrder - The order to sort results by.SortOrderpublic Ec2InstanceAggregation withSortOrder(SortOrder sortOrder)
The order to sort results by.
sortOrder - The order to sort results by.SortOrderpublic String toString()
toString in class ObjectObject.toString()public Ec2InstanceAggregation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.