/** * 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.List; import com.fasterxml.jackson.annotation.JsonProperty; /** * Active Directory service principal information. */ public class ServicePrincipalInner { /** * The object ID. */ @JsonProperty(value = "objectId") private String objectId; /** * The object type. */ @JsonProperty(value = "objectType") private String objectType; /** * The display name of the service principal. */ @JsonProperty(value = "displayName") private String displayName; /** * The application ID. */ @JsonProperty(value = "appId") private String appId; /** * A collection of service principal names. */ @JsonProperty(value = "servicePrincipalNames") private List<String> servicePrincipalNames; /** * Get the objectId value. * * @return the objectId value */ public String objectId() { return this.objectId; } /** * Set the objectId value. * * @param objectId the objectId value to set * @return the ServicePrincipalInner object itself. */ public ServicePrincipalInner withObjectId(String objectId) { this.objectId = objectId; return this; } /** * Get the objectType value. * * @return the objectType value */ public String objectType() { return this.objectType; } /** * Set the objectType value. * * @param objectType the objectType value to set * @return the ServicePrincipalInner object itself. */ public ServicePrincipalInner withObjectType(String objectType) { this.objectType = objectType; return this; } /** * Get the displayName value. * * @return the displayName value */ public String displayName() { return this.displayName; } /** * Set the displayName value. * * @param displayName the displayName value to set * @return the ServicePrincipalInner object itself. */ public ServicePrincipalInner withDisplayName(String displayName) { this.displayName = displayName; 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 ServicePrincipalInner object itself. */ public ServicePrincipalInner withAppId(String appId) { this.appId = appId; return this; } /** * Get the servicePrincipalNames value. * * @return the servicePrincipalNames value */ public List<String> servicePrincipalNames() { return this.servicePrincipalNames; } /** * Set the servicePrincipalNames value. * * @param servicePrincipalNames the servicePrincipalNames value to set * @return the ServicePrincipalInner object itself. */ public ServicePrincipalInner withServicePrincipalNames(List<String> servicePrincipalNames) { this.servicePrincipalNames = servicePrincipalNames; return this; } }