ServiceSharedKeyAccessProperties Class

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

Implements

public final class ServiceSharedKeyAccessProperties
implements JsonSerializable<ServiceSharedKeyAccessProperties>

Defines shared key access settings for an individual storage service.

Constructor Summary

Constructor Description
ServiceSharedKeyAccessProperties()

Creates an instance of ServiceSharedKeyAccessProperties class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Indicates whether shared key access is enabled for the service.

static ServiceSharedKeyAccessProperties fromJson(JsonReader jsonReader)

Reads an instance of ServiceSharedKeyAccessProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServiceSharedKeyAccessProperties withEnabled(Boolean enabled)

Set the enabled property: Indicates whether shared key access is enabled for the service.

Methods inherited from java.lang.Object

Constructor Details

ServiceSharedKeyAccessProperties

public ServiceSharedKeyAccessProperties()

Creates an instance of ServiceSharedKeyAccessProperties class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Indicates whether shared key access is enabled for the service.

Returns:

the enabled value.

fromJson

public static ServiceSharedKeyAccessProperties fromJson(JsonReader jsonReader)

Reads an instance of ServiceSharedKeyAccessProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ServiceSharedKeyAccessProperties withEnabled(Boolean enabled)

Set the enabled property: Indicates whether shared key access is enabled for the service.

Parameters:

enabled - the enabled value to set.

Returns:

the ServiceSharedKeyAccessProperties object itself.

Applies to