com.microsoft.azure.management.graphrbac.implementation.ServicePrincipalCreateParametersInner 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 java.util.Map;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Request parameters for creating a new service principal.
*/
public class ServicePrincipalCreateParametersInner {
/**
* Unmatched properties from the message are deserialized this collection.
*/
@JsonProperty(value = "")
private Map additionalProperties;
/**
* application Id.
*/
@JsonProperty(value = "appId", required = true)
private String appId;
/**
* Whether the account is enabled.
*/
@JsonProperty(value = "accountEnabled", required = true)
private boolean accountEnabled;
/**
* A collection of KeyCredential objects.
*/
@JsonProperty(value = "keyCredentials")
private List keyCredentials;
/**
* A collection of PasswordCredential objects.
*/
@JsonProperty(value = "passwordCredentials")
private List passwordCredentials;
/**
* 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 ServicePrincipalCreateParametersInner object itself.
*/
public ServicePrincipalCreateParametersInner withAdditionalProperties(Map additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
/**
* Get the appId value.
*
* @return the appId value
*/
public String appId() {
return this.appId;
}
/**
* 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.
*
* @return the accountEnabled value
*/
public boolean accountEnabled() {
return this.accountEnabled;
}
/**
* 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.
*
* @return the keyCredentials value
*/
public List keyCredentials() {
return this.keyCredentials;
}
/**
* Set the keyCredentials value.
*
* @param keyCredentials the keyCredentials value to set
* @return the ServicePrincipalCreateParametersInner object itself.
*/
public ServicePrincipalCreateParametersInner withKeyCredentials(List keyCredentials) {
this.keyCredentials = keyCredentials;
return this;
}
/**
* Get the passwordCredentials value.
*
* @return the passwordCredentials value
*/
public List passwordCredentials() {
return this.passwordCredentials;
}
/**
* Set the passwordCredentials value.
*
* @param passwordCredentials the passwordCredentials value to set
* @return the ServicePrincipalCreateParametersInner object itself.
*/
public ServicePrincipalCreateParametersInner withPasswordCredentials(List passwordCredentials) {
this.passwordCredentials = passwordCredentials;
return this;
}
}