Class CustomTimeouts

java.lang.Object
com.pulumi.resources.CustomTimeouts
All Implemented Interfaces:
com.pulumi.core.internal.Copyable<CustomTimeouts>

public final class CustomTimeouts extends Object implements com.pulumi.core.internal.Copyable<CustomTimeouts>
Optional timeouts to supply in @see ResourceOptions.getCustomTimeouts()
  • Constructor Details

    • CustomTimeouts

      public CustomTimeouts(@Nullable Duration create, @Nullable Duration update, @Nullable Duration delete)
      Parameters:
      create - the optional create timeout
      update - the optional update timeout
      delete - the optional delete timeout
    • CustomTimeouts

      public CustomTimeouts(@Nullable Duration create, @Nullable Duration update, @Nullable Duration delete, @Nullable Duration read)
      Parameters:
      create - the optional create timeout
      update - the optional update timeout
      delete - the optional delete timeout
      read - the optional read timeout
  • Method Details

    • getCreate

      public Optional<Duration> getCreate()
      Returns:
      the optional create timeout
    • getUpdate

      public Optional<Duration> getUpdate()
      Returns:
      the optional update timeout
    • getDelete

      public Optional<Duration> getDelete()
      Returns:
      the optional delete timeout
    • getRead

      public Optional<Duration> getRead()
      Returns:
      the optional read timeout
    • copy

      public CustomTimeouts copy()
      Specified by:
      copy in interface com.pulumi.core.internal.Copyable<CustomTimeouts>
      Returns:
      a copy of this CustomTimeouts instance
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • golangString

      @InternalUse public static String golangString(Optional<Duration> duration)
    • parseTimeoutString

      public static Duration parseTimeoutString(String timeout)
      Given a string representing a duration, such as "300ms", "-1.5h" or "2h45m", parse it into a Duration.
      Parameters:
      timeout - the string to parse
      Returns:
      the parsed duration, or null if the input string was empty or null
    • builder

      public static CustomTimeouts.Builder builder()
      Returns:
      a CustomTimeouts builder