Class ImmutableCloudServiceInstance
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudServiceInstance
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceInstance
-
- All Implemented Interfaces:
Derivable<CloudServiceInstance>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudServiceInstance extends CloudServiceInstance
Immutable implementation ofCloudServiceInstance.Use the builder to create immutable instances:
ImmutableCloudServiceInstance.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudServiceInstance.BuilderBuilds instances of typeImmutableCloudServiceInstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudServiceInstance.Builderbuilder()Creates a builder forImmutableCloudServiceInstance.static ImmutableCloudServiceInstancecopyOf(CloudServiceInstance instance)Creates an immutable copy of aCloudServiceInstancevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudServiceInstancethat have equal attribute values.StringgetBroker()Map<String,Object>getCredentials()StringgetLabel()ServiceOperationgetLastOperation()CloudMetadatagetMetadata()StringgetName()StringgetPlan()StringgetProvider()StringgetSyslogDrainUrl()List<String>getTags()org.cloudfoundry.client.v3.serviceinstances.ServiceInstanceTypegetType()org.cloudfoundry.client.v3.MetadatagetV3Metadata()StringgetVersion()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,label,plan,provider,broker,version,credentials,syslogDrainUrl,tags,type,lastOperation.StringtoString()Prints the immutable valueCloudServiceInstancewith attribute values.ImmutableCloudServiceInstancewithBroker(String value)Copy the current immutable object by setting a value for thebrokerattribute.ImmutableCloudServiceInstancewithCredentials(Map<String,? extends Object> entries)Copy the current immutable object by replacing thecredentialsmap with the specified map.ImmutableCloudServiceInstancewithLabel(String value)Copy the current immutable object by setting a value for thelabelattribute.ImmutableCloudServiceInstancewithLastOperation(ServiceOperation value)Copy the current immutable object by setting a value for thelastOperationattribute.ImmutableCloudServiceInstancewithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudServiceInstancewithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudServiceInstancewithPlan(String value)Copy the current immutable object by setting a value for theplanattribute.ImmutableCloudServiceInstancewithProvider(String value)Copy the current immutable object by setting a value for theproviderattribute.ImmutableCloudServiceInstancewithSyslogDrainUrl(String value)Copy the current immutable object by setting a value for thesyslogDrainUrlattribute.ImmutableCloudServiceInstancewithTags(Iterable<String> elements)Copy the current immutable object with elements that replace the content oftags.ImmutableCloudServiceInstancewithTags(String... elements)Copy the current immutable object with elements that replace the content oftags.ImmutableCloudServiceInstancewithType(org.cloudfoundry.client.v3.serviceinstances.ServiceInstanceType value)Copy the current immutable object by setting a value for thetypeattribute.ImmutableCloudServiceInstancewithV3Metadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for thev3Metadataattribute.ImmutableCloudServiceInstancewithVersion(String value)Copy the current immutable object by setting a value for theversionattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudServiceInstance
derive, isUserProvided
-
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
-
getLabel
public String getLabel()
- Specified by:
getLabelin classCloudServiceInstance- Returns:
- The value of the
labelattribute
-
getPlan
public String getPlan()
- Specified by:
getPlanin classCloudServiceInstance- Returns:
- The value of the
planattribute
-
getProvider
public String getProvider()
- Specified by:
getProviderin classCloudServiceInstance- Returns:
- The value of the
providerattribute
-
getBroker
public String getBroker()
- Specified by:
getBrokerin classCloudServiceInstance- Returns:
- The value of the
brokerattribute
-
getVersion
public String getVersion()
- Specified by:
getVersionin classCloudServiceInstance- Returns:
- The value of the
versionattribute
-
getCredentials
public Map<String,Object> getCredentials()
- Specified by:
getCredentialsin classCloudServiceInstance- Returns:
- The value of the
credentialsattribute
-
getSyslogDrainUrl
public String getSyslogDrainUrl()
- Specified by:
getSyslogDrainUrlin classCloudServiceInstance- Returns:
- The value of the
syslogDrainUrlattribute
-
getTags
public List<String> getTags()
- Specified by:
getTagsin classCloudServiceInstance- Returns:
- The value of the
tagsattribute
-
getType
public org.cloudfoundry.client.v3.serviceinstances.ServiceInstanceType getType()
- Specified by:
getTypein classCloudServiceInstance- Returns:
- The value of the
typeattribute
-
getLastOperation
public ServiceOperation getLastOperation()
- Specified by:
getLastOperationin classCloudServiceInstance- Returns:
- The value of the
lastOperationattribute
-
withName
public final ImmutableCloudServiceInstance 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 ImmutableCloudServiceInstance 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 ImmutableCloudServiceInstance 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
-
withLabel
public final ImmutableCloudServiceInstance withLabel(String value)
Copy the current immutable object by setting a value for thelabelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for label (can benull)- Returns:
- A modified copy of the
thisobject
-
withPlan
public final ImmutableCloudServiceInstance withPlan(String value)
Copy the current immutable object by setting a value for theplanattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for plan (can benull)- Returns:
- A modified copy of the
thisobject
-
withProvider
public final ImmutableCloudServiceInstance withProvider(String value)
Copy the current immutable object by setting a value for theproviderattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for provider (can benull)- Returns:
- A modified copy of the
thisobject
-
withBroker
public final ImmutableCloudServiceInstance withBroker(String value)
Copy the current immutable object by setting a value for thebrokerattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for broker (can benull)- Returns:
- A modified copy of the
thisobject
-
withVersion
public final ImmutableCloudServiceInstance withVersion(String value)
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version (can benull)- Returns:
- A modified copy of the
thisobject
-
withCredentials
public final ImmutableCloudServiceInstance withCredentials(Map<String,? extends Object> entries)
Copy the current immutable object by replacing thecredentialsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the credentials map- Returns:
- A modified copy of
thisobject
-
withSyslogDrainUrl
public final ImmutableCloudServiceInstance withSyslogDrainUrl(String value)
Copy the current immutable object by setting a value for thesyslogDrainUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for syslogDrainUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withTags
public final ImmutableCloudServiceInstance withTags(String... elements)
Copy the current immutable object with elements that replace the content oftags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTags
public final ImmutableCloudServiceInstance withTags(Iterable<String> elements)
Copy the current immutable object with elements that replace the content oftags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of tags elements to set- Returns:
- A modified copy of
thisobject
-
withType
public final ImmutableCloudServiceInstance withType(org.cloudfoundry.client.v3.serviceinstances.ServiceInstanceType value)
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type (can benull)- Returns:
- A modified copy of the
thisobject
-
withLastOperation
public final ImmutableCloudServiceInstance withLastOperation(ServiceOperation value)
Copy the current immutable object by setting a value for thelastOperationattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lastOperation (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudServiceInstancethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,label,plan,provider,broker,version,credentials,syslogDrainUrl,tags,type,lastOperation.
-
toString
public String toString()
Prints the immutable valueCloudServiceInstancewith attribute values.
-
copyOf
public static ImmutableCloudServiceInstance copyOf(CloudServiceInstance instance)
Creates an immutable copy of aCloudServiceInstancevalue. 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 CloudServiceInstance instance
-
builder
public static ImmutableCloudServiceInstance.Builder builder()
Creates a builder forImmutableCloudServiceInstance.ImmutableCloudServiceInstance.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.label(String | null) // nullablelabel.plan(String | null) // nullableplan.provider(String | null) // nullableprovider.broker(String | null) // nullablebroker.version(String | null) // nullableversion.putCredential|putAllCredentials(String => Object) //credentialsmappings .syslogDrainUrl(String | null) // nullablesyslogDrainUrl.addTag|addAllTags(String) //tagselements .type(org.cloudfoundry.client.v3.serviceinstances.ServiceInstanceType | null) // nullabletype.lastOperation(com.sap.cloudfoundry.client.facade.domain.ServiceOperation | null) // nullablelastOperation.build();- Returns:
- A new ImmutableCloudServiceInstance builder
-
-