FeatureProperties Class

public final class FeatureProperties
extends ResourceBase

DTO object representing feature.

Constructor Summary

Constructor Description
FeatureProperties()

Creates an instance of FeatureProperties class.

Method Summary

Modifier and Type Method and Description
FeatureDataType dataType()

Get the dataType property: Specifies type.

String featureName()

Get the featureName property: Specifies name.

static FeatureProperties fromJson(JsonReader jsonReader)

Reads an instance of FeatureProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FeatureProperties withDataType(FeatureDataType dataType)

Set the dataType property: Specifies type.

FeatureProperties withDescription(String description)

Set the description property: The asset description text.

FeatureProperties withFeatureName(String featureName)

Set the featureName property: Specifies name.

FeatureProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

FeatureProperties withTags(Map<String,String> tags)

Set the tags property: Tag dictionary.

Methods inherited from ResourceBase

Methods inherited from java.lang.Object

Constructor Details

FeatureProperties

public FeatureProperties()

Creates an instance of FeatureProperties class.

Method Details

dataType

public FeatureDataType dataType()

Get the dataType property: Specifies type.

Returns:

the dataType value.

featureName

public String featureName()

Get the featureName property: Specifies name.

Returns:

the featureName value.

fromJson

public static FeatureProperties fromJson(JsonReader jsonReader)

Reads an instance of FeatureProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FeatureProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

FeatureProperties.validate()

withDataType

public FeatureProperties withDataType(FeatureDataType dataType)

Set the dataType property: Specifies type.

Parameters:

dataType - the dataType value to set.

Returns:

the FeatureProperties object itself.

withDescription

public FeatureProperties withDescription(String description)

Set the description property: The asset description text.

Overrides:

FeatureProperties.withDescription(String description)

Parameters:

description

withFeatureName

public FeatureProperties withFeatureName(String featureName)

Set the featureName property: Specifies name.

Parameters:

featureName - the featureName value to set.

Returns:

the FeatureProperties object itself.

withProperties

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

Set the properties property: The asset property dictionary.

Overrides:

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

Parameters:

properties

withTags

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

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

Overrides:

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

Parameters:

tags

Applies to