Class ResourceSharingProfile

java.lang.Object
com.azure.resourcemanager.compute.models.ResourceSharingProfile

public final class ResourceSharingProfile extends Object
The ResourceSharingProfile model.
  • Constructor Details

    • ResourceSharingProfile

      public ResourceSharingProfile()
      Creates an instance of ResourceSharingProfile class.
  • Method Details

    • subscriptionIds

      public List<com.azure.core.management.SubResource> 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.