HttpRouteRule Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.models.HttpRouteRule

Implements

public final class HttpRouteRule
implements JsonSerializable<HttpRouteRule>

Http Route rule.

Constructor Summary

Constructor Description
HttpRouteRule()

Creates an instance of HttpRouteRule class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of rule.

static HttpRouteRule fromJson(JsonReader jsonReader)

Reads an instance of HttpRouteRule from the JsonReader.

List<HttpRoute> routes()

Get the routes property: Routing configuration that will allow matches on specific paths/headers.

List<HttpRouteTarget> targets()

Get the targets property: Targets- container apps, revisions, labels.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HttpRouteRule withDescription(String description)

Set the description property: Description of rule.

HttpRouteRule withRoutes(List<HttpRoute> routes)

Set the routes property: Routing configuration that will allow matches on specific paths/headers.

HttpRouteRule 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:

the description value.

fromJson

public static HttpRouteRule fromJson(JsonReader jsonReader)

Reads an instance of HttpRouteRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

routes

public List<HttpRoute> routes()

Get the routes property: Routing configuration that will allow matches on specific paths/headers.

Returns:

the routes value.

targets

public List<HttpRouteTarget> targets()

Get the targets property: Targets- container apps, revisions, labels.

Returns:

the targets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public HttpRouteRule withDescription(String description)

Set the description property: Description of rule. Optional.

Parameters:

description - the description value to set.

Returns:

the HttpRouteRule object itself.

withRoutes

public HttpRouteRule withRoutes(List<HttpRoute> routes)

Set the routes property: Routing configuration that will allow matches on specific paths/headers.

Parameters:

routes - the routes value to set.

Returns:

the HttpRouteRule object itself.

withTargets

public HttpRouteRule withTargets(List<HttpRouteTarget> targets)

Set the targets property: Targets- container apps, revisions, labels.

Parameters:

targets - the targets value to set.

Returns:

the HttpRouteRule object itself.

Applies to