HttpRouteRule Class
- java.
lang. Object - com.
azure. resourcemanager. appcontainers. models. HttpRouteRule
- com.
Implements
public final class HttpRouteRule
implements JsonSerializable<HttpRouteRule>
Http Route rule.
Constructor Summary
| Constructor | Description |
|---|---|
| HttpRouteRule() |
Creates an instance of Http |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
description()
Get the description property: Description of rule. |
|
static
Http |
fromJson(JsonReader jsonReader)
Reads an instance of Http |
|
List<Http |
routes()
Get the routes property: Routing configuration that will allow matches on specific paths/headers. |
|
List<Http |
targets()
Get the targets property: Targets- container apps, revisions, labels. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Http |
withDescription(String description)
Set the description property: Description of rule. |
|
Http |
withRoutes(List<HttpRoute> routes)
Set the routes property: Routing configuration that will allow matches on specific paths/headers. |
|
Http |
withTargets(List<HttpRouteTarget> targets)
Set the targets property: Targets- container apps, revisions, labels. |
Methods inherited from java.lang.Object
Constructor Details
HttpRouteRule
public HttpRouteRule()
Creates an instance of HttpRouteRule class.
Method Details
description
public String description()
Get the description property: Description of rule. Optional.
Returns:
fromJson
public static HttpRouteRule fromJson(JsonReader jsonReader)
Reads an instance of HttpRouteRule from the JsonReader.
Parameters:
Returns:
Throws:
routes
public List<HttpRoute> routes()
Get the routes property: Routing configuration that will allow matches on specific paths/headers.
Returns:
targets
public List<HttpRouteTarget> targets()
Get the targets property: Targets- container apps, revisions, labels.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public HttpRouteRule withDescription(String description)
Set the description property: Description of rule. Optional.
Parameters:
Returns:
withRoutes
public HttpRouteRule withRoutes(List<HttpRoute> routes)
Set the routes property: Routing configuration that will allow matches on specific paths/headers.
Parameters:
Returns:
withTargets
public HttpRouteRule withTargets(List<HttpRouteTarget> targets)
Set the targets property: Targets- container apps, revisions, labels.
Parameters:
Returns: