### YamlMime:JavaType uid: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus" fullName: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus" name: "SubResourceWithColocationStatus" nameWithType: "SubResourceWithColocationStatus" summary: "The SubResourceWithColocationStatus model." inheritances: - "" - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - "" - "" - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **SubResourceWithColocationStatus**
extends " constructors: - uid: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.SubResourceWithColocationStatus()" fullName: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.SubResourceWithColocationStatus()" name: "SubResourceWithColocationStatus()" nameWithType: "SubResourceWithColocationStatus.SubResourceWithColocationStatus()" summary: "Creates an instance of SubResourceWithColocationStatus class." syntax: "public SubResourceWithColocationStatus()" desc: "Creates an instance of SubResourceWithColocationStatus class." methods: - uid: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.colocationStatus()" fullName: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.colocationStatus()" name: "colocationStatus()" nameWithType: "SubResourceWithColocationStatus.colocationStatus()" summary: "Get the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group." syntax: "public InstanceViewStatus colocationStatus()" desc: "Get the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group." returns: description: "the colocationStatus value." type: "" - uid: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.fromJson(com.azure.json.JsonReader)" fullName: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.fromJson(JsonReader jsonReader)" name: "fromJson(JsonReader jsonReader)" nameWithType: "SubResourceWithColocationStatus.fromJson(JsonReader jsonReader)" summary: "Reads an instance of SubResourceWithColocationStatus from the JsonReader." modifiers: - "static" parameters: - description: "The JsonReader being read." name: "jsonReader" type: "" syntax: "public static SubResourceWithColocationStatus fromJson(JsonReader jsonReader)" exceptions: - description: "If an error occurs while reading the SubResourceWithColocationStatus." type: "IOException" desc: "Reads an instance of SubResourceWithColocationStatus from the JsonReader." returns: description: "An instance of SubResourceWithColocationStatus if the JsonReader was pointing to an instance of it, or\n null if it was pointing to JSON null." type: "" - uid: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.toJson(com.azure.json.JsonWriter)" fullName: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.toJson(JsonWriter jsonWriter)" name: "toJson(JsonWriter jsonWriter)" nameWithType: "SubResourceWithColocationStatus.toJson(JsonWriter jsonWriter)" overridden: "com.azure.core.management.SubResource.toJson(com.azure.json.JsonWriter)" parameters: - name: "jsonWriter" type: "" syntax: "public JsonWriter toJson(JsonWriter jsonWriter)" exceptions: - type: "IOException" returns: type: "" - uid: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.validate()" fullName: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.validate()" name: "validate()" nameWithType: "SubResourceWithColocationStatus.validate()" summary: "Validates the instance." syntax: "public void validate()" desc: "Validates the instance." - uid: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.withColocationStatus(com.azure.resourcemanager.compute.models.InstanceViewStatus)" fullName: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.withColocationStatus(InstanceViewStatus colocationStatus)" name: "withColocationStatus(InstanceViewStatus colocationStatus)" nameWithType: "SubResourceWithColocationStatus.withColocationStatus(InstanceViewStatus colocationStatus)" summary: "Set the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group." parameters: - description: "the colocationStatus value to set." name: "colocationStatus" type: "" syntax: "public SubResourceWithColocationStatus withColocationStatus(InstanceViewStatus colocationStatus)" desc: "Set the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group." returns: description: "the SubResourceWithColocationStatus object itself." type: "" - uid: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.withId(java.lang.String)" fullName: "com.azure.resourcemanager.compute.models.SubResourceWithColocationStatus.withId(String id)" name: "withId(String id)" nameWithType: "SubResourceWithColocationStatus.withId(String id)" overridden: "com.azure.core.management.SubResource.withId(java.lang.String)" parameters: - name: "id" type: "String" syntax: "public SubResourceWithColocationStatus withId(String id)" returns: type: "" type: "class" desc: "The SubResourceWithColocationStatus model." metadata: {} package: "com.azure.resourcemanager.compute.models" artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.44.0