KeyReleasePolicy Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. KeyReleasePolicy
- com.
Implements
public final class KeyReleasePolicy
implements JsonSerializable<KeyReleasePolicy>
The KeyReleasePolicy model.
Constructor Summary
Constructor | Description |
---|---|
KeyReleasePolicy() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
contentType()
Get the content |
byte[] |
data()
Get the data property: Blob encoding the policy rules under which the key can be released. |
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Key |
withContentType(String contentType)
Set the content |
Key |
withData(byte[] data)
Set the data property: Blob encoding the policy rules under which the key can be released. |
Methods inherited from java.lang.Object
Constructor Details
KeyReleasePolicy
public KeyReleasePolicy()
Creates an instance of KeyReleasePolicy class.
Method Details
contentType
public String contentType()
Get the contentType property: Content type and version of key release policy.
Returns:
data
public byte[] data()
Get the data property: Blob encoding the policy rules under which the key can be released.
Returns:
fromJson
public static KeyReleasePolicy fromJson(JsonReader jsonReader)
Reads an instance of KeyReleasePolicy from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withContentType
public KeyReleasePolicy withContentType(String contentType)
Set the contentType property: Content type and version of key release policy.
Parameters:
Returns:
withData
public KeyReleasePolicy withData(byte[] data)
Set the data property: Blob encoding the policy rules under which the key can be released.
Parameters:
Returns:
Applies to
Azure SDK for Java