SecurityTaskProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.security.fluent.models.SecurityTaskProperties

Implements

public final class SecurityTaskProperties
implements JsonSerializable<SecurityTaskProperties>

Describes properties of a task.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationTimeUtc()

Get the creationTimeUtc property: The time this task was discovered in UTC.

static SecurityTaskProperties fromJson(JsonReader jsonReader)

Reads an instance of SecurityTaskProperties from the JsonReader.

OffsetDateTime lastStateChangeTimeUtc()

Get the lastStateChangeTimeUtc property: The time this task's details were last changed in UTC.

SecurityTaskParameters securityTaskParameters()

Get the securityTaskParameters property: Changing set of properties, depending on the task type that is derived from the name field.

String state()

Get the state property: State of the task (Active, Resolved etc.).

String subState()

Get the subState property: Additional data on the state of the task.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

creationTimeUtc

public OffsetDateTime creationTimeUtc()

Get the creationTimeUtc property: The time this task was discovered in UTC.

Returns:

the creationTimeUtc value.

fromJson

public static SecurityTaskProperties fromJson(JsonReader jsonReader)

Reads an instance of SecurityTaskProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the SecurityTaskProperties.

lastStateChangeTimeUtc

public OffsetDateTime lastStateChangeTimeUtc()

Get the lastStateChangeTimeUtc property: The time this task's details were last changed in UTC.

Returns:

the lastStateChangeTimeUtc value.

securityTaskParameters

public SecurityTaskParameters securityTaskParameters()

Get the securityTaskParameters property: Changing set of properties, depending on the task type that is derived from the name field.

Returns:

the securityTaskParameters value.

state

public String state()

Get the state property: State of the task (Active, Resolved etc.).

Returns:

the state value.

subState

public String subState()

Get the subState property: Additional data on the state of the task.

Returns:

the subState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to