Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.graphrbac.implementation; import com.fasterxml.jackson.annotation.JsonProperty; import org.joda.time.DateTime; import java.util.Map;
Active Directory Key Credential information.
/** * Active Directory Key Credential information. */
public class KeyCredentialInner {
Unmatched properties from the message are deserialized this collection.
/** * Unmatched properties from the message are deserialized this collection. */
@JsonProperty(value = "") private Map<String, Object> additionalProperties;
Start date.
/** * Start date. */
@JsonProperty(value = "startDate") private DateTime startDate;
End date.
/** * End date. */
@JsonProperty(value = "endDate") private DateTime endDate;
Key value.
/** * Key value. */
@JsonProperty(value = "value") private String value;
Key ID.
/** * Key ID. */
@JsonProperty(value = "keyId") private String keyId;
Usage. Acceptable values are 'Verify' and 'Sign'.
/** * Usage. Acceptable values are 'Verify' and 'Sign'. */
@JsonProperty(value = "usage") private String usage;
Type. Acceptable values are 'AsymmetricX509Cert' and 'Symmetric'.
/** * Type. Acceptable values are 'AsymmetricX509Cert' and 'Symmetric'. */
@JsonProperty(value = "type") private String type;
Custom Key Identifier.
/** * Custom Key Identifier. */
@JsonProperty(value = "customKeyIdentifier") private byte[] customKeyIdentifier;
Get the additionalProperties value.
Returns:the additionalProperties value
/** * Get the additionalProperties value. * * @return the additionalProperties value */
public Map<String, Object> additionalProperties() { return this.additionalProperties; }
Set the additionalProperties value.
Params:
  • additionalProperties – the additionalProperties value to set
Returns:the KeyCredentialInner object itself.
/** * Set the additionalProperties value. * * @param additionalProperties the additionalProperties value to set * @return the KeyCredentialInner object itself. */
public KeyCredentialInner withAdditionalProperties(Map<String, Object> additionalProperties) { this.additionalProperties = additionalProperties; return this; }
Get the startDate value.
Returns:the startDate value
/** * Get the startDate value. * * @return the startDate value */
public DateTime startDate() { return this.startDate; }
Set the startDate value.
Params:
  • startDate – the startDate value to set
Returns:the KeyCredentialInner object itself.
/** * Set the startDate value. * * @param startDate the startDate value to set * @return the KeyCredentialInner object itself. */
public KeyCredentialInner withStartDate(DateTime startDate) { this.startDate = startDate; return this; }
Get the endDate value.
Returns:the endDate value
/** * Get the endDate value. * * @return the endDate value */
public DateTime endDate() { return this.endDate; }
Set the endDate value.
Params:
  • endDate – the endDate value to set
Returns:the KeyCredentialInner object itself.
/** * Set the endDate value. * * @param endDate the endDate value to set * @return the KeyCredentialInner object itself. */
public KeyCredentialInner withEndDate(DateTime endDate) { this.endDate = endDate; return this; }
Get the value value.
Returns:the value value
/** * Get the value value. * * @return the value value */
public String value() { return this.value; }
Set the value value.
Params:
  • value – the value value to set
Returns:the KeyCredentialInner object itself.
/** * Set the value value. * * @param value the value value to set * @return the KeyCredentialInner object itself. */
public KeyCredentialInner withValue(String value) { this.value = value; return this; }
Get the keyId value.
Returns:the keyId value
/** * Get the keyId value. * * @return the keyId value */
public String keyId() { return this.keyId; }
Set the keyId value.
Params:
  • keyId – the keyId value to set
Returns:the KeyCredentialInner object itself.
/** * Set the keyId value. * * @param keyId the keyId value to set * @return the KeyCredentialInner object itself. */
public KeyCredentialInner withKeyId(String keyId) { this.keyId = keyId; return this; }
Get the usage value.
Returns:the usage value
/** * Get the usage value. * * @return the usage value */
public String usage() { return this.usage; }
Set the usage value.
Params:
  • usage – the usage value to set
Returns:the KeyCredentialInner object itself.
/** * Set the usage value. * * @param usage the usage value to set * @return the KeyCredentialInner object itself. */
public KeyCredentialInner withUsage(String usage) { this.usage = usage; return this; }
Get the type value.
Returns:the type value
/** * Get the type value. * * @return the type value */
public String type() { return this.type; }
Set the type value.
Params:
  • type – the type value to set
Returns:the KeyCredentialInner object itself.
/** * Set the type value. * * @param type the type value to set * @return the KeyCredentialInner object itself. */
public KeyCredentialInner withType(String type) { this.type = type; return this; }
Get the customKeyIdentifier value.
Returns:the customKeyIdentifier value
/** * Get the customKeyIdentifier value. * * @return the customKeyIdentifier value */
public byte[] customKeyIdentifier() { return this.customKeyIdentifier; }
Set the customKeyIdentifier value.
Params:
  • customKeyIdentifier – the customKeyIdentifier value to set
Returns:the KeyCredentialInner object itself.
/** * Set the customKeyIdentifier value. * * @param customKeyIdentifier the customKeyIdentifier value to set * @return the KeyCredentialInner object itself. */
public KeyCredentialInner withCustomKeyIdentifier(byte[] customKeyIdentifier) { this.customKeyIdentifier = customKeyIdentifier; return this; } }