Class LifetimeAction
java.lang.Object
com.azure.resourcemanager.keyvault.models.LifetimeAction
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LifetimeAction>
public final class LifetimeAction
extends Object
implements com.azure.json.JsonSerializable<LifetimeAction>
The LifetimeAction model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: The action of key rotation policy lifetimeAction.static LifetimeActionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LifetimeAction from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) trigger()Get the trigger property: The trigger of key rotation policy lifetimeAction.voidvalidate()Validates the instance.withAction(Action action) Set the action property: The action of key rotation policy lifetimeAction.withTrigger(Trigger trigger) Set the trigger property: The trigger of key rotation policy lifetimeAction.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LifetimeAction
public LifetimeAction()Creates an instance of LifetimeAction class.
-
-
Method Details
-
trigger
Get the trigger property: The trigger of key rotation policy lifetimeAction.- Returns:
- the trigger value.
-
withTrigger
Set the trigger property: The trigger of key rotation policy lifetimeAction.- Parameters:
trigger- the trigger value to set.- Returns:
- the LifetimeAction object itself.
-
action
Get the action property: The action of key rotation policy lifetimeAction.- Returns:
- the action value.
-
withAction
Set the action property: The action of key rotation policy lifetimeAction.- Parameters:
action- the action value to set.- Returns:
- the LifetimeAction object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LifetimeAction>- Throws:
IOException
-
fromJson
Reads an instance of LifetimeAction from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LifetimeAction if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the LifetimeAction.
-