SubResourceWithColocationStatus Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. compute. models. SubResourceWithColocationStatus
- com.
- com.
public final class SubResourceWithColocationStatus
extends SubResource
The SubResourceWithColocationStatus model.
Constructor Summary
Constructor | Description |
---|---|
SubResourceWithColocationStatus() |
Creates an instance of Sub |
Method Summary
Modifier and Type | Method and Description |
---|---|
Instance |
colocationStatus()
Get the colocation |
static
Sub |
fromJson(JsonReader jsonReader)
Reads an instance of Sub |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Sub |
withColocationStatus(InstanceViewStatus colocationStatus)
Set the colocation |
Sub |
withId(String id) |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
SubResourceWithColocationStatus
public SubResourceWithColocationStatus()
Creates an instance of SubResourceWithColocationStatus class.
Method Details
colocationStatus
public InstanceViewStatus colocationStatus()
Get the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group.
Returns:
fromJson
public static SubResourceWithColocationStatus fromJson(JsonReader jsonReader)
Reads an instance of SubResourceWithColocationStatus from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SubResourceWithColocationStatus.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
withColocationStatus
public SubResourceWithColocationStatus withColocationStatus(InstanceViewStatus colocationStatus)
Set the colocationStatus property: Describes colocation status of a resource in the Proximity Placement Group.
Parameters:
Returns:
withId
public SubResourceWithColocationStatus withId(String id)
Overrides:
SubResourceWithColocationStatus.withId(String id)Parameters:
Applies to
Azure SDK for Java