Class CreateServiceInstanceRequest
Objects of this type are constructed by the framework from the headers, path variables, query parameters and message body passed to the service broker by the platform.
- Author:
- S Greenberg, Scott Frederick, Roy Clarkson
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides a fluent API for constructing aCreateServiceInstanceRequest. -
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.model.instance.AsyncParameterizedServiceInstanceRequest
parametersFields inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequest
ASYNC_REQUEST_PARAMETER, asyncAcceptedFields inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
API_INFO_LOCATION_HEADER, apiInfoLocation, BINDING_ID_PATH_VARIABLE, INSTANCE_ID_PATH_VARIABLE, ORIGINATING_IDENTITY_HEADER, originatingIdentity, PLAN_ID_PARAMETER, PLATFORM_INSTANCE_ID_VARIABLE, platformInstanceId, REQUEST_IDENTITY_HEADER, requestIdentity, SERVICE_ID_PARAMETER -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a newCreateServiceInstanceRequest.CreateServiceInstanceRequest(String serviceDefinitionId, String serviceInstanceId, String planId, ServiceDefinition serviceDefinition, Plan plan, Map<String, Object> parameters, Context context, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity, MaintenanceInfo maintenanceInfo) Construct a newCreateServiceInstanceRequest. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that provides a fluent API for constructing a CreateServiceInstanceRequest.booleanIs another object type compatible with this object.final booleanGet the maintenance info of the service instance to create.Deprecated.protected StringDetermine the organization GUID.getPlan()Get the plan of the service to createGet the ID of the plan for to the service instance to create.Get the service definition of the service to create.Get the ID of the service definition for to the service instance to create.Get the ID of the service instance to create.Deprecated.AsyncParameterizedServiceInstanceRequest.getContext()provides platform-neutral access to platform context detailsprotected StringDetermine the space GUID.final inthashCode()voidFor internal use only.voidsetServiceDefinition(ServiceDefinition serviceDefinition) This method is intended to be used internally only; usebuilder()to construct an object of this type and set all field values.voidsetServiceInstanceId(String serviceInstanceId) This method is intended to be used internally only; usebuilder()to construct an object of this type and set all field values.toString()Methods inherited from class org.springframework.cloud.servicebroker.model.instance.AsyncParameterizedServiceInstanceRequest
getContext, getParameters, getParametersMethods inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequest
isAsyncAccepted, setAsyncAcceptedMethods inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
getApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, getRequestIdentity, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId, setRequestIdentity
-
Constructor Details
-
CreateServiceInstanceRequest
public CreateServiceInstanceRequest()Construct a newCreateServiceInstanceRequest. -
CreateServiceInstanceRequest
public CreateServiceInstanceRequest(String serviceDefinitionId, String serviceInstanceId, String planId, ServiceDefinition serviceDefinition, Plan plan, Map<String, Object> parameters, Context context, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity, MaintenanceInfo maintenanceInfo) Construct a newCreateServiceInstanceRequest.- Parameters:
serviceDefinitionId- the service definition IDserviceInstanceId- the service instance IDplanId- the plan IDserviceDefinition- the service definitionplan- the planparameters- the parameterscontext- the contextasyncAccepted- does the platform accept asynchronous requestsplatformInstanceId- the platform instance IDapiInfoLocation- location of the API info endpoint of the platform instanceoriginatingIdentity- identity of the user that initiated the request from the platformrequestIdentity- identity of the request sent from the platformmaintenanceInfo- maintenance info sent by the platform
-
-
Method Details
-
getServiceInstanceId
Get the ID of the service instance to create. This value is assigned by the platform. It must be unique within the platform and can be used to correlate any resources associated with the service instance.This value is set from the :instance_id path element of the request from the platform.
- Returns:
- the service instance ID
-
setServiceInstanceId
This method is intended to be used internally only; usebuilder()to construct an object of this type and set all field values.- Parameters:
serviceInstanceId- the service instance ID to create
-
getServiceDefinitionId
Get the ID of the service definition for to the service instance to create. This will match one of the service definition IDs provided in theCatalog.This value is set from the service_id field in the body of the request from the platform
- Returns:
- the service definition ID
-
getPlanId
Get the ID of the plan for to the service instance to create. This will match one of the plan IDs provided in theCatalogwithin the specifiedServiceDefinition.This value is set from the plan_id field in the body of the request from the platform.
- Returns:
- the plan ID
-
getOrganizationGuid
Deprecated.AsyncParameterizedServiceInstanceRequest.getContext()provides platform-neutral access to platform context detailsGet the GUID of the Cloud Foundry organization that the service instance is being created in.This value is set from the organization_guid field in the body of the request from the platform.
- Returns:
- the organization GUID
-
getSpaceGuid
Deprecated.AsyncParameterizedServiceInstanceRequest.getContext()provides platform-neutral access to platform context detailsGet the GUID of the Cloud Foundry space that the service instance is being created in.This value is set from the space_guid field in the body of the request from the platform.
- Returns:
- the space GUID
-
getSpaceGuidToSerialize
Determine the space GUID.- Returns:
- the space GUID
-
getOrganizationGuidToSerialize
Determine the organization GUID.- Returns:
- the organization GUID
-
getServiceDefinition
Get the service definition of the service to create.The service definition is retrieved from the
Catalogas a convenience.- Returns:
- the service definition
-
setServiceDefinition
This method is intended to be used internally only; usebuilder()to construct an object of this type and set all field values.- Parameters:
serviceDefinition- the service definition of the service to create
-
getPlan
Get the plan of the service to createThe plan is retrieved from the
Catalogas a convenience.- Returns:
- the plan
-
setPlan
For internal use only. usebuilder()to construct an object of this type and set all field values.- Parameters:
plan- the plan of the service to create
-
getMaintenanceInfo
Get the maintenance info of the service instance to create. This value is assigned by the platform.This value is set from the :maintenance_info field in the body of the request from the platform.
- Returns:
- a MaintenanceInfo or null if none was provided
-
builder
Create a builder that provides a fluent API for constructing a CreateServiceInstanceRequest.This builder is provided to support testing of
ServiceInstanceServiceimplementations.- Returns:
- the builder
-
equals
- Overrides:
equalsin classAsyncParameterizedServiceInstanceRequest
-
canEqual
Description copied from class:ServiceBrokerRequestIs another object type compatible with this object.- Overrides:
canEqualin classAsyncParameterizedServiceInstanceRequest- Parameters:
other- the other object- Returns:
- true of compatible
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAsyncParameterizedServiceInstanceRequest
-
toString
- Overrides:
toStringin classAsyncParameterizedServiceInstanceRequest
-
AsyncParameterizedServiceInstanceRequest.getContext()provides platform-neutral access to platform context details