Class ImmutableCloudRoute
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudRoute
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudRoute
-
- All Implemented Interfaces:
Derivable<CloudRoute>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudRoute extends CloudRoute
Immutable implementation ofCloudRoute.Use the builder to create immutable instances:
ImmutableCloudRoute.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudRoute.BuilderBuilds instances of typeImmutableCloudRoute.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudRoute.Builderbuilder()Creates a builder forImmutableCloudRoute.static ImmutableCloudRoutecopyOf(CloudRoute instance)Creates an immutable copy of aCloudRoutevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudRoutethat have equal attribute values.intgetAppsUsingRoute()CloudDomaingetDomain()StringgetHost()CloudMetadatagetMetadata()StringgetPath()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:metadata,v3Metadata,appsUsingRoute,hasServiceUsingRoute,domain,host,path.booleanhasServiceUsingRoute()StringtoString()Prints the immutable valueCloudRoutewith attribute values.ImmutableCloudRoutewithAppsUsingRoute(int value)Copy the current immutable object by setting a value for theappsUsingRouteattribute.ImmutableCloudRoutewithDomain(CloudDomain value)Copy the current immutable object by setting a value for thedomainattribute.ImmutableCloudRoutewithHasServiceUsingRoute(boolean value)Copy the current immutable object by setting a value for thehasServiceUsingRouteattribute.ImmutableCloudRoutewithHost(String value)Copy the current immutable object by setting a value for thehostattribute.ImmutableCloudRoutewithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudRoutewithPath(String value)Copy the current immutable object by setting a value for thepathattribute.ImmutableCloudRoutewithV3Metadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for thev3Metadataattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudRoute
derive, getName, isUsed
-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudEntity
getGuid
-
-
-
-
Method Detail
-
getMetadata
public CloudMetadata getMetadata()
- Specified by:
getMetadatain classCloudEntity- Returns:
- The value of the
metadataattribute
-
getV3Metadata
public org.cloudfoundry.client.v3.Metadata getV3Metadata()
- Specified by:
getV3Metadatain classCloudEntity- Returns:
- The value of the
v3Metadataattribute
-
getAppsUsingRoute
public int getAppsUsingRoute()
- Overrides:
getAppsUsingRoutein classCloudRoute- Returns:
- The value of the
appsUsingRouteattribute
-
hasServiceUsingRoute
public boolean hasServiceUsingRoute()
- Overrides:
hasServiceUsingRoutein classCloudRoute- Returns:
- The value of the
hasServiceUsingRouteattribute
-
getDomain
public CloudDomain getDomain()
- Specified by:
getDomainin classCloudRoute- Returns:
- The value of the
domainattribute
-
getHost
public String getHost()
- Specified by:
getHostin classCloudRoute- Returns:
- The value of the
hostattribute
-
getPath
public String getPath()
- Specified by:
getPathin classCloudRoute- Returns:
- The value of the
pathattribute
-
withMetadata
public final ImmutableCloudRoute withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for themetadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withV3Metadata
public final ImmutableCloudRoute withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for thev3Metadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v3Metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withAppsUsingRoute
public final ImmutableCloudRoute withAppsUsingRoute(int value)
Copy the current immutable object by setting a value for theappsUsingRouteattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for appsUsingRoute- Returns:
- A modified copy of the
thisobject
-
withHasServiceUsingRoute
public final ImmutableCloudRoute withHasServiceUsingRoute(boolean value)
Copy the current immutable object by setting a value for thehasServiceUsingRouteattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hasServiceUsingRoute- Returns:
- A modified copy of the
thisobject
-
withDomain
public final ImmutableCloudRoute withDomain(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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withHost
public final ImmutableCloudRoute withHost(String value)
Copy the current immutable object by setting a value for thehostattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for host (can benull)- Returns:
- A modified copy of the
thisobject
-
withPath
public final ImmutableCloudRoute withPath(String value)
Copy the current immutable object by setting a value for thepathattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for path (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudRoutethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:metadata,v3Metadata,appsUsingRoute,hasServiceUsingRoute,domain,host,path.
-
toString
public String toString()
Prints the immutable valueCloudRoutewith attribute values.
-
copyOf
public static ImmutableCloudRoute copyOf(CloudRoute instance)
Creates an immutable copy of aCloudRoutevalue. 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 CloudRoute instance
-
builder
public static ImmutableCloudRoute.Builder builder()
Creates a builder forImmutableCloudRoute.ImmutableCloudRoute.builder() .metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.appsUsingRoute(int) // optionalappsUsingRoute.hasServiceUsingRoute(boolean) // optionalhasServiceUsingRoute.domain(com.sap.cloudfoundry.client.facade.domain.CloudDomain | null) // nullabledomain.host(String | null) // nullablehost.path(String | null) // nullablepath.build();- Returns:
- A new ImmutableCloudRoute builder
-
-