@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudRoute extends Object implements CloudRoute
CloudRoute.
Use the builder to create immutable instances:
ImmutableCloudRoute.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudRoute.Builder
Builds instances of type
ImmutableCloudRoute. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudRoute.Builder |
builder()
Creates a builder for
ImmutableCloudRoute. |
static ImmutableCloudRoute |
copyOf(CloudRoute instance)
Creates an immutable copy of a
CloudRoute value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudRoute that have equal attribute values. |
int |
getAppsUsingRoute() |
CloudDomain |
getDomain() |
String |
getHost() |
CloudMetadata |
getMetadata() |
String |
getPath() |
org.cloudfoundry.client.v3.Metadata |
getV3Metadata() |
int |
hashCode()
Computes a hash code from attributes:
metadata, v3Metadata, appsUsingRoute, hasServiceUsingRoute, domain, host, path. |
boolean |
hasServiceUsingRoute() |
String |
toString()
Prints the immutable value
CloudRoute with attribute values. |
ImmutableCloudRoute |
withAppsUsingRoute(int value)
Copy the current immutable object by setting a value for the
appsUsingRoute attribute. |
ImmutableCloudRoute |
withDomain(CloudDomain value)
Copy the current immutable object by setting a value for the
domain attribute. |
ImmutableCloudRoute |
withHasServiceUsingRoute(boolean value)
Copy the current immutable object by setting a value for the
hasServiceUsingRoute attribute. |
ImmutableCloudRoute |
withHost(String value)
Copy the current immutable object by setting a value for the
host attribute. |
ImmutableCloudRoute |
withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCloudRoute |
withPath(String value)
Copy the current immutable object by setting a value for the
path attribute. |
ImmutableCloudRoute |
withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for the
v3Metadata attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitderive, getName, isUsedpublic CloudMetadata getMetadata()
getMetadata in interface CloudEntitymetadata attributepublic org.cloudfoundry.client.v3.Metadata getV3Metadata()
getV3Metadata in interface CloudEntityv3Metadata attributepublic int getAppsUsingRoute()
getAppsUsingRoute in interface CloudRouteappsUsingRoute attributepublic boolean hasServiceUsingRoute()
hasServiceUsingRoute in interface CloudRoutehasServiceUsingRoute attributepublic CloudDomain getDomain()
getDomain in interface CloudRoutedomain attributepublic String getHost()
getHost in interface CloudRoutehost attributepublic String getPath()
getPath in interface CloudRoutepath attributepublic final ImmutableCloudRoute withMetadata(CloudMetadata value)
metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for metadata (can be null)this objectpublic final ImmutableCloudRoute withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
v3Metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for v3Metadata (can be null)this objectpublic final ImmutableCloudRoute withAppsUsingRoute(int value)
appsUsingRoute attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for appsUsingRoutethis objectpublic final ImmutableCloudRoute withHasServiceUsingRoute(boolean value)
hasServiceUsingRoute attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for hasServiceUsingRoutethis objectpublic final ImmutableCloudRoute withDomain(CloudDomain value)
domain attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for domain (can be null)this objectpublic final ImmutableCloudRoute withHost(String value)
host attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for host (can be null)this objectpublic final ImmutableCloudRoute withPath(String value)
path attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for path (can be null)this objectpublic boolean equals(Object another)
ImmutableCloudRoute that have equal attribute values.public int hashCode()
metadata, v3Metadata, appsUsingRoute, hasServiceUsingRoute, domain, host, path.public String toString()
CloudRoute with attribute values.public static ImmutableCloudRoute copyOf(CloudRoute instance)
CloudRoute value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableCloudRoute.Builder builder()
ImmutableCloudRoute.
ImmutableCloudRoute.builder()
.metadata(org.cloudfoundry.client.lib.domain.CloudMetadata | null) // nullable metadata
.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable v3Metadata
.appsUsingRoute(int) // optional appsUsingRoute
.hasServiceUsingRoute(boolean) // optional hasServiceUsingRoute
.domain(org.cloudfoundry.client.lib.domain.CloudDomain | null) // nullable domain
.host(String | null) // nullable host
.path(String | null) // nullable path
.build();
Copyright © 2020 SAP SE. All rights reserved.