@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudServiceInstance extends RawCloudServiceInstance
RawCloudServiceInstance.
Use the builder to create immutable instances:
ImmutableRawCloudServiceInstance.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableRawCloudServiceInstance.Builder
Builds instances of type
ImmutableRawCloudServiceInstance. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableRawCloudServiceInstance.Builder |
builder()
Creates a builder for
ImmutableRawCloudServiceInstance. |
static ImmutableRawCloudServiceInstance |
copyOf(RawCloudServiceInstance instance)
Creates an immutable copy of a
RawCloudServiceInstance value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRawCloudServiceInstance that have equal attribute values. |
org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity> |
getResource() |
Derivable<CloudService> |
getService() |
List<Derivable<CloudServiceBinding>> |
getServiceBindings() |
int |
hashCode()
Computes a hash code from attributes:
resource, service, serviceBindings. |
String |
toString()
Prints the immutable value
RawCloudServiceInstance with attribute values. |
ImmutableRawCloudServiceInstance |
withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity> value)
Copy the current immutable object by setting a value for the
resource attribute. |
ImmutableRawCloudServiceInstance |
withService(Derivable<CloudService> value)
Copy the current immutable object by setting a value for the
service attribute. |
ImmutableRawCloudServiceInstance |
withServiceBindings(Derivable<CloudServiceBinding>... elements)
Copy the current immutable object with elements that replace the content of
serviceBindings. |
ImmutableRawCloudServiceInstance |
withServiceBindings(Iterable<? extends Derivable<CloudServiceBinding>> elements)
Copy the current immutable object with elements that replace the content of
serviceBindings. |
derivederive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata, parseResourceMetadatapublic org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity> getResource()
getResource in class RawCloudServiceInstanceresource attributepublic Derivable<CloudService> getService()
getService in class RawCloudServiceInstanceservice attributepublic List<Derivable<CloudServiceBinding>> getServiceBindings()
getServiceBindings in class RawCloudServiceInstanceserviceBindings attributepublic final ImmutableRawCloudServiceInstance withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity> value)
resource attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for resourcethis objectpublic final ImmutableRawCloudServiceInstance withService(Derivable<CloudService> value)
service attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for servicethis object@SafeVarargs public final ImmutableRawCloudServiceInstance withServiceBindings(Derivable<CloudServiceBinding>... elements)
serviceBindings.elements - The elements to setthis objectpublic final ImmutableRawCloudServiceInstance withServiceBindings(Iterable<? extends Derivable<CloudServiceBinding>> elements)
serviceBindings.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of serviceBindings elements to setthis objectpublic boolean equals(Object another)
ImmutableRawCloudServiceInstance that have equal attribute values.public int hashCode()
resource, service, serviceBindings.public String toString()
RawCloudServiceInstance with attribute values.public static ImmutableRawCloudServiceInstance copyOf(RawCloudServiceInstance instance)
RawCloudServiceInstance 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 ImmutableRawCloudServiceInstance.Builder builder()
ImmutableRawCloudServiceInstance.
ImmutableRawCloudServiceInstance.builder()
.resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity>) // required resource
.service(org.cloudfoundry.client.lib.domain.Derivable<org.cloudfoundry.client.lib.domain.CloudService>) // required service
.addServiceBinding|addAllServiceBindings(org.cloudfoundry.client.lib.domain.Derivable<org.cloudfoundry.client.lib.domain.CloudServiceBinding>) // serviceBindings elements
.build();
Copyright © 2020 SAP SE. All rights reserved.