Class SpaceCreate
This is the request object used when creating a new space.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThis field will be used as the new identifier for the space in confluence page URLs.protected SpaceDescriptionCreateThe description of the new/updated space.protected StringThe key for the new space.protected StringThe name of the new space.The permissions for the new space. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.SpaceCreate(String name, String key, String alias, SpaceDescriptionCreate description, List<Map<String, Object>> permissions) Constructs a validated instance ofSpaceCreate.SpaceCreate(Consumer<SpaceCreate> spec) Constructs a validated instance ofSpaceCreate. -
Method Summary
Modifier and TypeMethodDescriptionalias()Fluent getter for alias.Fluent setter for alias.Fluent getter for description.description(SpaceDescriptionCreate description) Fluent setter for description.booleangetAlias()Gets the value of alias.Gets the value of description.getKey()Gets the value of key.getName()Gets the value of name.Gets the value of permissions.inthashCode()key()Fluent getter for key.Fluent setter for key.name()Fluent getter for name.Fluent setter for name.Fluent getter for permissions.permissions(List<Map<String, Object>> permissions) Fluent setter for permissions.voidSets the value of alias.voidsetDescription(SpaceDescriptionCreate description) Sets the value of description.voidSets the value of key.voidSets the value of name.voidsetPermissions(List<Map<String, Object>> permissions) Sets the value of permissions.toString()
-
Field Details
-
name
The name of the new space. -
key
The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not provided, this is required. -
alias
This field will be used as the new identifier for the space in confluence page URLs. If the property is not provided the alias will be the provided key. This property is experimental and may be changed or removed in the future. -
description
The description of the new/updated space. Note, only the 'plain' representation can be used for the description when creating or updating a space. -
permissions
The permissions for the new space. If no permissions are provided, the [Confluence default space permissions](https://confluence.atlassian.com/x/UAgzKw#CreateaSpace-Spacepermissions) are applied. Note that if permissions are provided, the space is created with only the provided set of permissions, not including the default space permissions. Space permissions can be modified after creation using the space permissions endpoints, and a private space can be created using the create private space endpoint.
-
-
Constructor Details
-
SpaceCreate
Constructs a validated instance ofSpaceCreate.- Parameters:
spec- the specification to process
-
SpaceCreate
@Internal protected SpaceCreate()Protected no-args constructor for use by serialization frameworks. -
SpaceCreate
@Internal public SpaceCreate(String name, String key, String alias, SpaceDescriptionCreate description, List<Map<String, Object>> permissions) Constructs a validated instance ofSpaceCreate.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
SpaceCreate(Consumer)instead.- Parameters:
name- The name of the new space.key- The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not provided, this is required.alias- This field will be used as the new identifier for the space in confluence page URLs. If the property is not provided the alias will be the provided key. This property is experimental and may be changed or removed in the future.description- The description of the new/updated space. Note, only the 'plain' representation can be used for the description when creating or updating a space.permissions- The permissions for the new space. If no permissions are provided, the [Confluence default space permissions](https://confluence.atlassian.com/x/UAgzKw#CreateaSpace-Spacepermissions) are applied. Note that if permissions are provided, the space is created with only the provided set of permissions, not including the default space permissions. Space permissions can be modified after creation using the space permissions endpoints, and a private space can be created using the create private space endpoint.
-
-
Method Details
-
name
-
name
Fluent setter for name.The name of the new space.
- Parameters:
name- name- Returns:
- this
-
getName
-
setName
Sets the value of name.The name of the new space.
- Parameters:
name- name
-
key
Fluent getter for key.The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not provided, this is required.
- Returns:
- key
-
key
Fluent setter for key.The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not provided, this is required.
- Parameters:
key- key- Returns:
- this
-
getKey
Gets the value of key.The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not provided, this is required.
- Returns:
- key
-
setKey
Sets the value of key.The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not provided, this is required.
- Parameters:
key- key
-
alias
Fluent getter for alias.This field will be used as the new identifier for the space in confluence page URLs. If the property is not provided the alias will be the provided key. This property is experimental and may be changed or removed in the future.
- Returns:
- alias
-
alias
Fluent setter for alias.This field will be used as the new identifier for the space in confluence page URLs. If the property is not provided the alias will be the provided key. This property is experimental and may be changed or removed in the future.
- Parameters:
alias- alias- Returns:
- this
-
getAlias
Gets the value of alias.This field will be used as the new identifier for the space in confluence page URLs. If the property is not provided the alias will be the provided key. This property is experimental and may be changed or removed in the future.
- Returns:
- alias
-
setAlias
Sets the value of alias.This field will be used as the new identifier for the space in confluence page URLs. If the property is not provided the alias will be the provided key. This property is experimental and may be changed or removed in the future.
- Parameters:
alias- alias
-
description
Fluent getter for description.The description of the new/updated space. Note, only the 'plain' representation can be used for the description when creating or updating a space.
- Returns:
- description
-
description
Fluent setter for description.The description of the new/updated space. Note, only the 'plain' representation can be used for the description when creating or updating a space.
- Parameters:
description- description- Returns:
- this
-
getDescription
Gets the value of description.The description of the new/updated space. Note, only the 'plain' representation can be used for the description when creating or updating a space.
- Returns:
- description
-
setDescription
Sets the value of description.The description of the new/updated space. Note, only the 'plain' representation can be used for the description when creating or updating a space.
- Parameters:
description- description
-
permissions
Fluent getter for permissions.The permissions for the new space. If no permissions are provided, the [Confluence default space permissions](https://confluence.atlassian.com/x/UAgzKw#CreateaSpace-Spacepermissions) are applied. Note that if permissions are provided, the space is created with only the provided set of permissions, not including the default space permissions. Space permissions can be modified after creation using the space permissions endpoints, and a private space can be created using the create private space endpoint.
- Returns:
- permissions
-
permissions
Fluent setter for permissions.The permissions for the new space. If no permissions are provided, the [Confluence default space permissions](https://confluence.atlassian.com/x/UAgzKw#CreateaSpace-Spacepermissions) are applied. Note that if permissions are provided, the space is created with only the provided set of permissions, not including the default space permissions. Space permissions can be modified after creation using the space permissions endpoints, and a private space can be created using the create private space endpoint.
- Parameters:
permissions- permissions- Returns:
- this
-
getPermissions
Gets the value of permissions.The permissions for the new space. If no permissions are provided, the [Confluence default space permissions](https://confluence.atlassian.com/x/UAgzKw#CreateaSpace-Spacepermissions) are applied. Note that if permissions are provided, the space is created with only the provided set of permissions, not including the default space permissions. Space permissions can be modified after creation using the space permissions endpoints, and a private space can be created using the create private space endpoint.
- Returns:
- permissions
-
setPermissions
Sets the value of permissions.The permissions for the new space. If no permissions are provided, the [Confluence default space permissions](https://confluence.atlassian.com/x/UAgzKw#CreateaSpace-Spacepermissions) are applied. Note that if permissions are provided, the space is created with only the provided set of permissions, not including the default space permissions. Space permissions can be modified after creation using the space permissions endpoints, and a private space can be created using the create private space endpoint.
- Parameters:
permissions- permissions
-
equals
-
hashCode
-
toString
-