com.microsoft.azure.management.graphrbac.implementation.KeyCredentialInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-graph-rbac Show documentation
Show all versions of azure-mgmt-graph-rbac Show documentation
This package contains Microsoft Azure Graph RBAC Management SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-authorization is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* 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.
*/
public class KeyCredentialInner {
/**
* Unmatched properties from the message are deserialized this collection.
*/
@JsonProperty(value = "")
private Map additionalProperties;
/**
* Start date.
*/
@JsonProperty(value = "startDate")
private DateTime startDate;
/**
* End date.
*/
@JsonProperty(value = "endDate")
private DateTime endDate;
/**
* Key value.
*/
@JsonProperty(value = "value")
private String value;
/**
* Key ID.
*/
@JsonProperty(value = "keyId")
private String keyId;
/**
* Usage. Acceptable values are 'Verify' and 'Sign'.
*/
@JsonProperty(value = "usage")
private String usage;
/**
* Type. Acceptable values are 'AsymmetricX509Cert' and 'Symmetric'.
*/
@JsonProperty(value = "type")
private String type;
/**
* Custom Key Identifier.
*/
@JsonProperty(value = "customKeyIdentifier")
private byte[] customKeyIdentifier;
/**
* Get the additionalProperties value.
*
* @return the additionalProperties value
*/
public Map additionalProperties() {
return this.additionalProperties;
}
/**
* Set the additionalProperties value.
*
* @param additionalProperties the additionalProperties value to set
* @return the KeyCredentialInner object itself.
*/
public KeyCredentialInner withAdditionalProperties(Map additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
/**
* Get the startDate value.
*
* @return the startDate value
*/
public DateTime startDate() {
return this.startDate;
}
/**
* 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.
*
* @return the endDate value
*/
public DateTime endDate() {
return this.endDate;
}
/**
* 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.
*
* @return the value value
*/
public String value() {
return this.value;
}
/**
* 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.
*
* @return the keyId value
*/
public String keyId() {
return this.keyId;
}
/**
* 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.
*
* @return the usage value
*/
public String usage() {
return this.usage;
}
/**
* 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.
*
* @return the type value
*/
public String type() {
return this.type;
}
/**
* 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.
*
* @return the customKeyIdentifier value
*/
public byte[] customKeyIdentifier() {
return this.customKeyIdentifier;
}
/**
* 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;
}
}