public class SecretProperties extends Object
SecretClient
,
SecretAsyncClient
Constructor and Description |
---|
SecretProperties()
Creates empty instance of SecretProperties.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Get the content type.
|
OffsetDateTime |
getCreatedOn()
Get the the UTC time at which secret was created.
|
OffsetDateTime |
getExpiresOn()
Get the Secret Expiry time in UTC.
|
String |
getId()
Get the secret identifier.
|
String |
getKeyId()
Get the keyId identifier.
|
String |
getName()
Get the secret name.
|
OffsetDateTime |
getNotBefore()
Get the notBefore UTC time.
|
Integer |
getRecoverableDays()
Gets the number of days a secret is retained before being deleted for a soft delete-enabled Key Vault.
|
String |
getRecoveryLevel()
Get the recovery level of the secret.
|
Map<String,String> |
getTags()
Get the tags associated with the secret.
|
OffsetDateTime |
getUpdatedOn()
Get the UTC time at which secret was last updated.
|
String |
getVersion()
Get the version of the secret.
|
Boolean |
isEnabled()
Get the enabled value.
|
Boolean |
isManaged()
Get the managed value.
|
SecretProperties |
setContentType(String contentType)
Set the contentType.
|
SecretProperties |
setEnabled(Boolean enabled)
Set the enabled value.
|
SecretProperties |
setExpiresOn(OffsetDateTime expiresOn)
Set the
expires UTC time. |
SecretProperties |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
SecretProperties |
setTags(Map<String,String> tags)
Set the tags to be associated with the secret.
|
public SecretProperties()
public String getName()
public String getRecoveryLevel()
public Boolean isEnabled()
public SecretProperties setEnabled(Boolean enabled)
enabled
- The enabled value to setNullPointerException
- if enabled
is null.public OffsetDateTime getNotBefore()
public SecretProperties setNotBefore(OffsetDateTime notBefore)
notBefore
UTC time.notBefore
- The notBefore UTC time to setpublic OffsetDateTime getExpiresOn()
public SecretProperties setExpiresOn(OffsetDateTime expiresOn)
expires
UTC time.expiresOn
- The expiry time to set for the secret.public OffsetDateTime getCreatedOn()
public OffsetDateTime getUpdatedOn()
public String getId()
public String getContentType()
public SecretProperties setContentType(String contentType)
contentType
- The contentType to setpublic Map<String,String> getTags()
public SecretProperties setTags(Map<String,String> tags)
tags
- The tags to setpublic String getKeyId()
public Boolean isManaged()
public String getVersion()
public Integer getRecoverableDays()
Copyright © 2020 Microsoft Corporation. All rights reserved.