Class MicrosoftGraphApplicationInner


public final class MicrosoftGraphApplicationInner extends MicrosoftGraphDirectoryObjectInner
application

Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

  • Constructor Details

    • MicrosoftGraphApplicationInner

      public MicrosoftGraphApplicationInner()
      Creates an instance of MicrosoftGraphApplicationInner class.
  • Method Details

    • addIns

      public List<MicrosoftGraphAddIn> 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 MicrosoftGraphApplicationInner object itself.
    • api

      Get the api property: apiApplication.
      Returns:
      the api value.
    • withApi

      Set the api property: apiApplication.
      Parameters:
      api - the api value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • appId

      public String appId()
      Get the appId property: The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only.
      Returns:
      the appId value.
    • withAppId

      public MicrosoftGraphApplicationInner withAppId(String appId)
      Set the appId property: The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only.
      Parameters:
      appId - the appId value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • applicationTemplateId

      public String applicationTemplateId()
      Get the applicationTemplateId property: The applicationTemplateId property.
      Returns:
      the applicationTemplateId value.
    • withApplicationTemplateId

      public MicrosoftGraphApplicationInner withApplicationTemplateId(String applicationTemplateId)
      Set the applicationTemplateId property: The applicationTemplateId property.
      Parameters:
      applicationTemplateId - the applicationTemplateId value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • appRoles

      public List<MicrosoftGraphAppRole> appRoles()
      Get the appRoles property: The collection of roles the application declares. With app role assignments, these roles can be assigned to users, groups, or other applications' service principals. Not nullable.
      Returns:
      the appRoles value.
    • withAppRoles

      Set the appRoles property: The collection of roles the application declares. With app role assignments, these roles can be assigned to users, groups, or other applications' service principals. Not nullable.
      Parameters:
      appRoles - the appRoles value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • createdDateTime

      public OffsetDateTime createdDateTime()
      Get the createdDateTime property: The date and time the application was registered. Read-only.
      Returns:
      the createdDateTime value.
    • withCreatedDateTime

      public MicrosoftGraphApplicationInner withCreatedDateTime(OffsetDateTime createdDateTime)
      Set the createdDateTime property: The date and time the application was registered. Read-only.
      Parameters:
      createdDateTime - the createdDateTime value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • description

      public String description()
      Get the description property: The description property.
      Returns:
      the description value.
    • withDescription

      public MicrosoftGraphApplicationInner withDescription(String description)
      Set the description property: The description property.
      Parameters:
      description - the description value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • displayName

      public String displayName()
      Get the displayName property: The display name for the application.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphApplicationInner withDisplayName(String displayName)
      Set the displayName property: The display name for the application.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • groupMembershipClaims

      public String groupMembershipClaims()
      Get the groupMembershipClaims property: Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values:NoneSecurityGroup: For security groups and Azure AD rolesAll: This will get all of the security groups, distribution groups, and Azure AD directory roles that the signed-in user is a member of.
      Returns:
      the groupMembershipClaims value.
    • withGroupMembershipClaims

      public MicrosoftGraphApplicationInner withGroupMembershipClaims(String groupMembershipClaims)
      Set the groupMembershipClaims property: Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values:NoneSecurityGroup: For security groups and Azure AD rolesAll: This will get all of the security groups, distribution groups, and Azure AD directory roles that the signed-in user is a member of.
      Parameters:
      groupMembershipClaims - the groupMembershipClaims value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • identifierUris

      public List<String> identifierUris()
      Get the identifierUris property: The URIs that identify the application within its Azure AD tenant, or within a verified custom domain if the application is multi-tenant. For more information see Application Objects and Service Principal Objects. The any operator is required for filter expressions on multi-valued properties. Not nullable.
      Returns:
      the identifierUris value.
    • withIdentifierUris

      public MicrosoftGraphApplicationInner withIdentifierUris(List<String> identifierUris)
      Set the identifierUris property: The URIs that identify the application within its Azure AD tenant, or within a verified custom domain if the application is multi-tenant. For more information see Application Objects and Service Principal Objects. The any operator is required for filter expressions on multi-valued properties. Not nullable.
      Parameters:
      identifierUris - the identifierUris value to set.
      Returns:
      the MicrosoftGraphApplicationInner 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 MicrosoftGraphApplicationInner object itself.
    • isDeviceOnlyAuthSupported

      public Boolean isDeviceOnlyAuthSupported()
      Get the isDeviceOnlyAuthSupported property: The isDeviceOnlyAuthSupported property.
      Returns:
      the isDeviceOnlyAuthSupported value.
    • withIsDeviceOnlyAuthSupported

      public MicrosoftGraphApplicationInner withIsDeviceOnlyAuthSupported(Boolean isDeviceOnlyAuthSupported)
      Set the isDeviceOnlyAuthSupported property: The isDeviceOnlyAuthSupported property.
      Parameters:
      isDeviceOnlyAuthSupported - the isDeviceOnlyAuthSupported value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • isFallbackPublicClient

      public Boolean isFallbackPublicClient()
      Get the isFallbackPublicClient property: Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as web app. There are certain scenarios where Azure AD cannot determine the client application type (e.g. ROPC flow where it is configured without specifying a redirect URI). In those cases Azure AD will interpret the application type based on the value of this property.
      Returns:
      the isFallbackPublicClient value.
    • withIsFallbackPublicClient

      public MicrosoftGraphApplicationInner withIsFallbackPublicClient(Boolean isFallbackPublicClient)
      Set the isFallbackPublicClient property: Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as web app. There are certain scenarios where Azure AD cannot determine the client application type (e.g. ROPC flow where it is configured without specifying a redirect URI). In those cases Azure AD will interpret the application type based on the value of this property.
      Parameters:
      isFallbackPublicClient - the isFallbackPublicClient value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • keyCredentials

      public List<MicrosoftGraphKeyCredentialInner> keyCredentials()
      Get the keyCredentials property: The collection of key credentials associated with the application Not nullable.
      Returns:
      the keyCredentials value.
    • withKeyCredentials

      public MicrosoftGraphApplicationInner withKeyCredentials(List<MicrosoftGraphKeyCredentialInner> keyCredentials)
      Set the keyCredentials property: The collection of key credentials associated with the application Not nullable.
      Parameters:
      keyCredentials - the keyCredentials value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • logo

      public byte[] logo()
      Get the logo property: The main logo for the application. Not nullable.
      Returns:
      the logo value.
    • withLogo

      public MicrosoftGraphApplicationInner withLogo(byte[] logo)
      Set the logo property: The main logo for the application. Not nullable.
      Parameters:
      logo - the logo value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • notes

      public String notes()
      Get the notes property: The notes property.
      Returns:
      the notes value.
    • withNotes

      public MicrosoftGraphApplicationInner withNotes(String notes)
      Set the notes property: The notes property.
      Parameters:
      notes - the notes value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • oauth2RequirePostResponse

      public Boolean oauth2RequirePostResponse()
      Get the oauth2RequirePostResponse property: The oauth2RequirePostResponse property.
      Returns:
      the oauth2RequirePostResponse value.
    • withOauth2RequirePostResponse

      public MicrosoftGraphApplicationInner withOauth2RequirePostResponse(Boolean oauth2RequirePostResponse)
      Set the oauth2RequirePostResponse property: The oauth2RequirePostResponse property.
      Parameters:
      oauth2RequirePostResponse - the oauth2RequirePostResponse value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • optionalClaims

      public MicrosoftGraphOptionalClaims optionalClaims()
      Get the optionalClaims property: optionalClaims.
      Returns:
      the optionalClaims value.
    • withOptionalClaims

      public MicrosoftGraphApplicationInner withOptionalClaims(MicrosoftGraphOptionalClaims optionalClaims)
      Set the optionalClaims property: optionalClaims.
      Parameters:
      optionalClaims - the optionalClaims value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • parentalControlSettings

      public MicrosoftGraphParentalControlSettings parentalControlSettings()
      Get the parentalControlSettings property: parentalControlSettings.
      Returns:
      the parentalControlSettings value.
    • withParentalControlSettings

      public MicrosoftGraphApplicationInner withParentalControlSettings(MicrosoftGraphParentalControlSettings parentalControlSettings)
      Set the parentalControlSettings property: parentalControlSettings.
      Parameters:
      parentalControlSettings - the parentalControlSettings value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • passwordCredentials

      public List<MicrosoftGraphPasswordCredentialInner> passwordCredentials()
      Get the passwordCredentials property: The collection of password credentials associated with the application. Not nullable.
      Returns:
      the passwordCredentials value.
    • withPasswordCredentials

      public MicrosoftGraphApplicationInner withPasswordCredentials(List<MicrosoftGraphPasswordCredentialInner> passwordCredentials)
      Set the passwordCredentials property: The collection of password credentials associated with the application. Not nullable.
      Parameters:
      passwordCredentials - the passwordCredentials value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • publicClient

      Get the publicClient property: publicClientApplication.
      Returns:
      the publicClient value.
    • withPublicClient

      Set the publicClient property: publicClientApplication.
      Parameters:
      publicClient - the publicClient value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • publisherDomain

      public String publisherDomain()
      Get the publisherDomain property: The verified publisher domain for the application. Read-only.
      Returns:
      the publisherDomain value.
    • withPublisherDomain

      public MicrosoftGraphApplicationInner withPublisherDomain(String publisherDomain)
      Set the publisherDomain property: The verified publisher domain for the application. Read-only.
      Parameters:
      publisherDomain - the publisherDomain value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • requiredResourceAccess

      public List<MicrosoftGraphRequiredResourceAccess> requiredResourceAccess()
      Get the requiredResourceAccess property: Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. Not nullable.
      Returns:
      the requiredResourceAccess value.
    • withRequiredResourceAccess

      public MicrosoftGraphApplicationInner withRequiredResourceAccess(List<MicrosoftGraphRequiredResourceAccess> requiredResourceAccess)
      Set the requiredResourceAccess property: Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. Not nullable.
      Parameters:
      requiredResourceAccess - the requiredResourceAccess value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • signInAudience

      public String signInAudience()
      Get the signInAudience property: Specifies the Microsoft accounts that are supported for the current application. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization’s Azure AD tenant (single tenant)AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization’s Azure AD tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization’s Azure AD tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only.For authenticating users with Azure AD B2C user flows, use AzureADandPersonalMicrosoftAccount. This value allows for the widest set of user identities including local accounts and user identities from Microsoft, Facebook, Google, Twitter, or any OpenID Connect provider.
      Returns:
      the signInAudience value.
    • withSignInAudience

      public MicrosoftGraphApplicationInner withSignInAudience(String signInAudience)
      Set the signInAudience property: Specifies the Microsoft accounts that are supported for the current application. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization’s Azure AD tenant (single tenant)AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization’s Azure AD tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization’s Azure AD tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only.For authenticating users with Azure AD B2C user flows, use AzureADandPersonalMicrosoftAccount. This value allows for the widest set of user identities including local accounts and user identities from Microsoft, Facebook, Google, Twitter, or any OpenID Connect provider.
      Parameters:
      signInAudience - the signInAudience value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • tags

      public List<String> tags()
      Get the tags property: Custom strings that can be used to categorize and identify the application. Not nullable.
      Returns:
      the tags value.
    • withTags

      public MicrosoftGraphApplicationInner withTags(List<String> tags)
      Set the tags property: Custom strings that can be used to categorize and identify the application. Not nullable.
      Parameters:
      tags - the tags value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • tokenEncryptionKeyId

      public UUID tokenEncryptionKeyId()
      Get the tokenEncryptionKeyId property: Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD encrypts all the tokens it emits by using the key this property points to. 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

      public MicrosoftGraphApplicationInner withTokenEncryptionKeyId(UUID tokenEncryptionKeyId)
      Set the tokenEncryptionKeyId property: Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD encrypts all the tokens it emits by using the key this property points to. 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 MicrosoftGraphApplicationInner object itself.
    • web

      Get the web property: webApplication.
      Returns:
      the web value.
    • withWeb

      Set the web property: webApplication.
      Parameters:
      web - the web value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • createdOnBehalfOf

      public MicrosoftGraphDirectoryObjectInner createdOnBehalfOf()
      Get the createdOnBehalfOf property: directoryObject

      Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

      Returns:
      the createdOnBehalfOf value.
    • withCreatedOnBehalfOf

      public MicrosoftGraphApplicationInner withCreatedOnBehalfOf(MicrosoftGraphDirectoryObjectInner createdOnBehalfOf)
      Set the createdOnBehalfOf property: directoryObject

      Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

      Parameters:
      createdOnBehalfOf - the createdOnBehalfOf value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • extensionProperties

      public List<MicrosoftGraphExtensionPropertyInner> extensionProperties()
      Get the extensionProperties property: Read-only. Nullable.
      Returns:
      the extensionProperties value.
    • withExtensionProperties

      public MicrosoftGraphApplicationInner withExtensionProperties(List<MicrosoftGraphExtensionPropertyInner> extensionProperties)
      Set the extensionProperties property: Read-only. Nullable.
      Parameters:
      extensionProperties - the extensionProperties value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • homeRealmDiscoveryPolicies

      public List<MicrosoftGraphHomeRealmDiscoveryPolicyInner> homeRealmDiscoveryPolicies()
      Get the homeRealmDiscoveryPolicies property: The homeRealmDiscoveryPolicies property.
      Returns:
      the homeRealmDiscoveryPolicies value.
    • withHomeRealmDiscoveryPolicies

      public MicrosoftGraphApplicationInner withHomeRealmDiscoveryPolicies(List<MicrosoftGraphHomeRealmDiscoveryPolicyInner> homeRealmDiscoveryPolicies)
      Set the homeRealmDiscoveryPolicies property: The homeRealmDiscoveryPolicies property.
      Parameters:
      homeRealmDiscoveryPolicies - the homeRealmDiscoveryPolicies value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • owners

      Get the owners property: Directory objects that are owners of the application. The owners are a set of non-admin users who are allowed to modify this object. Requires version 2013-11-08 or newer. Read-only. Nullable.
      Returns:
      the owners value.
    • withOwners

      Set the owners property: Directory objects that are owners of the application. The owners are a set of non-admin users who are allowed to modify this object. Requires version 2013-11-08 or newer. Read-only. Nullable.
      Parameters:
      owners - the owners value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • tokenIssuancePolicies

      public List<MicrosoftGraphTokenIssuancePolicy> tokenIssuancePolicies()
      Get the tokenIssuancePolicies property: The tokenIssuancePolicies property.
      Returns:
      the tokenIssuancePolicies value.
    • withTokenIssuancePolicies

      public MicrosoftGraphApplicationInner withTokenIssuancePolicies(List<MicrosoftGraphTokenIssuancePolicy> tokenIssuancePolicies)
      Set the tokenIssuancePolicies property: The tokenIssuancePolicies property.
      Parameters:
      tokenIssuancePolicies - the tokenIssuancePolicies value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • tokenLifetimePolicies

      public List<MicrosoftGraphTokenLifetimePolicy> tokenLifetimePolicies()
      Get the tokenLifetimePolicies property: The tokenLifetimePolicies property.
      Returns:
      the tokenLifetimePolicies value.
    • withTokenLifetimePolicies

      public MicrosoftGraphApplicationInner withTokenLifetimePolicies(List<MicrosoftGraphTokenLifetimePolicy> tokenLifetimePolicies)
      Set the tokenLifetimePolicies property: The tokenLifetimePolicies property.
      Parameters:
      tokenLifetimePolicies - the tokenLifetimePolicies value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • additionalProperties

      public Map<String,Object> 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:
      additionalProperties in class MicrosoftGraphDirectoryObjectInner
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphApplicationInner 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:
      withAdditionalProperties in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphApplicationInner object itself.
    • withDeletedDateTime

      public MicrosoftGraphApplicationInner withDeletedDateTime(OffsetDateTime deletedDateTime)
      Set the deletedDateTime property: The deletedDateTime property.
      Overrides:
      withDeletedDateTime in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      deletedDateTime - the deletedDateTime value to set.
      Returns:
      the MicrosoftGraphDirectoryObjectInner object itself.
    • withId

      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphDirectoryObjectInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.