ResourceSharingProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ResourceSharingProfile
- com.
Implements
public final class ResourceSharingProfile
implements JsonSerializable<ResourceSharingProfile>
The ResourceSharingProfile model.
Constructor Summary
Constructor | Description |
---|---|
ResourceSharingProfile() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
List<Sub |
subscriptionIds()
Get the subscription |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
withSubscriptionIds(List<SubResource> subscriptionIds)
Set the subscription |
Methods inherited from java.lang.Object
Constructor Details
ResourceSharingProfile
public ResourceSharingProfile()
Creates an instance of ResourceSharingProfile class.
Method Details
fromJson
public static ResourceSharingProfile fromJson(JsonReader jsonReader)
Reads an instance of ResourceSharingProfile from the JsonReader.
Parameters:
Returns:
Throws:
subscriptionIds
public List
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:
toJson
validate
public void validate()
Validates the instance.
withSubscriptionIds
public ResourceSharingProfile withSubscriptionIds(List
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:
Returns:
Applies to
Azure SDK for Java