Class CloudFoundryContext

java.lang.Object
org.springframework.cloud.servicebroker.model.Context
org.springframework.cloud.servicebroker.model.CloudFoundryContext

public final class CloudFoundryContext extends Context
Cloud Foundry specific contextual information under which the service instance is to be provisioned or updated.
Author:
Scott Frederick, Roy Clarkson
  • Field Details

  • Constructor Details

    • CloudFoundryContext

      public CloudFoundryContext(String organizationGuid, String organizationName, String spaceGuid, String spaceName, String instanceName, Map<String,Object> properties)
      Create a new CloudFoundryContext.
      Parameters:
      organizationGuid - the organization GUID
      organizationName - the organization name
      spaceGuid - the space GUID
      spaceName - the space name
      instanceName - the instance name
      properties - additional properties
    • CloudFoundryContext

      public CloudFoundryContext(String organizationGuid, String organizationName, Map<String,Object> organizationAnnotations, String spaceGuid, String spaceName, Map<String,Object> spaceAnnotations, String instanceName, Map<String,Object> properties)
      Create a new CloudFoundryContext.
      Parameters:
      organizationGuid - the organization GUID
      organizationName - the organization name
      organizationAnnotations - organization annotations
      spaceGuid - the space GUID
      spaceName - the space name
      spaceAnnotations - the space annotations
      instanceName - the instance name
      properties - additional properties
  • Method Details

    • getSerializableProperties

      public Map<String,Object> getSerializableProperties()
      Avoid polluting the serialized context with duplicated keys.
      Returns:
      a map of properties
    • getOrganizationGuid

      public String getOrganizationGuid()
      Retrieve the organization GUID from the collection of platform properties.
      Returns:
      the organization GUID
    • getOrganizationName

      public String getOrganizationName()
      Retrieve the organization name from the collection of platform properties.
      Returns:
      the organization name
    • getOrganizationAnnotations

      public Map<String,Object> getOrganizationAnnotations()
      Retrieve the organization annotations from the collection of platform properties.
      Returns:
      the organization annotations
    • getSpaceGuid

      public String getSpaceGuid()
      Retrieve the space GUID from the collection of platform properties.
      Returns:
      the space GUID
    • getSpaceName

      public String getSpaceName()
      Retrieve the space name from the collection of platform properties.
      Returns:
      the space name
    • getSpaceAnnotations

      public Map<String,Object> getSpaceAnnotations()
      Retrieve the space annotations from the collection of platform properties.
      Returns:
      the space annotations
    • getInstanceName

      public String getInstanceName()
      Retrieve the instance name from the collection of platform properties.
      Returns:
      the instance name
    • builder

      Builder for constructing a CloudFoundryContext.
      Returns:
      the builder