@Experimental @Generated @ThreadSafe @Immutable public class Profile extends IdentifiableBase implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Profile.Builder
Builder class used to create Profile instances.
|
GLOBAL_LEVEL, USER_LEVEL
Modifier and Type | Method and Description |
---|---|
Activation |
getActivation()
The conditional logic which will automatically
trigger the inclusion of this profile.
|
List<Repository> |
getPluginRepositories()
The lists of the remote repositories for discovering plugins.
|
Map<String,String> |
getProperties()
Extended configuration specific to this profile goes here.
|
List<Repository> |
getRepositories()
The lists of the remote repositories.
|
static Profile.Builder |
newBuilder()
Creates a new
Profile builder instance. |
static Profile.Builder |
newBuilder(boolean withDefaults)
Creates a new
Profile builder instance using default values or not. |
static Profile.Builder |
newBuilder(Profile from)
Creates a new
Profile builder instance using the specified object as a basis. |
static Profile.Builder |
newBuilder(Profile from,
boolean forceCopy)
Creates a new
Profile builder instance using the specified object as a basis. |
static Profile |
newInstance()
Creates a new
Profile instance. |
static Profile |
newInstance(boolean withDefaults)
Creates a new
Profile instance using default values or not. |
Profile.Builder |
with()
Creates a new builder with this object as the basis.
|
Profile |
withActivation(Activation activation)
Creates a new
Profile instance using the specified activation. |
Profile |
withId(String id)
Creates a new
Profile instance using the specified id. |
Profile |
withPluginRepositories(Collection<Repository> pluginRepositories)
Creates a new
Profile instance using the specified pluginRepositories. |
Profile |
withProperties(Map<String,String> properties)
Creates a new
Profile instance using the specified properties. |
Profile |
withRepositories(Collection<Repository> repositories)
Creates a new
Profile instance using the specified repositories. |
getId, newBuilder, newBuilder
getSourceLevel, newBuilder, newBuilder, setSourceLevel
public Activation getActivation()
Activation
@Nonnull public Map<String,String> getProperties()
<property.name>property.value</property.name>
Map<String, String>
@Nonnull public List<Repository> getRepositories()
List<Repository>
@Nonnull public List<Repository> getPluginRepositories()
List<Repository>
@Nonnull public Profile.Builder with()
with
in class IdentifiableBase
Builder
@Nonnull public Profile withId(String id)
Profile
instance using the specified id.withId
in class IdentifiableBase
id
- the new String
to useProfile
with the specified id@Nonnull public Profile withActivation(Activation activation)
Profile
instance using the specified activation.activation
- the new Activation
to useProfile
with the specified activation@Nonnull public Profile withProperties(Map<String,String> properties)
Profile
instance using the specified properties.properties
- the new Map<String, String>
to useProfile
with the specified properties@Nonnull public Profile withRepositories(Collection<Repository> repositories)
Profile
instance using the specified repositories.repositories
- the new Collection<Repository>
to useProfile
with the specified repositories@Nonnull public Profile withPluginRepositories(Collection<Repository> pluginRepositories)
Profile
instance using the specified pluginRepositories.pluginRepositories
- the new Collection<Repository>
to useProfile
with the specified pluginRepositories@Nonnull public static Profile newInstance()
Profile
instance.
Equivalent to newInstance( true )
.Profile
newInstance(boolean)
@Nonnull public static Profile newInstance(boolean withDefaults)
Profile
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedProfile
@Nonnull public static Profile.Builder newBuilder()
Profile
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Profile.Builder newBuilder(boolean withDefaults)
Profile
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Profile.Builder newBuilder(Profile from)
Profile
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Profile
instance to use as a basisBuilder
@Nonnull public static Profile.Builder newBuilder(Profile from, boolean forceCopy)
Profile
builder instance using the specified object as a basis.from
- the Profile
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.