Class CloudFoundryContext
java.lang.Object
org.springframework.cloud.servicebroker.model.Context
org.springframework.cloud.servicebroker.model.CloudFoundryContext
Cloud Foundry specific contextual information under which the service instance is to be
provisioned or updated.
- Author:
- Scott Frederick, Roy Clarkson
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing aCloudFoundryContext
.Nested classes/interfaces inherited from class org.springframework.cloud.servicebroker.model.Context
Context.ContextBaseBuilder<R extends Context,
B extends Context.ContextBaseBuilder<R, B>> -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Cloud Foundry platform key.static final String
Instance Name key.static final String
Organization Annotations key.static final String
Organization GUID key.static final String
Organization Name key.static final String
Space Annotations key.static final String
Space GUID key.static final String
Space Name key.Fields inherited from class org.springframework.cloud.servicebroker.model.Context
platform, PLATFORM_KEY, properties
-
Constructor Summary
ConstructorDescriptionCloudFoundryContext
(String organizationGuid, String organizationName, String spaceGuid, String spaceName, String instanceName, Map<String, Object> properties) Create a new CloudFoundryContext.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. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Builder for constructing aCloudFoundryContext
.Retrieve the instance name from the collection of platform properties.Retrieve the organization annotations from the collection of platform properties.Retrieve the organization GUID from the collection of platform properties.Retrieve the organization name from the collection of platform properties.Avoid polluting the serialized context with duplicated keys.Retrieve the space annotations from the collection of platform properties.Retrieve the space GUID from the collection of platform properties.Retrieve the space name from the collection of platform properties.Methods inherited from class org.springframework.cloud.servicebroker.model.Context
canEqual, equals, getMapProperty, getPlatform, getProperties, getProperty, getStringProperty, hashCode, setMapProperty, setProperties, setStringProperty, toString
-
Field Details
-
CLOUD_FOUNDRY_PLATFORM
Cloud Foundry platform key.- See Also:
-
ORGANIZATION_GUID_KEY
Organization GUID key.- See Also:
-
ORGANIZATION_NAME_KEY
Organization Name key.- See Also:
-
ORGANIZATION_ANNOTATIONS_KEY
Organization Annotations key.- See Also:
-
SPACE_GUID_KEY
Space GUID key.- See Also:
-
SPACE_NAME_KEY
Space Name key.- See Also:
-
SPACE_ANNOTATIONS_KEY
Space Annotations key.- See Also:
-
INSTANCE_NAME_KEY
Instance Name key.- See Also:
-
-
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 GUIDorganizationName
- the organization namespaceGuid
- the space GUIDspaceName
- the space nameinstanceName
- the instance nameproperties
- 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 GUIDorganizationName
- the organization nameorganizationAnnotations
- organization annotationsspaceGuid
- the space GUIDspaceName
- the space namespaceAnnotations
- the space annotationsinstanceName
- the instance nameproperties
- additional properties
-
-
Method Details
-
getSerializableProperties
Avoid polluting the serialized context with duplicated keys.- Returns:
- a map of properties
-
getOrganizationGuid
Retrieve the organization GUID from the collection of platform properties.- Returns:
- the organization GUID
-
getOrganizationName
Retrieve the organization name from the collection of platform properties.- Returns:
- the organization name
-
getOrganizationAnnotations
Retrieve the organization annotations from the collection of platform properties.- Returns:
- the organization annotations
-
getSpaceGuid
Retrieve the space GUID from the collection of platform properties.- Returns:
- the space GUID
-
getSpaceName
Retrieve the space name from the collection of platform properties.- Returns:
- the space name
-
getSpaceAnnotations
Retrieve the space annotations from the collection of platform properties.- Returns:
- the space annotations
-
getInstanceName
Retrieve the instance name from the collection of platform properties.- Returns:
- the instance name
-
builder
Builder for constructing aCloudFoundryContext
.- Returns:
- the builder
-