Class ResourceSharingProfile
java.lang.Object
com.azure.resourcemanager.compute.models.ResourceSharingProfile
The ResourceSharingProfile model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceSharingProfile class. -
Method Summary
Modifier and TypeMethodDescriptionList<com.azure.core.management.SubResource>Get the subscriptionIds property: Specifies an array of subscription resource IDs that capacity reservation group is shared with.voidvalidate()Validates the instance.withSubscriptionIds(List<com.azure.core.management.SubResource> subscriptionIds) Set the subscriptionIds property: Specifies an array of subscription resource IDs that capacity reservation group is shared with.
-
Constructor Details
-
ResourceSharingProfile
public ResourceSharingProfile()Creates an instance of ResourceSharingProfile class.
-
-
Method Details
-
subscriptionIds
Get the subscriptionIds property: Specifies an array of subscription resource IDs that capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.- Returns:
- the subscriptionIds value.
-
withSubscriptionIds
public ResourceSharingProfile withSubscriptionIds(List<com.azure.core.management.SubResource> subscriptionIds) Set the subscriptionIds property: Specifies an array of subscription resource IDs that capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.- Parameters:
subscriptionIds- the subscriptionIds value to set.- Returns:
- the ResourceSharingProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-