MachineExtensionInstanceViewStatus Class

  • java.lang.Object
    • com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceViewStatus

public final class MachineExtensionInstanceViewStatus

Instance view status.

Constructor Summary

Constructor Description
MachineExtensionInstanceViewStatus()

Creates an instance of MachineExtensionInstanceViewStatus class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The status code.

String displayStatus()

Get the displayStatus property: The short localizable label for the status.

StatusLevelTypes level()

Get the level property: The level code.

String message()

Get the message property: The detailed status message, including for alerts and error messages.

OffsetDateTime time()

Get the time property: The time of the status.

void validate()

Validates the instance.

MachineExtensionInstanceViewStatus withCode(String code)

Set the code property: The status code.

MachineExtensionInstanceViewStatus withDisplayStatus(String displayStatus)

Set the displayStatus property: The short localizable label for the status.

MachineExtensionInstanceViewStatus withLevel(StatusLevelTypes level)

Set the level property: The level code.

MachineExtensionInstanceViewStatus withMessage(String message)

Set the message property: The detailed status message, including for alerts and error messages.

MachineExtensionInstanceViewStatus withTime(OffsetDateTime time)

Set the time property: The time of the status.

Methods inherited from java.lang.Object

Constructor Details

MachineExtensionInstanceViewStatus

public MachineExtensionInstanceViewStatus()

Creates an instance of MachineExtensionInstanceViewStatus class.

Method Details

code

public String code()

Get the code property: The status code.

Returns:

the code value.

displayStatus

public String displayStatus()

Get the displayStatus property: The short localizable label for the status.

Returns:

the displayStatus value.

level

public StatusLevelTypes level()

Get the level property: The level code.

Returns:

the level value.

message

public String message()

Get the message property: The detailed status message, including for alerts and error messages.

Returns:

the message value.

time

public OffsetDateTime time()

Get the time property: The time of the status.

Returns:

the time value.

validate

public void validate()

Validates the instance.

withCode

public MachineExtensionInstanceViewStatus withCode(String code)

Set the code property: The status code.

Parameters:

code - the code value to set.

Returns:

the MachineExtensionInstanceViewStatus object itself.

withDisplayStatus

public MachineExtensionInstanceViewStatus withDisplayStatus(String displayStatus)

Set the displayStatus property: The short localizable label for the status.

Parameters:

displayStatus - the displayStatus value to set.

Returns:

the MachineExtensionInstanceViewStatus object itself.

withLevel

public MachineExtensionInstanceViewStatus withLevel(StatusLevelTypes level)

Set the level property: The level code.

Parameters:

level - the level value to set.

Returns:

the MachineExtensionInstanceViewStatus object itself.

withMessage

public MachineExtensionInstanceViewStatus withMessage(String message)

Set the message property: The detailed status message, including for alerts and error messages.

Parameters:

message - the message value to set.

Returns:

the MachineExtensionInstanceViewStatus object itself.

withTime

public MachineExtensionInstanceViewStatus withTime(OffsetDateTime time)

Set the time property: The time of the status.

Parameters:

time - the time value to set.

Returns:

the MachineExtensionInstanceViewStatus object itself.

Applies to