ManagedHsmKeyAttributes Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. ManagedHsmKeyAttributes
- com.
Implements
public final class ManagedHsmKeyAttributes
implements JsonSerializable<ManagedHsmKeyAttributes>
The object attributes managed by the Azure Key Vault service.
Constructor Summary
Constructor | Description |
---|---|
ManagedHsmKeyAttributes() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
created()
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z. |
Boolean |
enabled()
Get the enabled property: Determines whether or not the object is enabled. |
Long |
expires()
Get the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z. |
Boolean |
exportable()
Get the exportable property: Indicates if the private key can be exported. |
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
Long |
notBefore()
Get the not |
Deletion |
recoveryLevel()
Get the recovery |
Json |
toJson(JsonWriter jsonWriter) |
Long |
updated()
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z. |
void |
validate()
Validates the instance. |
Managed |
withEnabled(Boolean enabled)
Set the enabled property: Determines whether or not the object is enabled. |
Managed |
withExpires(Long expires)
Set the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z. |
Managed |
withExportable(Boolean exportable)
Set the exportable property: Indicates if the private key can be exported. |
Managed |
withNotBefore(Long notBefore)
Set the not |
Methods inherited from java.lang.Object
Constructor Details
ManagedHsmKeyAttributes
public ManagedHsmKeyAttributes()
Creates an instance of ManagedHsmKeyAttributes class.
Method Details
created
public Long created()
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Determines whether or not the object is enabled.
Returns:
expires
public Long expires()
Get the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.
Returns:
exportable
public Boolean exportable()
Get the exportable property: Indicates if the private key can be exported.
Returns:
fromJson
public static ManagedHsmKeyAttributes fromJson(JsonReader jsonReader)
Reads an instance of ManagedHsmKeyAttributes from the JsonReader.
Parameters:
Returns:
Throws:
notBefore
public Long notBefore()
Get the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.
Returns:
recoveryLevel
public DeletionRecoveryLevel recoveryLevel()
Get the recoveryLevel property: The deletion recovery level currently in effect for the object. If it contains 'Purgeable', then the object can be permanently deleted by a privileged user; otherwise, only the system can purge the object at the end of the retention interval.
Returns:
toJson
updated
public Long updated()
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.
Returns:
validate
public void validate()
Validates the instance.
withEnabled
public ManagedHsmKeyAttributes withEnabled(Boolean enabled)
Set the enabled property: Determines whether or not the object is enabled.
Parameters:
Returns:
withExpires
public ManagedHsmKeyAttributes withExpires(Long expires)
Set the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.
Parameters:
Returns:
withExportable
public ManagedHsmKeyAttributes withExportable(Boolean exportable)
Set the exportable property: Indicates if the private key can be exported.
Parameters:
Returns:
withNotBefore
public ManagedHsmKeyAttributes withNotBefore(Long notBefore)
Set the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.
Parameters:
Returns:
Applies to
Azure SDK for Java