Class FilterItems
- java.lang.Object
-
- com.azure.resourcemanager.network.models.FilterItems
-
public final class FilterItems extends Object
Will contain the filter name and values to operate on.
-
-
Constructor Summary
Constructors Constructor Description FilterItems()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringfield()Get the field property: The name of the field we would like to filter.voidvalidate()Validates the instance.List<String>values()Get the values property: List of values to filter the current field by.FilterItemswithField(String field)Set the field property: The name of the field we would like to filter.FilterItemswithValues(List<String> values)Set the values property: List of values to filter the current field by.
-
-
-
Method Detail
-
field
public String field()
Get the field property: The name of the field we would like to filter.- Returns:
- the field value.
-
withField
public FilterItems withField(String field)
Set the field property: The name of the field we would like to filter.- Parameters:
field- the field value to set.- Returns:
- the FilterItems object itself.
-
values
public List<String> values()
Get the values property: List of values to filter the current field by.- Returns:
- the values value.
-
withValues
public FilterItems withValues(List<String> values)
Set the values property: List of values to filter the current field by.- Parameters:
values- the values value to set.- Returns:
- the FilterItems object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-