Class ActivationOS

java.lang.Object
org.apache.maven.api.settings.ActivationOS
All Implemented Interfaces:
Serializable

@Experimental @Generated @ThreadSafe @Immutable public class ActivationOS extends Object implements Serializable
This is an activator which will detect an operating system's attributes in order to activate its profile.
See Also:
  • Method Details

    • getName

      public String getName()
      The name of the OS to be used to activate a profile.
      Returns:
      a String
    • getFamily

      public String getFamily()
      The general family of the OS to be used to activate a profile (e.g. 'windows')
      Returns:
      a String
    • getArch

      public String getArch()
      The architecture of the OS to be used to activate a profile.
      Returns:
      a String
    • getVersion

      public String getVersion()
      The version of the OS to be used to activate a profile.
      Returns:
      a String
    • with

      @Nonnull public ActivationOS.Builder with()
      Creates a new builder with this object as the basis.
      Returns:
      a Builder
    • withName

      @Nonnull public ActivationOS withName(String name)
      Creates a new ActivationOS instance using the specified name.
      Parameters:
      name - the new String to use
      Returns:
      a ActivationOS with the specified name
    • withFamily

      @Nonnull public ActivationOS withFamily(String family)
      Creates a new ActivationOS instance using the specified family.
      Parameters:
      family - the new String to use
      Returns:
      a ActivationOS with the specified family
    • withArch

      @Nonnull public ActivationOS withArch(String arch)
      Creates a new ActivationOS instance using the specified arch.
      Parameters:
      arch - the new String to use
      Returns:
      a ActivationOS with the specified arch
    • withVersion

      @Nonnull public ActivationOS withVersion(String version)
      Creates a new ActivationOS instance using the specified version.
      Parameters:
      version - the new String to use
      Returns:
      a ActivationOS with the specified version
    • newInstance

      @Nonnull public static ActivationOS newInstance()
      Creates a new ActivationOS instance. Equivalent to newInstance( true ).
      Returns:
      a new ActivationOS
      See Also:
    • newInstance

      @Nonnull public static ActivationOS newInstance(boolean withDefaults)
      Creates a new ActivationOS instance using default values or not. Equivalent to newBuilder( withDefaults ).build().
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new ActivationOS
    • newBuilder

      @Nonnull public static ActivationOS.Builder newBuilder()
      Creates a new ActivationOS builder instance. Equivalent to newBuilder( true ).
      Returns:
      a new Builder
      See Also:
    • newBuilder

      @Nonnull public static ActivationOS.Builder newBuilder(boolean withDefaults)
      Creates a new ActivationOS builder instance using default values or not.
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static ActivationOS.Builder newBuilder(ActivationOS from)
      Creates a new ActivationOS builder instance using the specified object as a basis. Equivalent to newBuilder( from, false ).
      Parameters:
      from - the ActivationOS instance to use as a basis
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static ActivationOS.Builder newBuilder(ActivationOS from, boolean forceCopy)
      Creates a new ActivationOS builder instance using the specified object as a basis.
      Parameters:
      from - the ActivationOS instance to use as a basis
      forceCopy - the boolean indicating if a copy should be forced
      Returns:
      a new Builder