SecurityTaskInner Class

public final class SecurityTaskInner
extends ProxyResource

Security task that we recommend to do in order to strengthen security.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationTimeUtc()

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

static SecurityTaskInner fromJson(JsonReader jsonReader)

Reads an instance of SecurityTaskInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

OffsetDateTime lastStateChangeTimeUtc()

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

String name()

Get the name property: The name of the resource.

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.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Methods inherited from ProxyResource

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 SecurityTaskInner fromJson(JsonReader jsonReader)

Reads an instance of SecurityTaskInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecurityTaskInner 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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SecurityTaskInner.id()

Returns:

the id value.

lastStateChangeTimeUtc

public OffsetDateTime lastStateChangeTimeUtc()

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

Returns:

the lastStateChangeTimeUtc value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SecurityTaskInner.name()

Returns:

the name 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.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SecurityTaskInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SecurityTaskInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to