Share via


ManagedDatabaseAdvancedThreatProtectionInner Class

public final class ManagedDatabaseAdvancedThreatProtectionInner
extends ProxyResource

A managed database Advanced Threat Protection.

Constructor Summary

Constructor Description
ManagedDatabaseAdvancedThreatProtectionInner()

Creates an instance of ManagedDatabaseAdvancedThreatProtectionInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationTime()

Get the creationTime property: Specifies the UTC creation time of the policy.

static ManagedDatabaseAdvancedThreatProtectionInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedDatabaseAdvancedThreatProtectionInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

AdvancedThreatProtectionState state()

Get the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.

SystemData systemData()

Get the systemData property: SystemData of AdvancedThreatProtectionResource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ManagedDatabaseAdvancedThreatProtectionInner withState(AdvancedThreatProtectionState state)

Set the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ManagedDatabaseAdvancedThreatProtectionInner

public ManagedDatabaseAdvancedThreatProtectionInner()

Creates an instance of ManagedDatabaseAdvancedThreatProtectionInner class.

Method Details

creationTime

public OffsetDateTime creationTime()

Get the creationTime property: Specifies the UTC creation time of the policy.

Returns:

the creationTime value.

fromJson

public static ManagedDatabaseAdvancedThreatProtectionInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedDatabaseAdvancedThreatProtectionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedDatabaseAdvancedThreatProtectionInner 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:

ManagedDatabaseAdvancedThreatProtectionInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagedDatabaseAdvancedThreatProtectionInner.name()

Returns:

the name value.

state

public AdvancedThreatProtectionState state()

Get the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.

Returns:

the state value.

systemData

public SystemData systemData()

Get the systemData property: SystemData of AdvancedThreatProtectionResource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedDatabaseAdvancedThreatProtectionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagedDatabaseAdvancedThreatProtectionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withState

public ManagedDatabaseAdvancedThreatProtectionInner withState(AdvancedThreatProtectionState state)

Set the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.

Parameters:

state - the state value to set.

Returns:

the ManagedDatabaseAdvancedThreatProtectionInner object itself.

Applies to