Class ImmutableRawCloudServiceBroker
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudServiceBroker>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceBroker
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudServiceBroker
-
- All Implemented Interfaces:
Derivable<CloudServiceBroker>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudServiceBroker extends RawCloudServiceBroker
Immutable implementation ofRawCloudServiceBroker.Use the builder to create immutable instances:
ImmutableRawCloudServiceBroker.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudServiceBroker.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudServiceBroker.BuilderBuilds instances of typeImmutableRawCloudServiceBroker.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudServiceBroker.Builderbuilder()Creates a builder forImmutableRawCloudServiceBroker.static ImmutableRawCloudServiceBrokercopyOf(RawCloudServiceBroker instance)Creates an immutable copy of aRawCloudServiceBrokervalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudServiceBrokerthat have equal attribute values.org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebrokers.ServiceBrokerEntity>getResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudServiceBrokerof(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebrokers.ServiceBrokerEntity> resource)Construct a new immutableRawCloudServiceBrokerinstance.StringtoString()Prints the immutable valueRawCloudServiceBrokerwith attribute values.ImmutableRawCloudServiceBrokerwithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebrokers.ServiceBrokerEntity> value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceBroker
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata, parseResourceMetadata
-
-
-
-
Method Detail
-
getResource
public org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebrokers.ServiceBrokerEntity> getResource()
- Specified by:
getResourcein classRawCloudServiceBroker- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudServiceBroker withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebrokers.ServiceBrokerEntity> value)
Copy the current immutable object by setting a value for theresourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for resource- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudServiceBrokerthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudServiceBrokerwith attribute values.
-
of
public static ImmutableRawCloudServiceBroker of(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebrokers.ServiceBrokerEntity> resource)
Construct a new immutableRawCloudServiceBrokerinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudServiceBroker instance
-
copyOf
public static ImmutableRawCloudServiceBroker copyOf(RawCloudServiceBroker instance)
Creates an immutable copy of aRawCloudServiceBrokervalue. 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 RawCloudServiceBroker instance
-
builder
public static ImmutableRawCloudServiceBroker.Builder builder()
Creates a builder forImmutableRawCloudServiceBroker.ImmutableRawCloudServiceBroker.builder() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebrokers.ServiceBrokerEntity>) // requiredresource.build();- Returns:
- A new ImmutableRawCloudServiceBroker builder
-
-