Class DaprComponentProperties
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentProperties
-
public final class DaprComponentProperties extends Object
Dapr Component resource specific properties.
-
-
Constructor Summary
Constructors Constructor Description DaprComponentProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
componentType()
Get the componentType property: Component type.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.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
withVersion(String version)
Set the version property: Component version.
-
-
-
Method Detail
-
componentType
public String componentType()
Get the componentType property: Component type.- Returns:
- the componentType 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.
-
version
public String version()
Get the version property: Component version.- Returns:
- the version value.
-
withVersion
public DaprComponentProperties withVersion(String version)
Set the version property: Component version.- Parameters:
version
- the version value to set.- Returns:
- the DaprComponentProperties object itself.
-
ignoreErrors
public Boolean ignoreErrors()
Get the ignoreErrors property: Boolean describing if the component errors are ignores.- Returns:
- the ignoreErrors value.
-
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.
-
initTimeout
public String initTimeout()
Get the initTimeout property: Initialization timeout.- Returns:
- the initTimeout value.
-
withInitTimeout
public DaprComponentProperties withInitTimeout(String initTimeout)
Set the initTimeout property: Initialization timeout.- Parameters:
initTimeout
- the initTimeout value to set.- Returns:
- the DaprComponentProperties object itself.
-
secrets
public List<Secret> secrets()
Get the secrets property: Collection of secrets used by a Dapr component.- Returns:
- the secrets value.
-
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.
-
metadata
public List<DaprMetadata> metadata()
Get the metadata property: Component metadata.- Returns:
- the metadata value.
-
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.
-
scopes
public List<String> scopes()
Get the scopes property: Names of container apps that can use this Dapr component.- Returns:
- the scopes value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-