Class ResourceGroupIdExtractor
java.lang.Object
com.developer.nefarious.zjoule.plugin.login.utils.ResourceGroupIdExtractor
Utility class for extracting resource group IDs from a
GetResourceGroupsResponse
.
This class provides a static method to process a response and retrieve a list of resource group IDs. It is abstract to prevent instantiation.
-
Method Summary
Modifier and TypeMethodDescriptionExtracts a list of resource group IDs from the givenGetResourceGroupsResponse
.
-
Method Details
-
extractResourceGroupIds
Extracts a list of resource group IDs from the givenGetResourceGroupsResponse
.If the response is
null
, the method returnsnull
. Otherwise, it processes the list ofResourceGroup
objects contained in the response and extracts their IDs into a new list.- Parameters:
response
- theGetResourceGroupsResponse
containing resource group data.- Returns:
- a
List
of resource group IDs asString
, ornull
if the response isnull
.
-