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().
-
-
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.Derivable<CloudDomain>getDomain()org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routes.RouteEntity>getResource()List<org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routemappings.RouteMappingEntity>>getRouteMappingResources()inthashCode()Computes a hash code from attributes:resource,routeMappingResources,domain.StringtoString()Prints the immutable valueRawCloudRoutewith attribute values.ImmutableRawCloudRoutewithDomain(Derivable<CloudDomain> value)Copy the current immutable object by setting a value for thedomainattribute.ImmutableRawCloudRoutewithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routes.RouteEntity> value)Copy the current immutable object by setting a value for theresourceattribute.ImmutableRawCloudRoutewithRouteMappingResources(Iterable<? extends org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routemappings.RouteMappingEntity>> elements)Copy the current immutable object with elements that replace the content ofrouteMappingResources.ImmutableRawCloudRoutewithRouteMappingResources(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routemappings.RouteMappingEntity>... elements)Copy the current immutable object with elements that replace the content ofrouteMappingResources.-
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, parseResourceMetadata
-
-
-
-
Method Detail
-
getResource
public org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routes.RouteEntity> getResource()
- Specified by:
getResourcein classRawCloudRoute- Returns:
- The value of the
resourceattribute
-
getRouteMappingResources
public List<org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routemappings.RouteMappingEntity>> getRouteMappingResources()
- Specified by:
getRouteMappingResourcesin classRawCloudRoute- Returns:
- The value of the
routeMappingResourcesattribute
-
getDomain
public Derivable<CloudDomain> getDomain()
- Specified by:
getDomainin classRawCloudRoute- Returns:
- The value of the
domainattribute
-
withResource
public final ImmutableRawCloudRoute withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routes.RouteEntity> value)
Copy the current immutable object by setting a value for theresourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for resource- Returns:
- A modified copy of the
thisobject
-
withRouteMappingResources
@SafeVarargs public final ImmutableRawCloudRoute withRouteMappingResources(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routemappings.RouteMappingEntity>... elements)
Copy the current immutable object with elements that replace the content ofrouteMappingResources.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRouteMappingResources
public final ImmutableRawCloudRoute withRouteMappingResources(Iterable<? extends org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routemappings.RouteMappingEntity>> elements)
Copy the current immutable object with elements that replace the content ofrouteMappingResources. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of routeMappingResources elements to set- Returns:
- A modified copy of
thisobject
-
withDomain
public final ImmutableRawCloudRoute withDomain(Derivable<CloudDomain> value)
Copy the current immutable object by setting a value for thedomainattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for domain- 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:resource,routeMappingResources,domain.
-
toString
public String toString()
Prints the immutable valueRawCloudRoutewith attribute values.
-
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() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routes.RouteEntity>) // requiredresource.addRouteMappingResource|addAllRouteMappingResources(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.routemappings.RouteMappingEntity>) //routeMappingResourceselements .domain(com.sap.cloudfoundry.client.facade.domain.Derivable<com.sap.cloudfoundry.client.facade.domain.CloudDomain>) // requireddomain.build();- Returns:
- A new ImmutableRawCloudRoute builder
-
-