Class Artifacts.Jsii$Proxy

  • All Implemented Interfaces:
    Artifacts, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    Artifacts

    @Stability(Experimental)
    @Internal
    public static final class Artifacts.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements Artifacts
    An implementation for Artifacts
    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Jsii$Proxy​(Artifacts.Builder builder)
      Constructor that initializes the object based on literal property values passed by the Artifacts.Builder.
      protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.JsonNode $jsii$toJson()  
      boolean equals​(Object o)  
      List<String> getExclude()
      (experimental) A list of paths to files/folders that should be excluded in the artifact.
      String getExpireIn()
      (experimental) How long artifacts should be kept.
      String getExposeAs()
      (experimental) Can be used to expose job artifacts in the merge request UI.
      String getName()
      (experimental) Name for the archive created on job success.
      List<String> getPaths()
      (experimental) A list of paths to files/folders that should be included in the artifact.
      Reports getReports()
      (experimental) Reports will be uploaded as artifacts, and often displayed in the Gitlab UI, such as in Merge Requests.
      Boolean getUntracked()
      (experimental) Whether to add all untracked files (along with 'artifacts.paths') to the artifact.
      CacheWhen getWhen()
      (experimental) Configure when artifacts are uploaded depended on job status.
      int hashCode()  
      • Methods inherited from class software.amazon.jsii.JsiiObject

        jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
      • Jsii$Proxy

        protected Jsii$Proxy​(Artifacts.Builder builder)
        Constructor that initializes the object based on literal property values passed by the Artifacts.Builder.
    • Method Detail

      • getExclude

        public final List<String> getExclude()
        Description copied from interface: Artifacts
        (experimental) A list of paths to files/folders that should be excluded in the artifact.
        Specified by:
        getExclude in interface Artifacts
      • getExpireIn

        public final String getExpireIn()
        Description copied from interface: Artifacts
        (experimental) How long artifacts should be kept.

        They are saved 30 days by default. Artifacts that have expired are removed periodically via cron job. Supports a wide variety of formats, e.g. '1 week', '3 mins 4 sec', '2 hrs 20 min', '2h20min', '6 mos 1 day', '47 yrs 6 mos and 4d', '3 weeks and 2 days'.

        Specified by:
        getExpireIn in interface Artifacts
      • getExposeAs

        public final String getExposeAs()
        Description copied from interface: Artifacts
        (experimental) Can be used to expose job artifacts in the merge request UI.

        GitLab will add a link <expose_as> to the relevant merge request that points to the artifact.

        Specified by:
        getExposeAs in interface Artifacts
      • getName

        public final String getName()
        Description copied from interface: Artifacts
        (experimental) Name for the archive created on job success.

        Can use variables in the name, e.g. '$CI_JOB_NAME'

        Specified by:
        getName in interface Artifacts
      • getPaths

        public final List<String> getPaths()
        Description copied from interface: Artifacts
        (experimental) A list of paths to files/folders that should be included in the artifact.
        Specified by:
        getPaths in interface Artifacts
      • getReports

        public final Reports getReports()
        Description copied from interface: Artifacts
        (experimental) Reports will be uploaded as artifacts, and often displayed in the Gitlab UI, such as in Merge Requests.
        Specified by:
        getReports in interface Artifacts
      • getUntracked

        public final Boolean getUntracked()
        Description copied from interface: Artifacts
        (experimental) Whether to add all untracked files (along with 'artifacts.paths') to the artifact.
        Specified by:
        getUntracked in interface Artifacts
      • getWhen

        public final CacheWhen getWhen()
        Description copied from interface: Artifacts
        (experimental) Configure when artifacts are uploaded depended on job status.
        Specified by:
        getWhen in interface Artifacts
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object