@Generated(value="OracleSDKGenerator", comments="API Version: 20190501") public final class ApiSpecificationRoute extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A single route that forwards requests to a particular backend and may contain some additional
policies.
Note: Objects should always be created or deserialized using the ApiSpecificationRoute.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the ApiSpecificationRoute.Builder
, which maintain a
set of all explicitly set fields called ApiSpecificationRoute.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ApiSpecificationRoute.Builder |
static class |
ApiSpecificationRoute.Methods |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ApiSpecificationRoute(String path,
List<ApiSpecificationRoute.Methods> methods,
ApiSpecificationRouteRequestPolicies requestPolicies,
ApiSpecificationRouteResponsePolicies responsePolicies,
ApiSpecificationLoggingPolicies loggingPolicies,
ApiSpecificationRouteBackend backend)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ApiSpecificationRoute.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
ApiSpecificationRouteBackend |
getBackend() |
ApiSpecificationLoggingPolicies |
getLoggingPolicies() |
List<ApiSpecificationRoute.Methods> |
getMethods()
A list of allowed methods on this route.
|
String |
getPath()
A URL path pattern that must be matched on this route.
|
ApiSpecificationRouteRequestPolicies |
getRequestPolicies() |
ApiSpecificationRouteResponsePolicies |
getResponsePolicies() |
int |
hashCode() |
ApiSpecificationRoute.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"path","methods","requestPolicies","responsePolicies","loggingPolicies","backend"}) public ApiSpecificationRoute(String path, List<ApiSpecificationRoute.Methods> methods, ApiSpecificationRouteRequestPolicies requestPolicies, ApiSpecificationRouteResponsePolicies responsePolicies, ApiSpecificationLoggingPolicies loggingPolicies, ApiSpecificationRouteBackend backend)
public static ApiSpecificationRoute.Builder builder()
Create a new builder.
public ApiSpecificationRoute.Builder toBuilder()
public String getPath()
A URL path pattern that must be matched on this route. The path pattern may contain a subset of RFC 6570 identifiers to allow wildcard and parameterized matching.
public List<ApiSpecificationRoute.Methods> getMethods()
A list of allowed methods on this route.
public ApiSpecificationRouteRequestPolicies getRequestPolicies()
public ApiSpecificationRouteResponsePolicies getResponsePolicies()
public ApiSpecificationLoggingPolicies getLoggingPolicies()
public ApiSpecificationRouteBackend getBackend()
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.