DaprComponentProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentProperties

Implements

public class DaprComponentProperties
implements JsonSerializable<DaprComponentProperties>

Dapr Component resource specific properties.

Constructor Summary

Constructor Description
DaprComponentProperties()

Creates an instance of DaprComponentProperties class.

Method Summary

Modifier and Type Method and Description
String componentType()

Get the componentType property: Component type.

static DaprComponentProperties fromJson(JsonReader jsonReader)

Reads an instance of DaprComponentProperties from the JsonReader.

Boolean ignoreErrors()

Get the ignoreErrors property: Boolean describing if the component errors are ignores.

String initTimeout()

Get the initTimeout property: Initialization timeout.

List<DaprMetadata> metadata()

Get the metadata property: Component metadata.

List<String> scopes()

Get the scopes property: Names of container apps that can use this Dapr component.

List<Secret> secrets()

Get the secrets property: Collection of secrets used by a Dapr component.

String secretStoreComponent()

Get the secretStoreComponent property: Name of a Dapr component to retrieve component secrets from.

List<DaprComponentServiceBinding> serviceComponentBind()

Get the serviceComponentBind property: List of container app services that are bound to the Dapr component.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: Component version.

DaprComponentProperties withComponentType(String componentType)

Set the componentType property: Component type.

DaprComponentProperties withIgnoreErrors(Boolean ignoreErrors)

Set the ignoreErrors property: Boolean describing if the component errors are ignores.

DaprComponentProperties withInitTimeout(String initTimeout)

Set the initTimeout property: Initialization timeout.

DaprComponentProperties withMetadata(List<DaprMetadata> metadata)

Set the metadata property: Component metadata.

DaprComponentProperties withScopes(List<String> scopes)

Set the scopes property: Names of container apps that can use this Dapr component.

DaprComponentProperties withSecrets(List<Secret> secrets)

Set the secrets property: Collection of secrets used by a Dapr component.

DaprComponentProperties withSecretStoreComponent(String secretStoreComponent)

Set the secretStoreComponent property: Name of a Dapr component to retrieve component secrets from.

DaprComponentProperties withServiceComponentBind(List<DaprComponentServiceBinding> serviceComponentBind)

Set the serviceComponentBind property: List of container app services that are bound to the Dapr component.

DaprComponentProperties withVersion(String version)

Set the version property: Component version.

Methods inherited from java.lang.Object

Constructor Details

DaprComponentProperties

public DaprComponentProperties()

Creates an instance of DaprComponentProperties class.

Method Details

componentType

public String componentType()

Get the componentType property: Component type.

Returns:

the componentType value.

fromJson

public static DaprComponentProperties fromJson(JsonReader jsonReader)

Reads an instance of DaprComponentProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ignoreErrors

public Boolean ignoreErrors()

Get the ignoreErrors property: Boolean describing if the component errors are ignores.

Returns:

the ignoreErrors value.

initTimeout

public String initTimeout()

Get the initTimeout property: Initialization timeout.

Returns:

the initTimeout value.

metadata

public List<DaprMetadata> metadata()

Get the metadata property: Component metadata.

Returns:

the metadata value.

scopes

public List<String> scopes()

Get the scopes property: Names of container apps that can use this Dapr component.

Returns:

the scopes value.

secrets

public List<Secret> secrets()

Get the secrets property: Collection of secrets used by a Dapr component.

Returns:

the secrets value.

secretStoreComponent

public String secretStoreComponent()

Get the secretStoreComponent property: Name of a Dapr component to retrieve component secrets from.

Returns:

the secretStoreComponent value.

serviceComponentBind

public List<DaprComponentServiceBinding> serviceComponentBind()

Get the serviceComponentBind property: List of container app services that are bound to the Dapr component.

Returns:

the serviceComponentBind value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Component version.

Returns:

the version value.

withComponentType

public DaprComponentProperties withComponentType(String componentType)

Set the componentType property: Component type.

Parameters:

componentType - the componentType value to set.

Returns:

the DaprComponentProperties object itself.

withIgnoreErrors

public DaprComponentProperties withIgnoreErrors(Boolean ignoreErrors)

Set the ignoreErrors property: Boolean describing if the component errors are ignores.

Parameters:

ignoreErrors - the ignoreErrors value to set.

Returns:

the DaprComponentProperties object itself.

withInitTimeout

public DaprComponentProperties withInitTimeout(String initTimeout)

Set the initTimeout property: Initialization timeout.

Parameters:

initTimeout - the initTimeout value to set.

Returns:

the DaprComponentProperties object itself.

withMetadata

public DaprComponentProperties withMetadata(List<DaprMetadata> metadata)

Set the metadata property: Component metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the DaprComponentProperties object itself.

withScopes

public DaprComponentProperties withScopes(List<String> scopes)

Set the scopes property: Names of container apps that can use this Dapr component.

Parameters:

scopes - the scopes value to set.

Returns:

the DaprComponentProperties object itself.

withSecrets

public DaprComponentProperties withSecrets(List<Secret> secrets)

Set the secrets property: Collection of secrets used by a Dapr component.

Parameters:

secrets - the secrets value to set.

Returns:

the DaprComponentProperties object itself.

withSecretStoreComponent

public DaprComponentProperties withSecretStoreComponent(String secretStoreComponent)

Set the secretStoreComponent property: Name of a Dapr component to retrieve component secrets from.

Parameters:

secretStoreComponent - the secretStoreComponent value to set.

Returns:

the DaprComponentProperties object itself.

withServiceComponentBind

public DaprComponentProperties withServiceComponentBind(List<DaprComponentServiceBinding> serviceComponentBind)

Set the serviceComponentBind property: List of container app services that are bound to the Dapr component.

Parameters:

serviceComponentBind - the serviceComponentBind value to set.

Returns:

the DaprComponentProperties object itself.

withVersion

public DaprComponentProperties withVersion(String version)

Set the version property: Component version.

Parameters:

version - the version value to set.

Returns:

the DaprComponentProperties object itself.

Applies to