Package com.pulumi.resources
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()-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCustomTimeouts(Duration create, Duration update, Duration delete) CustomTimeouts(Duration create, Duration update, Duration delete, Duration read) -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTimeouts.Builderbuilder()copy()booleangetRead()static StringgolangString(Optional<Duration> duration) inthashCode()static DurationparseTimeoutString(String timeout) Given a string representing a duration, such as "300ms", "-1.5h" or "2h45m", parse it into aDuration.
-
Constructor Details
-
CustomTimeouts
public CustomTimeouts(@Nullable Duration create, @Nullable Duration update, @Nullable Duration delete) - Parameters:
create- the optional create timeoutupdate- the optional update timeoutdelete- the optional delete timeout
-
CustomTimeouts
public CustomTimeouts(@Nullable Duration create, @Nullable Duration update, @Nullable Duration delete, @Nullable Duration read) - Parameters:
create- the optional create timeoutupdate- the optional update timeoutdelete- the optional delete timeoutread- the optional read timeout
-
-
Method Details
-
getCreate
- Returns:
- the optional create timeout
-
getUpdate
- Returns:
- the optional update timeout
-
getDelete
- Returns:
- the optional delete timeout
-
getRead
- Returns:
- the optional read timeout
-
copy
- Specified by:
copyin interfacecom.pulumi.core.internal.Copyable<CustomTimeouts>- Returns:
- a copy of
thisCustomTimeoutsinstance
-
equals
-
hashCode
public int hashCode() -
golangString
-
parseTimeoutString
Given a string representing a duration, such as "300ms", "-1.5h" or "2h45m", parse it into aDuration.- Parameters:
timeout- the string to parse- Returns:
- the parsed duration, or null if the input string was empty or null
-
builder
- Returns:
- a
CustomTimeoutsbuilder
-