@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchInsightsFilters extends Object implements Serializable, Cloneable, StructuredPojo
Specifies values used to filter responses when searching for insights. You can use a ResourceCollection
,
ServiceCollection
, array of severities, and an array of status values. Each filter type contains one or
more values to search for. If you specify multiple filter types, the filter types are joined with an AND
, and the request returns only results that match all of the specified filters.
Constructor and Description |
---|
SearchInsightsFilters() |
Modifier and Type | Method and Description |
---|---|
SearchInsightsFilters |
clone() |
boolean |
equals(Object obj) |
ResourceCollection |
getResourceCollection() |
ServiceCollection |
getServiceCollection()
A collection of the names of Amazon Web Services services.
|
List<String> |
getSeverities()
An array of severity values used to search for insights.
|
List<String> |
getStatuses()
An array of status values used to search for insights.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setResourceCollection(ResourceCollection resourceCollection) |
void |
setServiceCollection(ServiceCollection serviceCollection)
A collection of the names of Amazon Web Services services.
|
void |
setSeverities(Collection<String> severities)
An array of severity values used to search for insights.
|
void |
setStatuses(Collection<String> statuses)
An array of status values used to search for insights.
|
String |
toString()
Returns a string representation of this object.
|
SearchInsightsFilters |
withResourceCollection(ResourceCollection resourceCollection) |
SearchInsightsFilters |
withServiceCollection(ServiceCollection serviceCollection)
A collection of the names of Amazon Web Services services.
|
SearchInsightsFilters |
withSeverities(Collection<String> severities)
An array of severity values used to search for insights.
|
SearchInsightsFilters |
withSeverities(InsightSeverity... severities)
An array of severity values used to search for insights.
|
SearchInsightsFilters |
withSeverities(String... severities)
An array of severity values used to search for insights.
|
SearchInsightsFilters |
withStatuses(Collection<String> statuses)
An array of status values used to search for insights.
|
SearchInsightsFilters |
withStatuses(InsightStatus... statuses)
An array of status values used to search for insights.
|
SearchInsightsFilters |
withStatuses(String... statuses)
An array of status values used to search for insights.
|
public List<String> getSeverities()
An array of severity values used to search for insights.
InsightSeverity
public void setSeverities(Collection<String> severities)
An array of severity values used to search for insights.
severities
- An array of severity values used to search for insights.InsightSeverity
public SearchInsightsFilters withSeverities(String... severities)
An array of severity values used to search for insights.
NOTE: This method appends the values to the existing list (if any). Use
setSeverities(java.util.Collection)
or withSeverities(java.util.Collection)
if you want to
override the existing values.
severities
- An array of severity values used to search for insights.InsightSeverity
public SearchInsightsFilters withSeverities(Collection<String> severities)
An array of severity values used to search for insights.
severities
- An array of severity values used to search for insights.InsightSeverity
public SearchInsightsFilters withSeverities(InsightSeverity... severities)
An array of severity values used to search for insights.
severities
- An array of severity values used to search for insights.InsightSeverity
public List<String> getStatuses()
An array of status values used to search for insights.
InsightStatus
public void setStatuses(Collection<String> statuses)
An array of status values used to search for insights.
statuses
- An array of status values used to search for insights.InsightStatus
public SearchInsightsFilters withStatuses(String... statuses)
An array of status values used to search for insights.
NOTE: This method appends the values to the existing list (if any). Use
setStatuses(java.util.Collection)
or withStatuses(java.util.Collection)
if you want to override
the existing values.
statuses
- An array of status values used to search for insights.InsightStatus
public SearchInsightsFilters withStatuses(Collection<String> statuses)
An array of status values used to search for insights.
statuses
- An array of status values used to search for insights.InsightStatus
public SearchInsightsFilters withStatuses(InsightStatus... statuses)
An array of status values used to search for insights.
statuses
- An array of status values used to search for insights.InsightStatus
public void setResourceCollection(ResourceCollection resourceCollection)
resourceCollection
- public ResourceCollection getResourceCollection()
public SearchInsightsFilters withResourceCollection(ResourceCollection resourceCollection)
resourceCollection
- public void setServiceCollection(ServiceCollection serviceCollection)
A collection of the names of Amazon Web Services services.
serviceCollection
- A collection of the names of Amazon Web Services services.public ServiceCollection getServiceCollection()
A collection of the names of Amazon Web Services services.
public SearchInsightsFilters withServiceCollection(ServiceCollection serviceCollection)
A collection of the names of Amazon Web Services services.
serviceCollection
- A collection of the names of Amazon Web Services services.public String toString()
toString
in class Object
Object.toString()
public SearchInsightsFilters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.