IssueProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.workspaces.models.IssueProperties

Implements

public final class IssueProperties
implements JsonSerializable<IssueProperties>

The issue properties.

Constructor Summary

Constructor Description
IssueProperties()

Creates an instance of IssueProperties class.

Method Summary

Modifier and Type Method and Description
Background background()

Get the background property: The issue background information.

static IssueProperties fromJson(JsonReader jsonReader)

Reads an instance of IssueProperties from the JsonReader.

OffsetDateTime impactTime()

Get the impactTime property: The issue impact time (in UTC).

List<InvestigationMetadata> investigations()

Get the investigations property: The list of investigations in the issue.

int investigationsCount()

Get the investigationsCount property: The number of investigations in the issue.

Notifications notifications()

Get the notifications property: The issue notification settings.

ResourceProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

String severity()

Get the severity property: The issue severity.

Status status()

Get the status property: The issue status.

String title()

Get the title property: The issue title.

JsonWriter toJson(JsonWriter jsonWriter)
IssueProperties withBackground(Background background)

Set the background property: The issue background information.

IssueProperties withImpactTime(OffsetDateTime impactTime)

Set the impactTime property: The issue impact time (in UTC).

IssueProperties withNotifications(Notifications notifications)

Set the notifications property: The issue notification settings.

IssueProperties withSeverity(String severity)

Set the severity property: The issue severity.

IssueProperties withStatus(Status status)

Set the status property: The issue status.

IssueProperties withTitle(String title)

Set the title property: The issue title.

Methods inherited from java.lang.Object

Constructor Details

IssueProperties

public IssueProperties()

Creates an instance of IssueProperties class.

Method Details

background

public Background background()

Get the background property: The issue background information.

Returns:

the background value.

fromJson

public static IssueProperties fromJson(JsonReader jsonReader)

Reads an instance of IssueProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IssueProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

impactTime

public OffsetDateTime impactTime()

Get the impactTime property: The issue impact time (in UTC).

Returns:

the impactTime value.

investigations

public List<InvestigationMetadata> investigations()

Get the investigations property: The list of investigations in the issue.

Returns:

the investigations value.

investigationsCount

public int investigationsCount()

Get the investigationsCount property: The number of investigations in the issue.

Returns:

the investigationsCount value.

notifications

public Notifications notifications()

Get the notifications property: The issue notification settings.

Returns:

the notifications value.

provisioningState

public ResourceProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

severity

public String severity()

Get the severity property: The issue severity.

Returns:

the severity value.

status

public Status status()

Get the status property: The issue status.

Returns:

the status value.

title

public String title()

Get the title property: The issue title.

Returns:

the title value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withBackground

public IssueProperties withBackground(Background background)

Set the background property: The issue background information.

Parameters:

background - the background value to set.

Returns:

the IssueProperties object itself.

withImpactTime

public IssueProperties withImpactTime(OffsetDateTime impactTime)

Set the impactTime property: The issue impact time (in UTC).

Parameters:

impactTime - the impactTime value to set.

Returns:

the IssueProperties object itself.

withNotifications

public IssueProperties withNotifications(Notifications notifications)

Set the notifications property: The issue notification settings.

Parameters:

notifications - the notifications value to set.

Returns:

the IssueProperties object itself.

withSeverity

public IssueProperties withSeverity(String severity)

Set the severity property: The issue severity.

Parameters:

severity - the severity value to set.

Returns:

the IssueProperties object itself.

withStatus

public IssueProperties withStatus(Status status)

Set the status property: The issue status.

Parameters:

status - the status value to set.

Returns:

the IssueProperties object itself.

withTitle

public IssueProperties withTitle(String title)

Set the title property: The issue title.

Parameters:

title - the title value to set.

Returns:

the IssueProperties object itself.

Applies to