Class KeyRotationLifetimeAction
- java.lang.Object
-
- com.azure.security.keyvault.keys.models.KeyRotationLifetimeAction
-
public final class KeyRotationLifetimeAction extends Object
Represents an action that will be performed by Key Vault over the lifetime of a key.
-
-
Constructor Summary
Constructors Constructor Description KeyRotationLifetimeAction(KeyRotationPolicyAction type)
Creates aKeyRotationLifetimeAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTimeAfterCreate()
Get the time after creation to attempt to rotate in ISO 8601 duration format.String
getTimeBeforeExpiry()
Get the time before expiry to attempt to rotate or notify in ISO 8601 duration format.KeyRotationPolicyAction
getType()
Get thetype
of the action.KeyRotationLifetimeAction
setTimeAfterCreate(String timeAfterCreate)
Set the time after creation to attempt to rotate in ISO 8601 duration format.KeyRotationLifetimeAction
setTimeBeforeExpiry(String timeBeforeExpiry)
Set the time before expiry to attempt to rotate or notify in ISO 8601 duration format.
-
-
-
Constructor Detail
-
KeyRotationLifetimeAction
public KeyRotationLifetimeAction(KeyRotationPolicyAction type)
Creates aKeyRotationLifetimeAction
.- Parameters:
type
- Thetype
of the action.
-
-
Method Detail
-
getType
public KeyRotationPolicyAction getType()
Get thetype
of the action.- Returns:
- The
type
of the action.
-
getTimeAfterCreate
public String getTimeAfterCreate()
Get the time after creation to attempt to rotate in ISO 8601 duration format. For example, 90 days is represented as follows: "P90D".- Returns:
- The time after creation to attempt to rotate.
-
setTimeAfterCreate
public KeyRotationLifetimeAction setTimeAfterCreate(String timeAfterCreate)
Set the time after creation to attempt to rotate in ISO 8601 duration format. For example, 90 days is represented as follows: "P90D".- Parameters:
timeAfterCreate
- The time after creation to attempt to rotate.- Returns:
- The updated
KeyRotationLifetimeAction
object.
-
getTimeBeforeExpiry
public String getTimeBeforeExpiry()
Get the time before expiry to attempt to rotate or notify in ISO 8601 duration format. For example, 90 days is represented as follows: "P90D".- Returns:
- The time before expiry to attempt to rotate or notify.
-
setTimeBeforeExpiry
public KeyRotationLifetimeAction setTimeBeforeExpiry(String timeBeforeExpiry)
Set the time before expiry to attempt to rotate or notify in ISO 8601 duration format. For example, 90 days is represented as follows: "P90D".- Parameters:
timeBeforeExpiry
- The time before expiry to attempt to rotate or notify.- Returns:
- The updated
KeyRotationLifetimeAction
object.
-
-