Class MicrosoftGraphServicePrincipalInner
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphServicePrincipalInner
servicePrincipal
Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphServicePrincipalInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accountEnabled property: true if the service principal account is enabled; otherwise, false.addIns()Get the addIns property: Defines custom behavior that a consuming service can use to call an app in specific contexts.Get the additionalProperties property: Represents an Azure Active Directory object.Get the alternativeNames property: Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.Get the appDescription property: The appDescription property.Get the appDisplayName property: The display name exposed by the associated application.appId()Get the appId property: The unique identifier for the associated application (its appId property).Get the applicationTemplateId property: Unique identifier of the applicationTemplate that the servicePrincipal was created from.Get the appOwnerOrganizationId property: Contains the tenant id where the application is registered.Get the appRoleAssignedTo property: Principals (users, groups, and service principals) that are assigned to this service principal.Get the appRoleAssignmentRequired property: Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens.Get the appRoleAssignments property: Applications that this service principal is assigned to.appRoles()Get the appRoles property: The roles exposed by the application which this service principal represents.Get the claimsMappingPolicies property: The claimsMappingPolicies assigned to this service principal.Get the createdObjects property: Directory objects created by this service principal.Get the delegatedPermissionClassifications property: The delegatedPermissionClassifications property.Get the description property: The description property.Get the displayName property: The display name for the service principal.Get the endpoints property: Endpoints available for discovery.homepage()Get the homepage property: Home page or landing page of the application.Get the homeRealmDiscoveryPolicies property: The homeRealmDiscoveryPolicies assigned to this service principal.info()Get the info property: informationalUrl.Get the keyCredentials property: The collection of key credentials associated with the service principal.loginUrl()Get the loginUrl property: Specifies the URL where the service provider redirects the user to Azure AD to authenticate.Get the logoutUrl property: Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols.memberOf()Get the memberOf property: Roles that this service principal is a member of.notes()Get the notes property: The notes property.Get the notificationEmailAddresses property: Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date.Get the oauth2PermissionGrants property: Delegated permission grants authorizing this service principal to access an API on behalf of a signed-in user.Get the oauth2PermissionScopes property: The delegated permissions exposed by the application.Get the ownedObjects property: Directory objects that are owned by this service principal.owners()Get the owners property: Directory objects that are owners of this servicePrincipal.Get the passwordCredentials property: The collection of password credentials associated with the service principal.Get the preferredSingleSignOnMode property: Specifies the single sign-on mode configured for this application.Get the preferredTokenSigningKeyThumbprint property: The preferredTokenSigningKeyThumbprint property.Get the replyUrls property: The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application.Get the samlSingleSignOnSettings property: samlSingleSignOnSettings.Get the servicePrincipalNames property: Contains the list of identifiersUris, copied over from the associated application.Get the servicePrincipalType property: Identifies if the service principal represents an application or a managed identity.Get the signInAudience property: The signInAudience property.tags()Get the tags property: Custom strings that can be used to categorize and identify the service principal.Get the tokenEncryptionKeyId property: Specifies the keyId of a public key from the keyCredentials collection.Get the tokenIssuancePolicies property: The tokenIssuancePolicies assigned to this service principal.Get the tokenLifetimePolicies property: The tokenLifetimePolicies assigned to this service principal.Get the transitiveMemberOf property: The transitiveMemberOf property.voidvalidate()Validates the instance.withAccountEnabled(Boolean accountEnabled) Set the accountEnabled property: true if the service principal account is enabled; otherwise, false.withAddIns(List<MicrosoftGraphAddIn> addIns) Set the addIns property: Defines custom behavior that a consuming service can use to call an app in specific contexts.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: Represents an Azure Active Directory object.withAlternativeNames(List<String> alternativeNames) Set the alternativeNames property: Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.withAppDescription(String appDescription) Set the appDescription property: The appDescription property.withAppDisplayName(String appDisplayName) Set the appDisplayName property: The display name exposed by the associated application.Set the appId property: The unique identifier for the associated application (its appId property).withApplicationTemplateId(String applicationTemplateId) Set the applicationTemplateId property: Unique identifier of the applicationTemplate that the servicePrincipal was created from.withAppOwnerOrganizationId(UUID appOwnerOrganizationId) Set the appOwnerOrganizationId property: Contains the tenant id where the application is registered.withAppRoleAssignedTo(List<MicrosoftGraphAppRoleAssignment> appRoleAssignedTo) Set the appRoleAssignedTo property: Principals (users, groups, and service principals) that are assigned to this service principal.withAppRoleAssignmentRequired(Boolean appRoleAssignmentRequired) Set the appRoleAssignmentRequired property: Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens.withAppRoleAssignments(List<MicrosoftGraphAppRoleAssignment> appRoleAssignments) Set the appRoleAssignments property: Applications that this service principal is assigned to.withAppRoles(List<MicrosoftGraphAppRole> appRoles) Set the appRoles property: The roles exposed by the application which this service principal represents.withClaimsMappingPolicies(List<MicrosoftGraphClaimsMappingPolicy> claimsMappingPolicies) Set the claimsMappingPolicies property: The claimsMappingPolicies assigned to this service principal.withCreatedObjects(List<MicrosoftGraphDirectoryObjectInner> createdObjects) Set the createdObjects property: Directory objects created by this service principal.withDelegatedPermissionClassifications(List<MicrosoftGraphDelegatedPermissionClassification> delegatedPermissionClassifications) Set the delegatedPermissionClassifications property: The delegatedPermissionClassifications property.withDeletedDateTime(OffsetDateTime deletedDateTime) Set the deletedDateTime property: The deletedDateTime property.withDescription(String description) Set the description property: The description property.withDisplayName(String displayName) Set the displayName property: The display name for the service principal.withEndpoints(List<MicrosoftGraphEndpoint> endpoints) Set the endpoints property: Endpoints available for discovery.withHomepage(String homepage) Set the homepage property: Home page or landing page of the application.withHomeRealmDiscoveryPolicies(List<MicrosoftGraphHomeRealmDiscoveryPolicyInner> homeRealmDiscoveryPolicies) Set the homeRealmDiscoveryPolicies property: The homeRealmDiscoveryPolicies assigned to this service principal.Set the id property: Read-only.Set the info property: informationalUrl.withKeyCredentials(List<MicrosoftGraphKeyCredentialInner> keyCredentials) Set the keyCredentials property: The collection of key credentials associated with the service principal.withLoginUrl(String loginUrl) Set the loginUrl property: Specifies the URL where the service provider redirects the user to Azure AD to authenticate.withLogoutUrl(String logoutUrl) Set the logoutUrl property: Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols.withMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf) Set the memberOf property: Roles that this service principal is a member of.Set the notes property: The notes property.withNotificationEmailAddresses(List<String> notificationEmailAddresses) Set the notificationEmailAddresses property: Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date.withOauth2PermissionGrants(List<MicrosoftGraphOAuth2PermissionGrant> oauth2PermissionGrants) Set the oauth2PermissionGrants property: Delegated permission grants authorizing this service principal to access an API on behalf of a signed-in user.withOauth2PermissionScopes(List<MicrosoftGraphPermissionScope> oauth2PermissionScopes) Set the oauth2PermissionScopes property: The delegated permissions exposed by the application.withOwnedObjects(List<MicrosoftGraphDirectoryObjectInner> ownedObjects) Set the ownedObjects property: Directory objects that are owned by this service principal.Set the owners property: Directory objects that are owners of this servicePrincipal.withPasswordCredentials(List<MicrosoftGraphPasswordCredentialInner> passwordCredentials) Set the passwordCredentials property: The collection of password credentials associated with the service principal.withPreferredSingleSignOnMode(String preferredSingleSignOnMode) Set the preferredSingleSignOnMode property: Specifies the single sign-on mode configured for this application.withPreferredTokenSigningKeyThumbprint(String preferredTokenSigningKeyThumbprint) Set the preferredTokenSigningKeyThumbprint property: The preferredTokenSigningKeyThumbprint property.withReplyUrls(List<String> replyUrls) Set the replyUrls property: The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application.withSamlSingleSignOnSettings(MicrosoftGraphSamlSingleSignOnSettings samlSingleSignOnSettings) Set the samlSingleSignOnSettings property: samlSingleSignOnSettings.withServicePrincipalNames(List<String> servicePrincipalNames) Set the servicePrincipalNames property: Contains the list of identifiersUris, copied over from the associated application.withServicePrincipalType(String servicePrincipalType) Set the servicePrincipalType property: Identifies if the service principal represents an application or a managed identity.withSignInAudience(String signInAudience) Set the signInAudience property: The signInAudience property.Set the tags property: Custom strings that can be used to categorize and identify the service principal.withTokenEncryptionKeyId(UUID tokenEncryptionKeyId) Set the tokenEncryptionKeyId property: Specifies the keyId of a public key from the keyCredentials collection.withTokenIssuancePolicies(List<MicrosoftGraphTokenIssuancePolicy> tokenIssuancePolicies) Set the tokenIssuancePolicies property: The tokenIssuancePolicies assigned to this service principal.withTokenLifetimePolicies(List<MicrosoftGraphTokenLifetimePolicy> tokenLifetimePolicies) Set the tokenLifetimePolicies property: The tokenLifetimePolicies assigned to this service principal.withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf) Set the transitiveMemberOf property: The transitiveMemberOf property.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
deletedDateTimeMethods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphServicePrincipalInner
public MicrosoftGraphServicePrincipalInner()Creates an instance of MicrosoftGraphServicePrincipalInner class.
-
-
Method Details
-
accountEnabled
Get the accountEnabled property: true if the service principal account is enabled; otherwise, false.- Returns:
- the accountEnabled value.
-
withAccountEnabled
Set the accountEnabled property: true if the service principal account is enabled; otherwise, false.- Parameters:
accountEnabled- the accountEnabled value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
addIns
Get the addIns property: Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Microsoft 365 call the application in the context of a document the user is working on.- Returns:
- the addIns value.
-
withAddIns
Set the addIns property: Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Microsoft 365 call the application in the context of a document the user is working on.- Parameters:
addIns- the addIns value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
alternativeNames
Get the alternativeNames property: Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.- Returns:
- the alternativeNames value.
-
withAlternativeNames
Set the alternativeNames property: Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.- Parameters:
alternativeNames- the alternativeNames value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
appDescription
Get the appDescription property: The appDescription property.- Returns:
- the appDescription value.
-
withAppDescription
Set the appDescription property: The appDescription property.- Parameters:
appDescription- the appDescription value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
appDisplayName
Get the appDisplayName property: The display name exposed by the associated application.- Returns:
- the appDisplayName value.
-
withAppDisplayName
Set the appDisplayName property: The display name exposed by the associated application.- Parameters:
appDisplayName- the appDisplayName value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
appId
Get the appId property: The unique identifier for the associated application (its appId property).- Returns:
- the appId value.
-
withAppId
Set the appId property: The unique identifier for the associated application (its appId property).- Parameters:
appId- the appId value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
applicationTemplateId
Get the applicationTemplateId property: Unique identifier of the applicationTemplate that the servicePrincipal was created from. Read-only.- Returns:
- the applicationTemplateId value.
-
withApplicationTemplateId
Set the applicationTemplateId property: Unique identifier of the applicationTemplate that the servicePrincipal was created from. Read-only.- Parameters:
applicationTemplateId- the applicationTemplateId value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
appOwnerOrganizationId
Get the appOwnerOrganizationId property: Contains the tenant id where the application is registered. This is applicable only to service principals backed by applications.- Returns:
- the appOwnerOrganizationId value.
-
withAppOwnerOrganizationId
Set the appOwnerOrganizationId property: Contains the tenant id where the application is registered. This is applicable only to service principals backed by applications.- Parameters:
appOwnerOrganizationId- the appOwnerOrganizationId value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
appRoleAssignmentRequired
Get the appRoleAssignmentRequired property: Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable.- Returns:
- the appRoleAssignmentRequired value.
-
withAppRoleAssignmentRequired
public MicrosoftGraphServicePrincipalInner withAppRoleAssignmentRequired(Boolean appRoleAssignmentRequired) Set the appRoleAssignmentRequired property: Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable.- Parameters:
appRoleAssignmentRequired- the appRoleAssignmentRequired value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
appRoles
Get the appRoles property: The roles exposed by the application which this service principal represents. For more information see the appRoles property definition on the application entity. Not nullable.- Returns:
- the appRoles value.
-
withAppRoles
Set the appRoles property: The roles exposed by the application which this service principal represents. For more information see the appRoles property definition on the application entity. Not nullable.- Parameters:
appRoles- the appRoles value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
description
Get the description property: The description property.- Returns:
- the description value.
-
withDescription
Set the description property: The description property.- Parameters:
description- the description value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
displayName
Get the displayName property: The display name for the service principal.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name for the service principal.- Parameters:
displayName- the displayName value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
homepage
Get the homepage property: Home page or landing page of the application.- Returns:
- the homepage value.
-
withHomepage
Set the homepage property: Home page or landing page of the application.- Parameters:
homepage- the homepage value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
info
Get the info property: informationalUrl.- Returns:
- the info value.
-
withInfo
Set the info property: informationalUrl.- Parameters:
info- the info value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
keyCredentials
Get the keyCredentials property: The collection of key credentials associated with the service principal. Not nullable.- Returns:
- the keyCredentials value.
-
withKeyCredentials
public MicrosoftGraphServicePrincipalInner withKeyCredentials(List<MicrosoftGraphKeyCredentialInner> keyCredentials) Set the keyCredentials property: The collection of key credentials associated with the service principal. Not nullable.- Parameters:
keyCredentials- the keyCredentials value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
loginUrl
Get the loginUrl property: Specifies the URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps. When blank, Azure AD performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Azure AD My Apps, or the Azure AD SSO URL.- Returns:
- the loginUrl value.
-
withLoginUrl
Set the loginUrl property: Specifies the URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps. When blank, Azure AD performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Azure AD My Apps, or the Azure AD SSO URL.- Parameters:
loginUrl- the loginUrl value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
logoutUrl
Get the logoutUrl property: Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols.- Returns:
- the logoutUrl value.
-
withLogoutUrl
Set the logoutUrl property: Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols.- Parameters:
logoutUrl- the logoutUrl value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
notes
Get the notes property: The notes property.- Returns:
- the notes value.
-
withNotes
Set the notes property: The notes property.- Parameters:
notes- the notes value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
notificationEmailAddresses
Get the notificationEmailAddresses property: Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.- Returns:
- the notificationEmailAddresses value.
-
withNotificationEmailAddresses
public MicrosoftGraphServicePrincipalInner withNotificationEmailAddresses(List<String> notificationEmailAddresses) Set the notificationEmailAddresses property: Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.- Parameters:
notificationEmailAddresses- the notificationEmailAddresses value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
oauth2PermissionScopes
Get the oauth2PermissionScopes property: The delegated permissions exposed by the application. For more information see the oauth2PermissionScopes property on the application entity's api property. Not nullable.- Returns:
- the oauth2PermissionScopes value.
-
withOauth2PermissionScopes
public MicrosoftGraphServicePrincipalInner withOauth2PermissionScopes(List<MicrosoftGraphPermissionScope> oauth2PermissionScopes) Set the oauth2PermissionScopes property: The delegated permissions exposed by the application. For more information see the oauth2PermissionScopes property on the application entity's api property. Not nullable.- Parameters:
oauth2PermissionScopes- the oauth2PermissionScopes value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
passwordCredentials
Get the passwordCredentials property: The collection of password credentials associated with the service principal. Not nullable.- Returns:
- the passwordCredentials value.
-
withPasswordCredentials
public MicrosoftGraphServicePrincipalInner withPasswordCredentials(List<MicrosoftGraphPasswordCredentialInner> passwordCredentials) Set the passwordCredentials property: The collection of password credentials associated with the service principal. Not nullable.- Parameters:
passwordCredentials- the passwordCredentials value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
preferredSingleSignOnMode
Get the preferredSingleSignOnMode property: Specifies the single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, external, and oidc.- Returns:
- the preferredSingleSignOnMode value.
-
withPreferredSingleSignOnMode
public MicrosoftGraphServicePrincipalInner withPreferredSingleSignOnMode(String preferredSingleSignOnMode) Set the preferredSingleSignOnMode property: Specifies the single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, external, and oidc.- Parameters:
preferredSingleSignOnMode- the preferredSingleSignOnMode value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
preferredTokenSigningKeyThumbprint
Get the preferredTokenSigningKeyThumbprint property: The preferredTokenSigningKeyThumbprint property.- Returns:
- the preferredTokenSigningKeyThumbprint value.
-
withPreferredTokenSigningKeyThumbprint
public MicrosoftGraphServicePrincipalInner withPreferredTokenSigningKeyThumbprint(String preferredTokenSigningKeyThumbprint) Set the preferredTokenSigningKeyThumbprint property: The preferredTokenSigningKeyThumbprint property.- Parameters:
preferredTokenSigningKeyThumbprint- the preferredTokenSigningKeyThumbprint value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
replyUrls
Get the replyUrls property: The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable.- Returns:
- the replyUrls value.
-
withReplyUrls
Set the replyUrls property: The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable.- Parameters:
replyUrls- the replyUrls value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
samlSingleSignOnSettings
Get the samlSingleSignOnSettings property: samlSingleSignOnSettings.- Returns:
- the samlSingleSignOnSettings value.
-
withSamlSingleSignOnSettings
public MicrosoftGraphServicePrincipalInner withSamlSingleSignOnSettings(MicrosoftGraphSamlSingleSignOnSettings samlSingleSignOnSettings) Set the samlSingleSignOnSettings property: samlSingleSignOnSettings.- Parameters:
samlSingleSignOnSettings- the samlSingleSignOnSettings value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
servicePrincipalNames
Get the servicePrincipalNames property: Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Azure AD. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable.- Returns:
- the servicePrincipalNames value.
-
withServicePrincipalNames
public MicrosoftGraphServicePrincipalInner withServicePrincipalNames(List<String> servicePrincipalNames) Set the servicePrincipalNames property: Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Azure AD. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable.- Parameters:
servicePrincipalNames- the servicePrincipalNames value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
servicePrincipalType
Get the servicePrincipalType property: Identifies if the service principal represents an application or a managed identity. This is set by Azure AD internally. For a service principal that represents an application this is set as Application. For a service principal that represent a managed identity this is set as ManagedIdentity.- Returns:
- the servicePrincipalType value.
-
withServicePrincipalType
Set the servicePrincipalType property: Identifies if the service principal represents an application or a managed identity. This is set by Azure AD internally. For a service principal that represents an application this is set as Application. For a service principal that represent a managed identity this is set as ManagedIdentity.- Parameters:
servicePrincipalType- the servicePrincipalType value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
signInAudience
Get the signInAudience property: The signInAudience property.- Returns:
- the signInAudience value.
-
withSignInAudience
Set the signInAudience property: The signInAudience property.- Parameters:
signInAudience- the signInAudience value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
tags
Get the tags property: Custom strings that can be used to categorize and identify the service principal. Not nullable.- Returns:
- the tags value.
-
withTags
Set the tags property: Custom strings that can be used to categorize and identify the service principal. Not nullable.- Parameters:
tags- the tags value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
tokenEncryptionKeyId
Get the tokenEncryptionKeyId property: Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.- Returns:
- the tokenEncryptionKeyId value.
-
withTokenEncryptionKeyId
Set the tokenEncryptionKeyId property: Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.- Parameters:
tokenEncryptionKeyId- the tokenEncryptionKeyId value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
appRoleAssignedTo
Get the appRoleAssignedTo property: Principals (users, groups, and service principals) that are assigned to this service principal. Read-only.- Returns:
- the appRoleAssignedTo value.
-
withAppRoleAssignedTo
public MicrosoftGraphServicePrincipalInner withAppRoleAssignedTo(List<MicrosoftGraphAppRoleAssignment> appRoleAssignedTo) Set the appRoleAssignedTo property: Principals (users, groups, and service principals) that are assigned to this service principal. Read-only.- Parameters:
appRoleAssignedTo- the appRoleAssignedTo value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
appRoleAssignments
Get the appRoleAssignments property: Applications that this service principal is assigned to. Read-only. Nullable.- Returns:
- the appRoleAssignments value.
-
withAppRoleAssignments
public MicrosoftGraphServicePrincipalInner withAppRoleAssignments(List<MicrosoftGraphAppRoleAssignment> appRoleAssignments) Set the appRoleAssignments property: Applications that this service principal is assigned to. Read-only. Nullable.- Parameters:
appRoleAssignments- the appRoleAssignments value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
claimsMappingPolicies
Get the claimsMappingPolicies property: The claimsMappingPolicies assigned to this service principal.- Returns:
- the claimsMappingPolicies value.
-
withClaimsMappingPolicies
public MicrosoftGraphServicePrincipalInner withClaimsMappingPolicies(List<MicrosoftGraphClaimsMappingPolicy> claimsMappingPolicies) Set the claimsMappingPolicies property: The claimsMappingPolicies assigned to this service principal.- Parameters:
claimsMappingPolicies- the claimsMappingPolicies value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
createdObjects
Get the createdObjects property: Directory objects created by this service principal. Read-only. Nullable.- Returns:
- the createdObjects value.
-
withCreatedObjects
public MicrosoftGraphServicePrincipalInner withCreatedObjects(List<MicrosoftGraphDirectoryObjectInner> createdObjects) Set the createdObjects property: Directory objects created by this service principal. Read-only. Nullable.- Parameters:
createdObjects- the createdObjects value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
delegatedPermissionClassifications
Get the delegatedPermissionClassifications property: The delegatedPermissionClassifications property.- Returns:
- the delegatedPermissionClassifications value.
-
withDelegatedPermissionClassifications
public MicrosoftGraphServicePrincipalInner withDelegatedPermissionClassifications(List<MicrosoftGraphDelegatedPermissionClassification> delegatedPermissionClassifications) Set the delegatedPermissionClassifications property: The delegatedPermissionClassifications property.- Parameters:
delegatedPermissionClassifications- the delegatedPermissionClassifications value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
endpoints
Get the endpoints property: Endpoints available for discovery. Services like Sharepoint populate this property with a tenant specific SharePoint endpoints that other applications can discover and use in their experiences.- Returns:
- the endpoints value.
-
withEndpoints
Set the endpoints property: Endpoints available for discovery. Services like Sharepoint populate this property with a tenant specific SharePoint endpoints that other applications can discover and use in their experiences.- Parameters:
endpoints- the endpoints value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
homeRealmDiscoveryPolicies
Get the homeRealmDiscoveryPolicies property: The homeRealmDiscoveryPolicies assigned to this service principal.- Returns:
- the homeRealmDiscoveryPolicies value.
-
withHomeRealmDiscoveryPolicies
public MicrosoftGraphServicePrincipalInner withHomeRealmDiscoveryPolicies(List<MicrosoftGraphHomeRealmDiscoveryPolicyInner> homeRealmDiscoveryPolicies) Set the homeRealmDiscoveryPolicies property: The homeRealmDiscoveryPolicies assigned to this service principal.- Parameters:
homeRealmDiscoveryPolicies- the homeRealmDiscoveryPolicies value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
memberOf
Get the memberOf property: Roles that this service principal is a member of. HTTP Methods: GET Read-only. Nullable.- Returns:
- the memberOf value.
-
withMemberOf
public MicrosoftGraphServicePrincipalInner withMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf) Set the memberOf property: Roles that this service principal is a member of. HTTP Methods: GET Read-only. Nullable.- Parameters:
memberOf- the memberOf value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
oauth2PermissionGrants
Get the oauth2PermissionGrants property: Delegated permission grants authorizing this service principal to access an API on behalf of a signed-in user. Read-only. Nullable.- Returns:
- the oauth2PermissionGrants value.
-
withOauth2PermissionGrants
public MicrosoftGraphServicePrincipalInner withOauth2PermissionGrants(List<MicrosoftGraphOAuth2PermissionGrant> oauth2PermissionGrants) Set the oauth2PermissionGrants property: Delegated permission grants authorizing this service principal to access an API on behalf of a signed-in user. Read-only. Nullable.- Parameters:
oauth2PermissionGrants- the oauth2PermissionGrants value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
ownedObjects
Get the ownedObjects property: Directory objects that are owned by this service principal. Read-only. Nullable.- Returns:
- the ownedObjects value.
-
withOwnedObjects
public MicrosoftGraphServicePrincipalInner withOwnedObjects(List<MicrosoftGraphDirectoryObjectInner> ownedObjects) Set the ownedObjects property: Directory objects that are owned by this service principal. Read-only. Nullable.- Parameters:
ownedObjects- the ownedObjects value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
owners
Get the owners property: Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable.- Returns:
- the owners value.
-
withOwners
public MicrosoftGraphServicePrincipalInner withOwners(List<MicrosoftGraphDirectoryObjectInner> owners) Set the owners property: Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable.- Parameters:
owners- the owners value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
tokenIssuancePolicies
Get the tokenIssuancePolicies property: The tokenIssuancePolicies assigned to this service principal.- Returns:
- the tokenIssuancePolicies value.
-
withTokenIssuancePolicies
public MicrosoftGraphServicePrincipalInner withTokenIssuancePolicies(List<MicrosoftGraphTokenIssuancePolicy> tokenIssuancePolicies) Set the tokenIssuancePolicies property: The tokenIssuancePolicies assigned to this service principal.- Parameters:
tokenIssuancePolicies- the tokenIssuancePolicies value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
tokenLifetimePolicies
Get the tokenLifetimePolicies property: The tokenLifetimePolicies assigned to this service principal.- Returns:
- the tokenLifetimePolicies value.
-
withTokenLifetimePolicies
public MicrosoftGraphServicePrincipalInner withTokenLifetimePolicies(List<MicrosoftGraphTokenLifetimePolicy> tokenLifetimePolicies) Set the tokenLifetimePolicies property: The tokenLifetimePolicies assigned to this service principal.- Parameters:
tokenLifetimePolicies- the tokenLifetimePolicies value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
transitiveMemberOf
Get the transitiveMemberOf property: The transitiveMemberOf property.- Returns:
- the transitiveMemberOf value.
-
withTransitiveMemberOf
public MicrosoftGraphServicePrincipalInner withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf) Set the transitiveMemberOf property: The transitiveMemberOf property.- Parameters:
transitiveMemberOf- the transitiveMemberOf value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
additionalProperties
Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.- Overrides:
additionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphServicePrincipalInner withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphServicePrincipalInner object itself.
-
withDeletedDateTime
Set the deletedDateTime property: The deletedDateTime property.- Overrides:
withDeletedDateTimein classMicrosoftGraphDirectoryObjectInner- Parameters:
deletedDateTime- the deletedDateTime value to set.- Returns:
- the MicrosoftGraphDirectoryObjectInner object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphDirectoryObjectInner- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphDirectoryObjectInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-