Share via


DaprComponentInner Class

public final class DaprComponentInner
extends ProxyResource

Dapr Component.

Constructor Summary

Constructor Description
DaprComponentInner()

Creates an instance of DaprComponentInner class.

Method Summary

Modifier and Type Method and Description
String componentType()

Get the componentType property: Component type.

String deploymentErrors()

Get the deploymentErrors property: Any errors that occurred during deployment or deployment validation.

static DaprComponentInner fromJson(JsonReader jsonReader)

Reads an instance of DaprComponentInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

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.

String name()

Get the name property: The name of the resource.

DaprComponentProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the Dapr Component.

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.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

String version()

Get the version property: Component version.

DaprComponentInner withComponentType(String componentType)

Set the componentType property: Component type.

DaprComponentInner withIgnoreErrors(Boolean ignoreErrors)

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

DaprComponentInner withInitTimeout(String initTimeout)

Set the initTimeout property: Initialization timeout.

DaprComponentInner withMetadata(List<DaprMetadata> metadata)

Set the metadata property: Component metadata.

DaprComponentInner withScopes(List<String> scopes)

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

DaprComponentInner withSecrets(List<Secret> secrets)

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

DaprComponentInner withSecretStoreComponent(String secretStoreComponent)

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

DaprComponentInner withVersion(String version)

Set the version property: Component version.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DaprComponentInner

public DaprComponentInner()

Creates an instance of DaprComponentInner class.

Method Details

componentType

public String componentType()

Get the componentType property: Component type.

Returns:

the componentType value.

deploymentErrors

public String deploymentErrors()

Get the deploymentErrors property: Any errors that occurred during deployment or deployment validation.

Returns:

the deploymentErrors value.

fromJson

public static DaprComponentInner fromJson(JsonReader jsonReader)

Reads an instance of DaprComponentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DaprComponentInner.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DaprComponentInner.name()

Returns:

the name value.

provisioningState

public DaprComponentProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the Dapr Component.

Returns:

the provisioningState 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.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DaprComponentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DaprComponentInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Component version.

Returns:

the version value.

withComponentType

public DaprComponentInner withComponentType(String componentType)

Set the componentType property: Component type.

Parameters:

componentType - the componentType value to set.

Returns:

the DaprComponentInner object itself.

withIgnoreErrors

public DaprComponentInner withIgnoreErrors(Boolean ignoreErrors)

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

Parameters:

ignoreErrors - the ignoreErrors value to set.

Returns:

the DaprComponentInner object itself.

withInitTimeout

public DaprComponentInner withInitTimeout(String initTimeout)

Set the initTimeout property: Initialization timeout.

Parameters:

initTimeout - the initTimeout value to set.

Returns:

the DaprComponentInner object itself.

withMetadata

public DaprComponentInner withMetadata(List<DaprMetadata> metadata)

Set the metadata property: Component metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the DaprComponentInner object itself.

withScopes

public DaprComponentInner 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 DaprComponentInner object itself.

withSecrets

public DaprComponentInner 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 DaprComponentInner object itself.

withSecretStoreComponent

public DaprComponentInner 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 DaprComponentInner object itself.

withVersion

public DaprComponentInner withVersion(String version)

Set the version property: Component version.

Parameters:

version - the version value to set.

Returns:

the DaprComponentInner object itself.

Applies to