DatastoreProperties Class

public class DatastoreProperties
extends ResourceBase

Base definition for datastore contents configuration.

Constructor Summary

Constructor Description
DatastoreProperties()

Creates an instance of DatastoreProperties class.

Method Summary

Modifier and Type Method and Description
DatastoreCredentials credentials()

Get the credentials property: [Required] Account credentials.

DatastoreType datastoreType()

Get the datastoreType property: [Required] Storage type backing the datastore.

static DatastoreProperties fromJson(JsonReader jsonReader)

Reads an instance of DatastoreProperties from the JsonReader.

Boolean isDefault()

Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatastoreProperties withCredentials(DatastoreCredentials credentials)

Set the credentials property: [Required] Account credentials.

DatastoreProperties withDescription(String description)

Set the description property: The asset description text.

DatastoreProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

DatastoreProperties withTags(Map<String,String> tags)

Set the tags property: Tag dictionary.

Methods inherited from ResourceBase

Methods inherited from java.lang.Object

Constructor Details

DatastoreProperties

public DatastoreProperties()

Creates an instance of DatastoreProperties class.

Method Details

credentials

public DatastoreCredentials credentials()

Get the credentials property: [Required] Account credentials.

Returns:

the credentials value.

datastoreType

public DatastoreType datastoreType()

Get the datastoreType property: [Required] Storage type backing the datastore.

Returns:

the datastoreType value.

fromJson

public static DatastoreProperties fromJson(JsonReader jsonReader)

Reads an instance of DatastoreProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDefault

public Boolean isDefault()

Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.

Returns:

the isDefault value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DatastoreProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DatastoreProperties.validate()

withCredentials

public DatastoreProperties withCredentials(DatastoreCredentials credentials)

Set the credentials property: [Required] Account credentials.

Parameters:

credentials - the credentials value to set.

Returns:

the DatastoreProperties object itself.

withDescription

public DatastoreProperties withDescription(String description)

Set the description property: The asset description text.

Overrides:

DatastoreProperties.withDescription(String description)

Parameters:

description

withProperties

public DatastoreProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

Overrides:

DatastoreProperties.withProperties(Map<String,String> properties)

Parameters:

properties

withTags

public DatastoreProperties withTags(Map<String,String> tags)

Set the tags property: Tag dictionary. Tags can be added, removed, and updated.

Overrides:

DatastoreProperties.withTags(Map<String,String> tags)

Parameters:

tags

Applies to