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 java.util.Map;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
Request parameters for creating a new service principal.
/**
* Request parameters for creating a new service principal.
*/
public class ServicePrincipalCreateParametersInner {
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;
application Id.
/**
* application Id.
*/
@JsonProperty(value = "appId", required = true)
private String appId;
Whether the account is enabled.
/**
* Whether the account is enabled.
*/
@JsonProperty(value = "accountEnabled", required = true)
private boolean accountEnabled;
A collection of KeyCredential objects.
/**
* A collection of KeyCredential objects.
*/
@JsonProperty(value = "keyCredentials")
private List<KeyCredentialInner> keyCredentials;
A collection of PasswordCredential objects.
/**
* A collection of PasswordCredential objects.
*/
@JsonProperty(value = "passwordCredentials")
private List<PasswordCredentialInner> passwordCredentials;
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 ServicePrincipalCreateParametersInner object itself.
/**
* Set the additionalProperties value.
*
* @param additionalProperties the additionalProperties value to set
* @return the ServicePrincipalCreateParametersInner object itself.
*/
public ServicePrincipalCreateParametersInner withAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
Get the appId value.
Returns: the appId value
/**
* Get the appId value.
*
* @return the appId value
*/
public String appId() {
return this.appId;
}
Set the appId value.
Params: - appId – the appId value to set
Returns: the ServicePrincipalCreateParametersInner object itself.
/**
* Set the appId value.
*
* @param appId the appId value to set
* @return the ServicePrincipalCreateParametersInner object itself.
*/
public ServicePrincipalCreateParametersInner withAppId(String appId) {
this.appId = appId;
return this;
}
Get the accountEnabled value.
Returns: the accountEnabled value
/**
* Get the accountEnabled value.
*
* @return the accountEnabled value
*/
public boolean accountEnabled() {
return this.accountEnabled;
}
Set the accountEnabled value.
Params: - accountEnabled – the accountEnabled value to set
Returns: the ServicePrincipalCreateParametersInner object itself.
/**
* Set the accountEnabled value.
*
* @param accountEnabled the accountEnabled value to set
* @return the ServicePrincipalCreateParametersInner object itself.
*/
public ServicePrincipalCreateParametersInner withAccountEnabled(boolean accountEnabled) {
this.accountEnabled = accountEnabled;
return this;
}
Get the keyCredentials value.
Returns: the keyCredentials value
/**
* Get the keyCredentials value.
*
* @return the keyCredentials value
*/
public List<KeyCredentialInner> keyCredentials() {
return this.keyCredentials;
}
Set the keyCredentials value.
Params: - keyCredentials – the keyCredentials value to set
Returns: the ServicePrincipalCreateParametersInner object itself.
/**
* Set the keyCredentials value.
*
* @param keyCredentials the keyCredentials value to set
* @return the ServicePrincipalCreateParametersInner object itself.
*/
public ServicePrincipalCreateParametersInner withKeyCredentials(List<KeyCredentialInner> keyCredentials) {
this.keyCredentials = keyCredentials;
return this;
}
Get the passwordCredentials value.
Returns: the passwordCredentials value
/**
* Get the passwordCredentials value.
*
* @return the passwordCredentials value
*/
public List<PasswordCredentialInner> passwordCredentials() {
return this.passwordCredentials;
}
Set the passwordCredentials value.
Params: - passwordCredentials – the passwordCredentials value to set
Returns: the ServicePrincipalCreateParametersInner object itself.
/**
* Set the passwordCredentials value.
*
* @param passwordCredentials the passwordCredentials value to set
* @return the ServicePrincipalCreateParametersInner object itself.
*/
public ServicePrincipalCreateParametersInner withPasswordCredentials(List<PasswordCredentialInner> passwordCredentials) {
this.passwordCredentials = passwordCredentials;
return this;
}
}