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.intgetAppsUsingRoute()CloudDomaingetDomain()StringgetHost()CloudMetadatagetMetadata()StringgetName()StringgetPath()IntegergetPort()StringgetUrl()org.cloudfoundry.client.v3.MetadatagetV3Metadata()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.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.ImmutableCloudRoutewithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudRoutewithPath(String value)Copy the current immutable object by setting a value for thepathattribute.ImmutableCloudRoutewithPort(Integer value)Copy the current immutable object by setting a value for theportattribute.ImmutableCloudRoutewithUrl(String value)Copy the current immutable object by setting a value for theurlattribute.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, equals, hashCode, toString
-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudEntity
getGuid
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classCloudEntity- Returns:
- The value of the
nameattribute
-
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
-
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
-
getPort
public Integer getPort()
- Specified by:
getPortin classCloudRoute- Returns:
- The value of the
portattribute
-
getUrl
public String getUrl()
- Specified by:
getUrlin classCloudRoute- Returns:
- The value of the
urlattribute
-
withName
public final ImmutableCloudRoute withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
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
-
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- 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
-
withPort
public final ImmutableCloudRoute withPort(Integer value)
Copy the current immutable object by setting a value for theportattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for port (can benull)- Returns:
- A modified copy of the
thisobject
-
withUrl
public final ImmutableCloudRoute withUrl(String value)
Copy the current immutable object by setting a value for theurlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url- Returns:
- A modified copy of the
thisobject
-
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() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.appsUsingRoute(int) // optionalappsUsingRoute.domain(com.sap.cloudfoundry.client.facade.domain.CloudDomain) // requireddomain.host(String | null) // nullablehost.path(String | null) // nullablepath.port(Integer | null) // nullableport.url(String) // requiredurl.build();- Returns:
- A new ImmutableCloudRoute builder
-
-