TableAccessPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.TableAccessPolicy

Implements

public final class TableAccessPolicy
implements JsonSerializable<TableAccessPolicy>

Table Access Policy Properties Object.

Constructor Summary

Constructor Description
TableAccessPolicy()

Creates an instance of TableAccessPolicy class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expiryTime()

Get the expiryTime property: Expiry time of the access policy.

static TableAccessPolicy fromJson(JsonReader jsonReader)

Reads an instance of TableAccessPolicy from the JsonReader.

String permission()

Get the permission property: Required.

OffsetDateTime startTime()

Get the startTime property: Start time of the access policy.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TableAccessPolicy withExpiryTime(OffsetDateTime expiryTime)

Set the expiryTime property: Expiry time of the access policy.

TableAccessPolicy withPermission(String permission)

Set the permission property: Required.

TableAccessPolicy withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the access policy.

Methods inherited from java.lang.Object

Constructor Details

TableAccessPolicy

public TableAccessPolicy()

Creates an instance of TableAccessPolicy class.

Method Details

expiryTime

public OffsetDateTime expiryTime()

Get the expiryTime property: Expiry time of the access policy.

Returns:

the expiryTime value.

fromJson

public static TableAccessPolicy fromJson(JsonReader jsonReader)

Reads an instance of TableAccessPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

permission

public String permission()

Get the permission property: Required. List of abbreviated permissions. Supported permission values include 'r','a','u','d'.

Returns:

the permission value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the access policy.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExpiryTime

public TableAccessPolicy withExpiryTime(OffsetDateTime expiryTime)

Set the expiryTime property: Expiry time of the access policy.

Parameters:

expiryTime - the expiryTime value to set.

Returns:

the TableAccessPolicy object itself.

withPermission

public TableAccessPolicy withPermission(String permission)

Set the permission property: Required. List of abbreviated permissions. Supported permission values include 'r','a','u','d'.

Parameters:

permission - the permission value to set.

Returns:

the TableAccessPolicy object itself.

withStartTime

public TableAccessPolicy withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the access policy.

Parameters:

startTime - the startTime value to set.

Returns:

the TableAccessPolicy object itself.

Applies to