Class Dapr
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.Dapr
-
public final class Dapr extends Object
Container App Dapr configuration.
-
-
Constructor Summary
Constructors Constructor Description Dapr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
appId()
Get the appId property: Dapr application identifier.Integer
appPort()
Get the appPort property: Tells Dapr which port your application is listening on.AppProtocol
appProtocol()
Get the appProtocol property: Tells Dapr which protocol your application is using.Boolean
enabled()
Get the enabled property: Boolean indicating if the Dapr side car is enabled.void
validate()
Validates the instance.Dapr
withAppId(String appId)
Set the appId property: Dapr application identifier.Dapr
withAppPort(Integer appPort)
Set the appPort property: Tells Dapr which port your application is listening on.Dapr
withAppProtocol(AppProtocol appProtocol)
Set the appProtocol property: Tells Dapr which protocol your application is using.Dapr
withEnabled(Boolean enabled)
Set the enabled property: Boolean indicating if the Dapr side car is enabled.
-
-
-
Method Detail
-
enabled
public Boolean enabled()
Get the enabled property: Boolean indicating if the Dapr side car is enabled.- Returns:
- the enabled value.
-
withEnabled
public Dapr withEnabled(Boolean enabled)
Set the enabled property: Boolean indicating if the Dapr side car is enabled.- Parameters:
enabled
- the enabled value to set.- Returns:
- the Dapr object itself.
-
appId
public String appId()
Get the appId property: Dapr application identifier.- Returns:
- the appId value.
-
withAppId
public Dapr withAppId(String appId)
Set the appId property: Dapr application identifier.- Parameters:
appId
- the appId value to set.- Returns:
- the Dapr object itself.
-
appProtocol
public AppProtocol appProtocol()
Get the appProtocol property: Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http.- Returns:
- the appProtocol value.
-
withAppProtocol
public Dapr withAppProtocol(AppProtocol appProtocol)
Set the appProtocol property: Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http.- Parameters:
appProtocol
- the appProtocol value to set.- Returns:
- the Dapr object itself.
-
appPort
public Integer appPort()
Get the appPort property: Tells Dapr which port your application is listening on.- Returns:
- the appPort value.
-
withAppPort
public Dapr withAppPort(Integer appPort)
Set the appPort property: Tells Dapr which port your application is listening on.- Parameters:
appPort
- the appPort value to set.- Returns:
- the Dapr object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-