Class ImmutableRawCloudRoute
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudRoute>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudRoute
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudRoute
-
- All Implemented Interfaces:
Derivable<CloudRoute>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudRoute extends RawCloudRoute
Immutable implementation ofRawCloudRoute.Use the builder to create immutable instances:
ImmutableRawCloudRoute.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudRoute.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudRoute.BuilderBuilds instances of typeImmutableRawCloudRoute.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudRoute.Builderbuilder()Creates a builder forImmutableRawCloudRoute.static ImmutableRawCloudRoutecopyOf(RawCloudRoute instance)Creates an immutable copy of aRawCloudRoutevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudRoutethat have equal attribute values.org.cloudfoundry.client.v3.routes.RoutegetRoute()inthashCode()Computes a hash code from attributes:route.static ImmutableRawCloudRouteof(org.cloudfoundry.client.v3.routes.Route route)Construct a new immutableRawCloudRouteinstance.StringtoString()Prints the immutable valueRawCloudRoutewith attribute values.ImmutableRawCloudRoutewithRoute(org.cloudfoundry.client.v3.routes.Route value)Copy the current immutable object by setting a value for therouteattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudRoute
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata
-
-
-
-
Method Detail
-
getRoute
public org.cloudfoundry.client.v3.routes.Route getRoute()
- Specified by:
getRoutein classRawCloudRoute- Returns:
- The value of the
routeattribute
-
withRoute
public final ImmutableRawCloudRoute withRoute(org.cloudfoundry.client.v3.routes.Route value)
Copy the current immutable object by setting a value for therouteattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for route- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudRoutethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:route.
-
toString
public String toString()
Prints the immutable valueRawCloudRoutewith attribute values.
-
of
public static ImmutableRawCloudRoute of(org.cloudfoundry.client.v3.routes.Route route)
Construct a new immutableRawCloudRouteinstance.- Parameters:
route- The value for therouteattribute- Returns:
- An immutable RawCloudRoute instance
-
copyOf
public static ImmutableRawCloudRoute copyOf(RawCloudRoute instance)
Creates an immutable copy of aRawCloudRoutevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable RawCloudRoute instance
-
builder
public static ImmutableRawCloudRoute.Builder builder()
Creates a builder forImmutableRawCloudRoute.ImmutableRawCloudRoute.builder() .route(org.cloudfoundry.client.v3.routes.Route) // requiredroute.build();- Returns:
- A new ImmutableRawCloudRoute builder
-
-