Class Cache.Jsii$Proxy

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

    @Stability(Experimental)
    @Internal
    public static final class Cache.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements Cache
    An implementation for Cache
    • 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​(Cache.Builder builder)
      Constructor that initializes the object based on literal property values passed by the Cache.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> getFallbackKeys()
      (experimental) Use cache:fallback_keys to specify a list of keys to try to restore cache from if there is no cache found for the cache:key.
      Object getKey()
      (experimental) Used the to give each cache a unique identifying key.
      List<String> getPaths()
      (experimental) Defines which files or directories to cache.
      CachePolicy getPolicy()
      (experimental) Defines the upload and download behaviour of the cache.
      Boolean getUntracked()
      (experimental) If set to true all files that are untracked in your Git repository will be cached.
      CacheWhen getWhen()
      (experimental) Defines when to save the cache, based on the status of the job (Default: Job Success).
      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​(Cache.Builder builder)
        Constructor that initializes the object based on literal property values passed by the Cache.Builder.
    • Method Detail

      • getFallbackKeys

        public final List<String> getFallbackKeys()
        Description copied from interface: Cache
        (experimental) Use cache:fallback_keys to specify a list of keys to try to restore cache from if there is no cache found for the cache:key.

        Caches are retrieved in the order specified in the fallback_keys section.

        Specified by:
        getFallbackKeys in interface Cache
      • getKey

        public final Object getKey()
        Description copied from interface: Cache
        (experimental) Used the to give each cache a unique identifying key.

        All jobs that use the same cache key use the same cache.

        Specified by:
        getKey in interface Cache
      • getPaths

        public final List<String> getPaths()
        Description copied from interface: Cache
        (experimental) Defines which files or directories to cache.
        Specified by:
        getPaths in interface Cache
      • getPolicy

        public final CachePolicy getPolicy()
        Description copied from interface: Cache
        (experimental) Defines the upload and download behaviour of the cache.
        Specified by:
        getPolicy in interface Cache
      • getUntracked

        public final Boolean getUntracked()
        Description copied from interface: Cache
        (experimental) If set to true all files that are untracked in your Git repository will be cached.
        Specified by:
        getUntracked in interface Cache
      • getWhen

        public final CacheWhen getWhen()
        Description copied from interface: Cache
        (experimental) Defines when to save the cache, based on the status of the job (Default: Job Success).
        Specified by:
        getWhen in interface Cache
      • $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