public final class CloudFoundryContext extends Context
Modifier and Type | Class and Description |
---|---|
static class |
CloudFoundryContext.CloudFoundryContextBuilder
Provides a fluent API for constructing a
CloudFoundryContext |
Context.ContextBaseBuilder<R extends Context,B extends Context.ContextBaseBuilder<R,B>>
Modifier and Type | Field and Description |
---|---|
static String |
CLOUD_FOUNDRY_PLATFORM
Cloud Foundry platform key
|
static String |
INSTANCE_NAME_KEY
Instance Name key
|
static String |
ORGANIZATION_GUID_KEY
Organization GUID key
|
static String |
ORGANIZATION_NAME_KEY
Organization Name key
|
static String |
SPACE_GUID_KEY
Space GUID key
|
static String |
SPACE_NAME_KEY
Space Name key
|
platform, PLATFORM_KEY, properties
Constructor and Description |
---|
CloudFoundryContext(String organizationGuid,
String organizationName,
String spaceGuid,
String spaceName,
String instanceName,
Map<String,Object> properties)
Create a new CloudFoundryContext
|
Modifier and Type | Method and Description |
---|---|
static CloudFoundryContext.CloudFoundryContextBuilder |
builder()
Builder for constructing a
CloudFoundryContext |
String |
getInstanceName()
Retrieve the instance name from the collection of platform properties
|
String |
getOrganizationGuid()
Retrieve the organization GUID from the collection of platform properties
|
String |
getOrganizationName()
Retrieve the organization name from the collection of platform properties
|
Map<String,Object> |
getSerializableProperties()
Avoid polluting the serialized context with duplicated keys
|
String |
getSpaceGuid()
Retrieve the space GUID from the collection of platform properties
|
String |
getSpaceName()
Retrieve the space name from the collection of platform properties
|
canEqual, equals, getPlatform, getProperties, getProperty, getStringProperty, hashCode, toString
public static final String CLOUD_FOUNDRY_PLATFORM
public static final String ORGANIZATION_GUID_KEY
public static final String ORGANIZATION_NAME_KEY
public static final String SPACE_GUID_KEY
public static final String SPACE_NAME_KEY
public static final String INSTANCE_NAME_KEY
public CloudFoundryContext(String organizationGuid, String organizationName, String spaceGuid, String spaceName, String instanceName, Map<String,Object> properties)
organizationGuid
- the organization GUIDorganizationName
- the organization namespaceGuid
- the space GUIDspaceName
- the space nameinstanceName
- the instance nameproperties
- additional propertiespublic Map<String,Object> getSerializableProperties()
public String getOrganizationGuid()
public String getOrganizationName()
public String getSpaceGuid()
public String getSpaceName()
public String getInstanceName()
public static CloudFoundryContext.CloudFoundryContextBuilder builder()
CloudFoundryContext