Class ImmutableCloudServiceOffering
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudServiceOffering
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceOffering
-
- All Implemented Interfaces:
Derivable<CloudServiceOffering>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudServiceOffering extends CloudServiceOffering
Immutable implementation ofCloudServiceOffering.Use the builder to create immutable instances:
ImmutableCloudServiceOffering.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudServiceOffering.BuilderBuilds instances of typeImmutableCloudServiceOffering.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudServiceOffering.Builderbuilder()Creates a builder forImmutableCloudServiceOffering.static ImmutableCloudServiceOfferingcopyOf(CloudServiceOffering instance)Creates an immutable copy of aCloudServiceOfferingvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudServiceOfferingthat have equal attribute values.StringgetBrokerName()StringgetDescription()StringgetDocUrl()StringgetExtra()StringgetInfoUrl()CloudMetadatagetMetadata()StringgetName()StringgetProvider()List<CloudServicePlan>getServicePlans()StringgetUniqueId()StringgetUrl()org.cloudfoundry.client.v3.MetadatagetV3Metadata()StringgetVersion()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,isActive,isBindable,servicePlans,description,docUrl,extra,infoUrl,provider,brokerName,uniqueId,url,version.BooleanisActive()BooleanisBindable()StringtoString()Prints the immutable valueCloudServiceOfferingwith attribute values.ImmutableCloudServiceOfferingwithBrokerName(String value)Copy the current immutable object by setting a value for thebrokerNameattribute.ImmutableCloudServiceOfferingwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableCloudServiceOfferingwithDocUrl(String value)Copy the current immutable object by setting a value for thedocUrlattribute.ImmutableCloudServiceOfferingwithExtra(String value)Copy the current immutable object by setting a value for theextraattribute.ImmutableCloudServiceOfferingwithInfoUrl(String value)Copy the current immutable object by setting a value for theinfoUrlattribute.ImmutableCloudServiceOfferingwithIsActive(Boolean value)Copy the current immutable object by setting a value for theisActiveattribute.ImmutableCloudServiceOfferingwithIsBindable(Boolean value)Copy the current immutable object by setting a value for theisBindableattribute.ImmutableCloudServiceOfferingwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudServiceOfferingwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudServiceOfferingwithProvider(String value)Copy the current immutable object by setting a value for theproviderattribute.ImmutableCloudServiceOfferingwithServicePlans(CloudServicePlan... elements)Copy the current immutable object with elements that replace the content ofservicePlans.ImmutableCloudServiceOfferingwithServicePlans(Iterable<? extends CloudServicePlan> elements)Copy the current immutable object with elements that replace the content ofservicePlans.ImmutableCloudServiceOfferingwithUniqueId(String value)Copy the current immutable object by setting a value for theuniqueIdattribute.ImmutableCloudServiceOfferingwithUrl(String value)Copy the current immutable object by setting a value for theurlattribute.ImmutableCloudServiceOfferingwithV3Metadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for thev3Metadataattribute.ImmutableCloudServiceOfferingwithVersion(String value)Copy the current immutable object by setting a value for theversionattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudServiceOffering
derive
-
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
-
isActive
public Boolean isActive()
- Specified by:
isActivein classCloudServiceOffering- Returns:
- The value of the
isActiveattribute
-
isBindable
public Boolean isBindable()
- Specified by:
isBindablein classCloudServiceOffering- Returns:
- The value of the
isBindableattribute
-
getServicePlans
public List<CloudServicePlan> getServicePlans()
- Specified by:
getServicePlansin classCloudServiceOffering- Returns:
- The value of the
servicePlansattribute
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classCloudServiceOffering- Returns:
- The value of the
descriptionattribute
-
getDocUrl
public String getDocUrl()
- Specified by:
getDocUrlin classCloudServiceOffering- Returns:
- The value of the
docUrlattribute
-
getExtra
public String getExtra()
- Specified by:
getExtrain classCloudServiceOffering- Returns:
- The value of the
extraattribute
-
getInfoUrl
public String getInfoUrl()
- Specified by:
getInfoUrlin classCloudServiceOffering- Returns:
- The value of the
infoUrlattribute
-
getProvider
public String getProvider()
- Specified by:
getProviderin classCloudServiceOffering- Returns:
- The value of the
providerattribute
-
getBrokerName
public String getBrokerName()
- Specified by:
getBrokerNamein classCloudServiceOffering- Returns:
- The value of the
brokerNameattribute
-
getUniqueId
public String getUniqueId()
- Specified by:
getUniqueIdin classCloudServiceOffering- Returns:
- The value of the
uniqueIdattribute
-
getUrl
public String getUrl()
- Specified by:
getUrlin classCloudServiceOffering- Returns:
- The value of the
urlattribute
-
getVersion
public String getVersion()
- Specified by:
getVersionin classCloudServiceOffering- Returns:
- The value of the
versionattribute
-
withName
public final ImmutableCloudServiceOffering 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 ImmutableCloudServiceOffering 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 ImmutableCloudServiceOffering 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
-
withIsActive
public final ImmutableCloudServiceOffering withIsActive(Boolean value)
Copy the current immutable object by setting a value for theisActiveattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isActive (can benull)- Returns:
- A modified copy of the
thisobject
-
withIsBindable
public final ImmutableCloudServiceOffering withIsBindable(Boolean value)
Copy the current immutable object by setting a value for theisBindableattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isBindable (can benull)- Returns:
- A modified copy of the
thisobject
-
withServicePlans
public final ImmutableCloudServiceOffering withServicePlans(CloudServicePlan... elements)
Copy the current immutable object with elements that replace the content ofservicePlans.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withServicePlans
public final ImmutableCloudServiceOffering withServicePlans(Iterable<? extends CloudServicePlan> elements)
Copy the current immutable object with elements that replace the content ofservicePlans. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of servicePlans elements to set- Returns:
- A modified copy of
thisobject
-
withDescription
public final ImmutableCloudServiceOffering withDescription(String value)
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withDocUrl
public final ImmutableCloudServiceOffering withDocUrl(String value)
Copy the current immutable object by setting a value for thedocUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for docUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withExtra
public final ImmutableCloudServiceOffering withExtra(String value)
Copy the current immutable object by setting a value for theextraattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for extra (can benull)- Returns:
- A modified copy of the
thisobject
-
withInfoUrl
public final ImmutableCloudServiceOffering withInfoUrl(String value)
Copy the current immutable object by setting a value for theinfoUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for infoUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withProvider
public final ImmutableCloudServiceOffering 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
-
withBrokerName
public final ImmutableCloudServiceOffering withBrokerName(String value)
Copy the current immutable object by setting a value for thebrokerNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for brokerName (can benull)- Returns:
- A modified copy of the
thisobject
-
withUniqueId
public final ImmutableCloudServiceOffering withUniqueId(String value)
Copy the current immutable object by setting a value for theuniqueIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for uniqueId (can benull)- Returns:
- A modified copy of the
thisobject
-
withUrl
public final ImmutableCloudServiceOffering 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withVersion
public final ImmutableCloudServiceOffering 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
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudServiceOfferingthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,isActive,isBindable,servicePlans,description,docUrl,extra,infoUrl,provider,brokerName,uniqueId,url,version.
-
toString
public String toString()
Prints the immutable valueCloudServiceOfferingwith attribute values.
-
copyOf
public static ImmutableCloudServiceOffering copyOf(CloudServiceOffering instance)
Creates an immutable copy of aCloudServiceOfferingvalue. 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 CloudServiceOffering instance
-
builder
public static ImmutableCloudServiceOffering.Builder builder()
Creates a builder forImmutableCloudServiceOffering.ImmutableCloudServiceOffering.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.isActive(Boolean | null) // nullableisActive.isBindable(Boolean | null) // nullableisBindable.addServicePlan|addAllServicePlans(com.sap.cloudfoundry.client.facade.domain.CloudServicePlan) //servicePlanselements .description(String | null) // nullabledescription.docUrl(String | null) // nullabledocUrl.extra(String | null) // nullableextra.infoUrl(String | null) // nullableinfoUrl.provider(String | null) // nullableprovider.brokerName(String | null) // nullablebrokerName.uniqueId(String | null) // nullableuniqueId.url(String | null) // nullableurl.version(String | null) // nullableversion.build();- Returns:
- A new ImmutableCloudServiceOffering builder
-
-