All Downloads are FREE. Search and download functionalities are using the official Maven repository.

odata.msgraph.client.entity.ServicePrincipal Maven / Gradle / Ivy

package odata.msgraph.client.entity;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.guavamini.Preconditions;
import com.github.davidmoten.odata.client.ActionRequestNoReturn;
import com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped;
import com.github.davidmoten.odata.client.ClientException;
import com.github.davidmoten.odata.client.CollectionPage;
import com.github.davidmoten.odata.client.HttpRequestOptions;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.ODataEntityType;
import com.github.davidmoten.odata.client.RequestOptions;
import com.github.davidmoten.odata.client.UnmappedFields;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.Action;
import com.github.davidmoten.odata.client.annotation.NavigationProperty;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.Checks;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.RequestHelper;
import com.github.davidmoten.odata.client.internal.TypedObject;
import com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl;

import java.lang.Boolean;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;

import odata.msgraph.client.complex.AddIn;
import odata.msgraph.client.complex.AppRole;
import odata.msgraph.client.complex.InformationalUrl;
import odata.msgraph.client.complex.KeyCredential;
import odata.msgraph.client.complex.PasswordCredential;
import odata.msgraph.client.complex.PermissionScope;
import odata.msgraph.client.complex.ResourceSpecificPermission;
import odata.msgraph.client.complex.SamlSingleSignOnSettings;
import odata.msgraph.client.complex.SelfSignedCertificate;
import odata.msgraph.client.complex.VerifiedPublisher;
import odata.msgraph.client.entity.collection.request.AppRoleAssignmentCollectionRequest;
import odata.msgraph.client.entity.collection.request.ClaimsMappingPolicyCollectionRequest;
import odata.msgraph.client.entity.collection.request.DelegatedPermissionClassificationCollectionRequest;
import odata.msgraph.client.entity.collection.request.DirectoryObjectCollectionRequest;
import odata.msgraph.client.entity.collection.request.EndpointCollectionRequest;
import odata.msgraph.client.entity.collection.request.FederatedIdentityCredentialCollectionRequest;
import odata.msgraph.client.entity.collection.request.HomeRealmDiscoveryPolicyCollectionRequest;
import odata.msgraph.client.entity.collection.request.OAuth2PermissionGrantCollectionRequest;
import odata.msgraph.client.entity.collection.request.TokenIssuancePolicyCollectionRequest;
import odata.msgraph.client.entity.collection.request.TokenLifetimePolicyCollectionRequest;


/**
 * 

* Org.OData.Capabilities.V1.ChangeTracking *

* Supported = true */@JsonPropertyOrder({ "@odata.type", "accountEnabled", "addIns", "alternativeNames", "appDescription", "appDisplayName", "appId", "applicationTemplateId", "appOwnerOrganizationId", "appRoleAssignmentRequired", "appRoles", "description", "disabledByMicrosoftStatus", "displayName", "homepage", "info", "keyCredentials", "loginUrl", "logoutUrl", "notes", "notificationEmailAddresses", "oauth2PermissionScopes", "passwordCredentials", "preferredSingleSignOnMode", "preferredTokenSigningKeyThumbprint", "replyUrls", "resourceSpecificApplicationPermissions", "samlSingleSignOnSettings", "servicePrincipalNames", "servicePrincipalType", "signInAudience", "tags", "tokenEncryptionKeyId", "verifiedPublisher"}) @JsonInclude(Include.NON_NULL) public class ServicePrincipal extends DirectoryObject implements ODataEntityType { @Override public String odataTypeName() { return "microsoft.graph.servicePrincipal"; } @JsonProperty("accountEnabled") protected Boolean accountEnabled; @JsonProperty("addIns") protected List addIns; @JsonProperty("addIns@nextLink") protected String addInsNextLink; @JsonProperty("alternativeNames") protected List alternativeNames; @JsonProperty("alternativeNames@nextLink") protected String alternativeNamesNextLink; @JsonProperty("appDescription") protected String appDescription; @JsonProperty("appDisplayName") protected String appDisplayName; @JsonProperty("appId") protected String appId; @JsonProperty("applicationTemplateId") protected String applicationTemplateId; @JsonProperty("appOwnerOrganizationId") protected String appOwnerOrganizationId; @JsonProperty("appRoleAssignmentRequired") protected Boolean appRoleAssignmentRequired; @JsonProperty("appRoles") protected List appRoles; @JsonProperty("appRoles@nextLink") protected String appRolesNextLink; @JsonProperty("description") protected String description; @JsonProperty("disabledByMicrosoftStatus") protected String disabledByMicrosoftStatus; @JsonProperty("displayName") protected String displayName; @JsonProperty("homepage") protected String homepage; @JsonProperty("info") protected InformationalUrl info; @JsonProperty("keyCredentials") protected List keyCredentials; @JsonProperty("keyCredentials@nextLink") protected String keyCredentialsNextLink; @JsonProperty("loginUrl") protected String loginUrl; @JsonProperty("logoutUrl") protected String logoutUrl; @JsonProperty("notes") protected String notes; @JsonProperty("notificationEmailAddresses") protected List notificationEmailAddresses; @JsonProperty("notificationEmailAddresses@nextLink") protected String notificationEmailAddressesNextLink; @JsonProperty("oauth2PermissionScopes") protected List oauth2PermissionScopes; @JsonProperty("oauth2PermissionScopes@nextLink") protected String oauth2PermissionScopesNextLink; @JsonProperty("passwordCredentials") protected List passwordCredentials; @JsonProperty("passwordCredentials@nextLink") protected String passwordCredentialsNextLink; @JsonProperty("preferredSingleSignOnMode") protected String preferredSingleSignOnMode; @JsonProperty("preferredTokenSigningKeyThumbprint") protected String preferredTokenSigningKeyThumbprint; @JsonProperty("replyUrls") protected List replyUrls; @JsonProperty("replyUrls@nextLink") protected String replyUrlsNextLink; @JsonProperty("resourceSpecificApplicationPermissions") protected List resourceSpecificApplicationPermissions; @JsonProperty("resourceSpecificApplicationPermissions@nextLink") protected String resourceSpecificApplicationPermissionsNextLink; @JsonProperty("samlSingleSignOnSettings") protected SamlSingleSignOnSettings samlSingleSignOnSettings; @JsonProperty("servicePrincipalNames") protected List servicePrincipalNames; @JsonProperty("servicePrincipalNames@nextLink") protected String servicePrincipalNamesNextLink; @JsonProperty("servicePrincipalType") protected String servicePrincipalType; @JsonProperty("signInAudience") protected String signInAudience; @JsonProperty("tags") protected List tags; @JsonProperty("tags@nextLink") protected String tagsNextLink; @JsonProperty("tokenEncryptionKeyId") protected String tokenEncryptionKeyId; @JsonProperty("verifiedPublisher") protected VerifiedPublisher verifiedPublisher; protected ServicePrincipal() { super(); } /** * Returns a builder which is used to create a new * instance of this class (given that this class is immutable). * * @return a new Builder for this class */ // Suffix used on builder factory method to differentiate the method // from static builder methods on superclasses public static Builder builderServicePrincipal() { return new Builder(); } public static final class Builder { private String id; private OffsetDateTime deletedDateTime; private Boolean accountEnabled; private List addIns; private String addInsNextLink; private List alternativeNames; private String alternativeNamesNextLink; private String appDescription; private String appDisplayName; private String appId; private String applicationTemplateId; private String appOwnerOrganizationId; private Boolean appRoleAssignmentRequired; private List appRoles; private String appRolesNextLink; private String description; private String disabledByMicrosoftStatus; private String displayName; private String homepage; private InformationalUrl info; private List keyCredentials; private String keyCredentialsNextLink; private String loginUrl; private String logoutUrl; private String notes; private List notificationEmailAddresses; private String notificationEmailAddressesNextLink; private List oauth2PermissionScopes; private String oauth2PermissionScopesNextLink; private List passwordCredentials; private String passwordCredentialsNextLink; private String preferredSingleSignOnMode; private String preferredTokenSigningKeyThumbprint; private List replyUrls; private String replyUrlsNextLink; private List resourceSpecificApplicationPermissions; private String resourceSpecificApplicationPermissionsNextLink; private SamlSingleSignOnSettings samlSingleSignOnSettings; private List servicePrincipalNames; private String servicePrincipalNamesNextLink; private String servicePrincipalType; private String signInAudience; private List tags; private String tagsNextLink; private String tokenEncryptionKeyId; private VerifiedPublisher verifiedPublisher; private ChangedFields changedFields = ChangedFields.EMPTY; Builder() { // prevent instantiation } public Builder id(String id) { this.id = id; this.changedFields = changedFields.add("id"); return this; } public Builder deletedDateTime(OffsetDateTime deletedDateTime) { this.deletedDateTime = deletedDateTime; this.changedFields = changedFields.add("deletedDateTime"); return this; } public Builder accountEnabled(Boolean accountEnabled) { this.accountEnabled = accountEnabled; this.changedFields = changedFields.add("accountEnabled"); return this; } public Builder addIns(List addIns) { this.addIns = addIns; this.changedFields = changedFields.add("addIns"); return this; } public Builder addIns(AddIn... addIns) { return addIns(Arrays.asList(addIns)); } public Builder addInsNextLink(String addInsNextLink) { this.addInsNextLink = addInsNextLink; this.changedFields = changedFields.add("addIns"); return this; } public Builder alternativeNames(List alternativeNames) { this.alternativeNames = alternativeNames; this.changedFields = changedFields.add("alternativeNames"); return this; } public Builder alternativeNames(String... alternativeNames) { return alternativeNames(Arrays.asList(alternativeNames)); } public Builder alternativeNamesNextLink(String alternativeNamesNextLink) { this.alternativeNamesNextLink = alternativeNamesNextLink; this.changedFields = changedFields.add("alternativeNames"); return this; } public Builder appDescription(String appDescription) { this.appDescription = appDescription; this.changedFields = changedFields.add("appDescription"); return this; } public Builder appDisplayName(String appDisplayName) { this.appDisplayName = appDisplayName; this.changedFields = changedFields.add("appDisplayName"); return this; } public Builder appId(String appId) { this.appId = appId; this.changedFields = changedFields.add("appId"); return this; } public Builder applicationTemplateId(String applicationTemplateId) { this.applicationTemplateId = applicationTemplateId; this.changedFields = changedFields.add("applicationTemplateId"); return this; } public Builder appOwnerOrganizationId(String appOwnerOrganizationId) { this.appOwnerOrganizationId = appOwnerOrganizationId; this.changedFields = changedFields.add("appOwnerOrganizationId"); return this; } public Builder appRoleAssignmentRequired(Boolean appRoleAssignmentRequired) { this.appRoleAssignmentRequired = appRoleAssignmentRequired; this.changedFields = changedFields.add("appRoleAssignmentRequired"); return this; } public Builder appRoles(List appRoles) { this.appRoles = appRoles; this.changedFields = changedFields.add("appRoles"); return this; } public Builder appRoles(AppRole... appRoles) { return appRoles(Arrays.asList(appRoles)); } public Builder appRolesNextLink(String appRolesNextLink) { this.appRolesNextLink = appRolesNextLink; this.changedFields = changedFields.add("appRoles"); return this; } public Builder description(String description) { this.description = description; this.changedFields = changedFields.add("description"); return this; } public Builder disabledByMicrosoftStatus(String disabledByMicrosoftStatus) { this.disabledByMicrosoftStatus = disabledByMicrosoftStatus; this.changedFields = changedFields.add("disabledByMicrosoftStatus"); return this; } public Builder displayName(String displayName) { this.displayName = displayName; this.changedFields = changedFields.add("displayName"); return this; } public Builder homepage(String homepage) { this.homepage = homepage; this.changedFields = changedFields.add("homepage"); return this; } public Builder info(InformationalUrl info) { this.info = info; this.changedFields = changedFields.add("info"); return this; } public Builder keyCredentials(List keyCredentials) { this.keyCredentials = keyCredentials; this.changedFields = changedFields.add("keyCredentials"); return this; } public Builder keyCredentials(KeyCredential... keyCredentials) { return keyCredentials(Arrays.asList(keyCredentials)); } public Builder keyCredentialsNextLink(String keyCredentialsNextLink) { this.keyCredentialsNextLink = keyCredentialsNextLink; this.changedFields = changedFields.add("keyCredentials"); return this; } public Builder loginUrl(String loginUrl) { this.loginUrl = loginUrl; this.changedFields = changedFields.add("loginUrl"); return this; } public Builder logoutUrl(String logoutUrl) { this.logoutUrl = logoutUrl; this.changedFields = changedFields.add("logoutUrl"); return this; } public Builder notes(String notes) { this.notes = notes; this.changedFields = changedFields.add("notes"); return this; } public Builder notificationEmailAddresses(List notificationEmailAddresses) { this.notificationEmailAddresses = notificationEmailAddresses; this.changedFields = changedFields.add("notificationEmailAddresses"); return this; } public Builder notificationEmailAddresses(String... notificationEmailAddresses) { return notificationEmailAddresses(Arrays.asList(notificationEmailAddresses)); } public Builder notificationEmailAddressesNextLink(String notificationEmailAddressesNextLink) { this.notificationEmailAddressesNextLink = notificationEmailAddressesNextLink; this.changedFields = changedFields.add("notificationEmailAddresses"); return this; } public Builder oauth2PermissionScopes(List oauth2PermissionScopes) { this.oauth2PermissionScopes = oauth2PermissionScopes; this.changedFields = changedFields.add("oauth2PermissionScopes"); return this; } public Builder oauth2PermissionScopes(PermissionScope... oauth2PermissionScopes) { return oauth2PermissionScopes(Arrays.asList(oauth2PermissionScopes)); } public Builder oauth2PermissionScopesNextLink(String oauth2PermissionScopesNextLink) { this.oauth2PermissionScopesNextLink = oauth2PermissionScopesNextLink; this.changedFields = changedFields.add("oauth2PermissionScopes"); return this; } public Builder passwordCredentials(List passwordCredentials) { this.passwordCredentials = passwordCredentials; this.changedFields = changedFields.add("passwordCredentials"); return this; } public Builder passwordCredentials(PasswordCredential... passwordCredentials) { return passwordCredentials(Arrays.asList(passwordCredentials)); } public Builder passwordCredentialsNextLink(String passwordCredentialsNextLink) { this.passwordCredentialsNextLink = passwordCredentialsNextLink; this.changedFields = changedFields.add("passwordCredentials"); return this; } public Builder preferredSingleSignOnMode(String preferredSingleSignOnMode) { this.preferredSingleSignOnMode = preferredSingleSignOnMode; this.changedFields = changedFields.add("preferredSingleSignOnMode"); return this; } public Builder preferredTokenSigningKeyThumbprint(String preferredTokenSigningKeyThumbprint) { this.preferredTokenSigningKeyThumbprint = preferredTokenSigningKeyThumbprint; this.changedFields = changedFields.add("preferredTokenSigningKeyThumbprint"); return this; } public Builder replyUrls(List replyUrls) { this.replyUrls = replyUrls; this.changedFields = changedFields.add("replyUrls"); return this; } public Builder replyUrls(String... replyUrls) { return replyUrls(Arrays.asList(replyUrls)); } public Builder replyUrlsNextLink(String replyUrlsNextLink) { this.replyUrlsNextLink = replyUrlsNextLink; this.changedFields = changedFields.add("replyUrls"); return this; } public Builder resourceSpecificApplicationPermissions(List resourceSpecificApplicationPermissions) { this.resourceSpecificApplicationPermissions = resourceSpecificApplicationPermissions; this.changedFields = changedFields.add("resourceSpecificApplicationPermissions"); return this; } public Builder resourceSpecificApplicationPermissions(ResourceSpecificPermission... resourceSpecificApplicationPermissions) { return resourceSpecificApplicationPermissions(Arrays.asList(resourceSpecificApplicationPermissions)); } public Builder resourceSpecificApplicationPermissionsNextLink(String resourceSpecificApplicationPermissionsNextLink) { this.resourceSpecificApplicationPermissionsNextLink = resourceSpecificApplicationPermissionsNextLink; this.changedFields = changedFields.add("resourceSpecificApplicationPermissions"); return this; } public Builder samlSingleSignOnSettings(SamlSingleSignOnSettings samlSingleSignOnSettings) { this.samlSingleSignOnSettings = samlSingleSignOnSettings; this.changedFields = changedFields.add("samlSingleSignOnSettings"); return this; } public Builder servicePrincipalNames(List servicePrincipalNames) { this.servicePrincipalNames = servicePrincipalNames; this.changedFields = changedFields.add("servicePrincipalNames"); return this; } public Builder servicePrincipalNames(String... servicePrincipalNames) { return servicePrincipalNames(Arrays.asList(servicePrincipalNames)); } public Builder servicePrincipalNamesNextLink(String servicePrincipalNamesNextLink) { this.servicePrincipalNamesNextLink = servicePrincipalNamesNextLink; this.changedFields = changedFields.add("servicePrincipalNames"); return this; } public Builder servicePrincipalType(String servicePrincipalType) { this.servicePrincipalType = servicePrincipalType; this.changedFields = changedFields.add("servicePrincipalType"); return this; } public Builder signInAudience(String signInAudience) { this.signInAudience = signInAudience; this.changedFields = changedFields.add("signInAudience"); return this; } public Builder tags(List tags) { this.tags = tags; this.changedFields = changedFields.add("tags"); return this; } public Builder tags(String... tags) { return tags(Arrays.asList(tags)); } public Builder tagsNextLink(String tagsNextLink) { this.tagsNextLink = tagsNextLink; this.changedFields = changedFields.add("tags"); return this; } public Builder tokenEncryptionKeyId(String tokenEncryptionKeyId) { this.tokenEncryptionKeyId = tokenEncryptionKeyId; this.changedFields = changedFields.add("tokenEncryptionKeyId"); return this; } public Builder verifiedPublisher(VerifiedPublisher verifiedPublisher) { this.verifiedPublisher = verifiedPublisher; this.changedFields = changedFields.add("verifiedPublisher"); return this; } public ServicePrincipal build() { ServicePrincipal _x = new ServicePrincipal(); _x.contextPath = null; _x.changedFields = changedFields; _x.unmappedFields = new UnmappedFieldsImpl(); _x.odataType = "microsoft.graph.servicePrincipal"; _x.id = id; _x.deletedDateTime = deletedDateTime; _x.accountEnabled = accountEnabled; _x.addIns = addIns; _x.addInsNextLink = addInsNextLink; _x.alternativeNames = alternativeNames; _x.alternativeNamesNextLink = alternativeNamesNextLink; _x.appDescription = appDescription; _x.appDisplayName = appDisplayName; _x.appId = appId; _x.applicationTemplateId = applicationTemplateId; _x.appOwnerOrganizationId = appOwnerOrganizationId; _x.appRoleAssignmentRequired = appRoleAssignmentRequired; _x.appRoles = appRoles; _x.appRolesNextLink = appRolesNextLink; _x.description = description; _x.disabledByMicrosoftStatus = disabledByMicrosoftStatus; _x.displayName = displayName; _x.homepage = homepage; _x.info = info; _x.keyCredentials = keyCredentials; _x.keyCredentialsNextLink = keyCredentialsNextLink; _x.loginUrl = loginUrl; _x.logoutUrl = logoutUrl; _x.notes = notes; _x.notificationEmailAddresses = notificationEmailAddresses; _x.notificationEmailAddressesNextLink = notificationEmailAddressesNextLink; _x.oauth2PermissionScopes = oauth2PermissionScopes; _x.oauth2PermissionScopesNextLink = oauth2PermissionScopesNextLink; _x.passwordCredentials = passwordCredentials; _x.passwordCredentialsNextLink = passwordCredentialsNextLink; _x.preferredSingleSignOnMode = preferredSingleSignOnMode; _x.preferredTokenSigningKeyThumbprint = preferredTokenSigningKeyThumbprint; _x.replyUrls = replyUrls; _x.replyUrlsNextLink = replyUrlsNextLink; _x.resourceSpecificApplicationPermissions = resourceSpecificApplicationPermissions; _x.resourceSpecificApplicationPermissionsNextLink = resourceSpecificApplicationPermissionsNextLink; _x.samlSingleSignOnSettings = samlSingleSignOnSettings; _x.servicePrincipalNames = servicePrincipalNames; _x.servicePrincipalNamesNextLink = servicePrincipalNamesNextLink; _x.servicePrincipalType = servicePrincipalType; _x.signInAudience = signInAudience; _x.tags = tags; _x.tagsNextLink = tagsNextLink; _x.tokenEncryptionKeyId = tokenEncryptionKeyId; _x.verifiedPublisher = verifiedPublisher; return _x; } } @Override @JsonIgnore public ChangedFields getChangedFields() { return changedFields; } @Override public void postInject(boolean addKeysToContextPath) { if (addKeysToContextPath && id != null) { contextPath = contextPath.clearQueries().addKeys(new NameValue(id.toString())); } } @Property(name="accountEnabled") @JsonIgnore public Optional getAccountEnabled() { return Optional.ofNullable(accountEnabled); } public ServicePrincipal withAccountEnabled(Boolean accountEnabled) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("accountEnabled"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.accountEnabled = accountEnabled; return _x; } @Property(name="addIns") @JsonIgnore public CollectionPage getAddIns() { return new CollectionPage(contextPath, AddIn.class, this.addIns, Optional.ofNullable(addInsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withAddIns(List addIns) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("addIns"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.addIns = addIns; return _x; } @Property(name="addIns") @JsonIgnore public CollectionPage getAddIns(HttpRequestOptions options) { return new CollectionPage(contextPath, AddIn.class, this.addIns, Optional.ofNullable(addInsNextLink), Collections.emptyList(), options); } @Property(name="alternativeNames") @JsonIgnore public CollectionPage getAlternativeNames() { return new CollectionPage(contextPath, String.class, this.alternativeNames, Optional.ofNullable(alternativeNamesNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withAlternativeNames(List alternativeNames) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("alternativeNames"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.alternativeNames = alternativeNames; return _x; } @Property(name="alternativeNames") @JsonIgnore public CollectionPage getAlternativeNames(HttpRequestOptions options) { return new CollectionPage(contextPath, String.class, this.alternativeNames, Optional.ofNullable(alternativeNamesNextLink), Collections.emptyList(), options); } @Property(name="appDescription") @JsonIgnore public Optional getAppDescription() { return Optional.ofNullable(appDescription); } public ServicePrincipal withAppDescription(String appDescription) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("appDescription"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.appDescription = appDescription; return _x; } @Property(name="appDisplayName") @JsonIgnore public Optional getAppDisplayName() { return Optional.ofNullable(appDisplayName); } public ServicePrincipal withAppDisplayName(String appDisplayName) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("appDisplayName"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.appDisplayName = appDisplayName; return _x; } @Property(name="appId") @JsonIgnore public Optional getAppId() { return Optional.ofNullable(appId); } public ServicePrincipal withAppId(String appId) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("appId"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.appId = appId; return _x; } @Property(name="applicationTemplateId") @JsonIgnore public Optional getApplicationTemplateId() { return Optional.ofNullable(applicationTemplateId); } public ServicePrincipal withApplicationTemplateId(String applicationTemplateId) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("applicationTemplateId"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.applicationTemplateId = applicationTemplateId; return _x; } @Property(name="appOwnerOrganizationId") @JsonIgnore public Optional getAppOwnerOrganizationId() { return Optional.ofNullable(appOwnerOrganizationId); } public ServicePrincipal withAppOwnerOrganizationId(String appOwnerOrganizationId) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("appOwnerOrganizationId"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.appOwnerOrganizationId = appOwnerOrganizationId; return _x; } @Property(name="appRoleAssignmentRequired") @JsonIgnore public Optional getAppRoleAssignmentRequired() { return Optional.ofNullable(appRoleAssignmentRequired); } public ServicePrincipal withAppRoleAssignmentRequired(Boolean appRoleAssignmentRequired) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("appRoleAssignmentRequired"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.appRoleAssignmentRequired = appRoleAssignmentRequired; return _x; } @Property(name="appRoles") @JsonIgnore public CollectionPage getAppRoles() { return new CollectionPage(contextPath, AppRole.class, this.appRoles, Optional.ofNullable(appRolesNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withAppRoles(List appRoles) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("appRoles"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.appRoles = appRoles; return _x; } @Property(name="appRoles") @JsonIgnore public CollectionPage getAppRoles(HttpRequestOptions options) { return new CollectionPage(contextPath, AppRole.class, this.appRoles, Optional.ofNullable(appRolesNextLink), Collections.emptyList(), options); } @Property(name="description") @JsonIgnore public Optional getDescription() { return Optional.ofNullable(description); } public ServicePrincipal withDescription(String description) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("description"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.description = description; return _x; } @Property(name="disabledByMicrosoftStatus") @JsonIgnore public Optional getDisabledByMicrosoftStatus() { return Optional.ofNullable(disabledByMicrosoftStatus); } public ServicePrincipal withDisabledByMicrosoftStatus(String disabledByMicrosoftStatus) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("disabledByMicrosoftStatus"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.disabledByMicrosoftStatus = disabledByMicrosoftStatus; return _x; } @Property(name="displayName") @JsonIgnore public Optional getDisplayName() { return Optional.ofNullable(displayName); } public ServicePrincipal withDisplayName(String displayName) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("displayName"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.displayName = displayName; return _x; } @Property(name="homepage") @JsonIgnore public Optional getHomepage() { return Optional.ofNullable(homepage); } public ServicePrincipal withHomepage(String homepage) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("homepage"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.homepage = homepage; return _x; } @Property(name="info") @JsonIgnore public Optional getInfo() { return Optional.ofNullable(info); } public ServicePrincipal withInfo(InformationalUrl info) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("info"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.info = info; return _x; } @Property(name="keyCredentials") @JsonIgnore public CollectionPage getKeyCredentials() { return new CollectionPage(contextPath, KeyCredential.class, this.keyCredentials, Optional.ofNullable(keyCredentialsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withKeyCredentials(List keyCredentials) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("keyCredentials"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.keyCredentials = keyCredentials; return _x; } @Property(name="keyCredentials") @JsonIgnore public CollectionPage getKeyCredentials(HttpRequestOptions options) { return new CollectionPage(contextPath, KeyCredential.class, this.keyCredentials, Optional.ofNullable(keyCredentialsNextLink), Collections.emptyList(), options); } @Property(name="loginUrl") @JsonIgnore public Optional getLoginUrl() { return Optional.ofNullable(loginUrl); } public ServicePrincipal withLoginUrl(String loginUrl) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("loginUrl"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.loginUrl = loginUrl; return _x; } @Property(name="logoutUrl") @JsonIgnore public Optional getLogoutUrl() { return Optional.ofNullable(logoutUrl); } public ServicePrincipal withLogoutUrl(String logoutUrl) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("logoutUrl"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.logoutUrl = logoutUrl; return _x; } @Property(name="notes") @JsonIgnore public Optional getNotes() { return Optional.ofNullable(notes); } public ServicePrincipal withNotes(String notes) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("notes"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.notes = notes; return _x; } @Property(name="notificationEmailAddresses") @JsonIgnore public CollectionPage getNotificationEmailAddresses() { return new CollectionPage(contextPath, String.class, this.notificationEmailAddresses, Optional.ofNullable(notificationEmailAddressesNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withNotificationEmailAddresses(List notificationEmailAddresses) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("notificationEmailAddresses"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.notificationEmailAddresses = notificationEmailAddresses; return _x; } @Property(name="notificationEmailAddresses") @JsonIgnore public CollectionPage getNotificationEmailAddresses(HttpRequestOptions options) { return new CollectionPage(contextPath, String.class, this.notificationEmailAddresses, Optional.ofNullable(notificationEmailAddressesNextLink), Collections.emptyList(), options); } @Property(name="oauth2PermissionScopes") @JsonIgnore public CollectionPage getOauth2PermissionScopes() { return new CollectionPage(contextPath, PermissionScope.class, this.oauth2PermissionScopes, Optional.ofNullable(oauth2PermissionScopesNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withOauth2PermissionScopes(List oauth2PermissionScopes) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("oauth2PermissionScopes"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.oauth2PermissionScopes = oauth2PermissionScopes; return _x; } @Property(name="oauth2PermissionScopes") @JsonIgnore public CollectionPage getOauth2PermissionScopes(HttpRequestOptions options) { return new CollectionPage(contextPath, PermissionScope.class, this.oauth2PermissionScopes, Optional.ofNullable(oauth2PermissionScopesNextLink), Collections.emptyList(), options); } @Property(name="passwordCredentials") @JsonIgnore public CollectionPage getPasswordCredentials() { return new CollectionPage(contextPath, PasswordCredential.class, this.passwordCredentials, Optional.ofNullable(passwordCredentialsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withPasswordCredentials(List passwordCredentials) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("passwordCredentials"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.passwordCredentials = passwordCredentials; return _x; } @Property(name="passwordCredentials") @JsonIgnore public CollectionPage getPasswordCredentials(HttpRequestOptions options) { return new CollectionPage(contextPath, PasswordCredential.class, this.passwordCredentials, Optional.ofNullable(passwordCredentialsNextLink), Collections.emptyList(), options); } @Property(name="preferredSingleSignOnMode") @JsonIgnore public Optional getPreferredSingleSignOnMode() { return Optional.ofNullable(preferredSingleSignOnMode); } public ServicePrincipal withPreferredSingleSignOnMode(String preferredSingleSignOnMode) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("preferredSingleSignOnMode"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.preferredSingleSignOnMode = preferredSingleSignOnMode; return _x; } @Property(name="preferredTokenSigningKeyThumbprint") @JsonIgnore public Optional getPreferredTokenSigningKeyThumbprint() { return Optional.ofNullable(preferredTokenSigningKeyThumbprint); } public ServicePrincipal withPreferredTokenSigningKeyThumbprint(String preferredTokenSigningKeyThumbprint) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("preferredTokenSigningKeyThumbprint"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.preferredTokenSigningKeyThumbprint = preferredTokenSigningKeyThumbprint; return _x; } @Property(name="replyUrls") @JsonIgnore public CollectionPage getReplyUrls() { return new CollectionPage(contextPath, String.class, this.replyUrls, Optional.ofNullable(replyUrlsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withReplyUrls(List replyUrls) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("replyUrls"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.replyUrls = replyUrls; return _x; } @Property(name="replyUrls") @JsonIgnore public CollectionPage getReplyUrls(HttpRequestOptions options) { return new CollectionPage(contextPath, String.class, this.replyUrls, Optional.ofNullable(replyUrlsNextLink), Collections.emptyList(), options); } @Property(name="resourceSpecificApplicationPermissions") @JsonIgnore public CollectionPage getResourceSpecificApplicationPermissions() { return new CollectionPage(contextPath, ResourceSpecificPermission.class, this.resourceSpecificApplicationPermissions, Optional.ofNullable(resourceSpecificApplicationPermissionsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withResourceSpecificApplicationPermissions(List resourceSpecificApplicationPermissions) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("resourceSpecificApplicationPermissions"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.resourceSpecificApplicationPermissions = resourceSpecificApplicationPermissions; return _x; } @Property(name="resourceSpecificApplicationPermissions") @JsonIgnore public CollectionPage getResourceSpecificApplicationPermissions(HttpRequestOptions options) { return new CollectionPage(contextPath, ResourceSpecificPermission.class, this.resourceSpecificApplicationPermissions, Optional.ofNullable(resourceSpecificApplicationPermissionsNextLink), Collections.emptyList(), options); } @Property(name="samlSingleSignOnSettings") @JsonIgnore public Optional getSamlSingleSignOnSettings() { return Optional.ofNullable(samlSingleSignOnSettings); } public ServicePrincipal withSamlSingleSignOnSettings(SamlSingleSignOnSettings samlSingleSignOnSettings) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("samlSingleSignOnSettings"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.samlSingleSignOnSettings = samlSingleSignOnSettings; return _x; } @Property(name="servicePrincipalNames") @JsonIgnore public CollectionPage getServicePrincipalNames() { return new CollectionPage(contextPath, String.class, this.servicePrincipalNames, Optional.ofNullable(servicePrincipalNamesNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withServicePrincipalNames(List servicePrincipalNames) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("servicePrincipalNames"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.servicePrincipalNames = servicePrincipalNames; return _x; } @Property(name="servicePrincipalNames") @JsonIgnore public CollectionPage getServicePrincipalNames(HttpRequestOptions options) { return new CollectionPage(contextPath, String.class, this.servicePrincipalNames, Optional.ofNullable(servicePrincipalNamesNextLink), Collections.emptyList(), options); } @Property(name="servicePrincipalType") @JsonIgnore public Optional getServicePrincipalType() { return Optional.ofNullable(servicePrincipalType); } public ServicePrincipal withServicePrincipalType(String servicePrincipalType) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("servicePrincipalType"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.servicePrincipalType = servicePrincipalType; return _x; } @Property(name="signInAudience") @JsonIgnore public Optional getSignInAudience() { return Optional.ofNullable(signInAudience); } public ServicePrincipal withSignInAudience(String signInAudience) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("signInAudience"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.signInAudience = signInAudience; return _x; } @Property(name="tags") @JsonIgnore public CollectionPage getTags() { return new CollectionPage(contextPath, String.class, this.tags, Optional.ofNullable(tagsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY); } public ServicePrincipal withTags(List tags) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("tags"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.tags = tags; return _x; } @Property(name="tags") @JsonIgnore public CollectionPage getTags(HttpRequestOptions options) { return new CollectionPage(contextPath, String.class, this.tags, Optional.ofNullable(tagsNextLink), Collections.emptyList(), options); } @Property(name="tokenEncryptionKeyId") @JsonIgnore public Optional getTokenEncryptionKeyId() { return Optional.ofNullable(tokenEncryptionKeyId); } public ServicePrincipal withTokenEncryptionKeyId(String tokenEncryptionKeyId) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("tokenEncryptionKeyId"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.tokenEncryptionKeyId = tokenEncryptionKeyId; return _x; } @Property(name="verifiedPublisher") @JsonIgnore public Optional getVerifiedPublisher() { return Optional.ofNullable(verifiedPublisher); } public ServicePrincipal withVerifiedPublisher(VerifiedPublisher verifiedPublisher) { ServicePrincipal _x = _copy(); _x.changedFields = changedFields.add("verifiedPublisher"); _x.odataType = Util.nvl(odataType, "microsoft.graph.servicePrincipal"); _x.verifiedPublisher = verifiedPublisher; return _x; } public ServicePrincipal withUnmappedField(String name, String value) { ServicePrincipal _x = _copy(); _x.setUnmappedField(name, value); return _x; } @NavigationProperty(name="appRoleAssignedTo") @JsonIgnore public AppRoleAssignmentCollectionRequest getAppRoleAssignedTo() { return new AppRoleAssignmentCollectionRequest( contextPath.addSegment("appRoleAssignedTo"), RequestHelper.getValue(unmappedFields, "appRoleAssignedTo")); } @NavigationProperty(name="appRoleAssignments") @JsonIgnore public AppRoleAssignmentCollectionRequest getAppRoleAssignments() { return new AppRoleAssignmentCollectionRequest( contextPath.addSegment("appRoleAssignments"), RequestHelper.getValue(unmappedFields, "appRoleAssignments")); } @NavigationProperty(name="claimsMappingPolicies") @JsonIgnore public ClaimsMappingPolicyCollectionRequest getClaimsMappingPolicies() { return new ClaimsMappingPolicyCollectionRequest( contextPath.addSegment("claimsMappingPolicies"), RequestHelper.getValue(unmappedFields, "claimsMappingPolicies")); } @NavigationProperty(name="createdObjects") @JsonIgnore public DirectoryObjectCollectionRequest getCreatedObjects() { return new DirectoryObjectCollectionRequest( contextPath.addSegment("createdObjects"), RequestHelper.getValue(unmappedFields, "createdObjects")); } @NavigationProperty(name="delegatedPermissionClassifications") @JsonIgnore public DelegatedPermissionClassificationCollectionRequest getDelegatedPermissionClassifications() { return new DelegatedPermissionClassificationCollectionRequest( contextPath.addSegment("delegatedPermissionClassifications"), RequestHelper.getValue(unmappedFields, "delegatedPermissionClassifications")); } @NavigationProperty(name="endpoints") @JsonIgnore public EndpointCollectionRequest getEndpoints() { return new EndpointCollectionRequest( contextPath.addSegment("endpoints"), RequestHelper.getValue(unmappedFields, "endpoints")); } @NavigationProperty(name="federatedIdentityCredentials") @JsonIgnore public FederatedIdentityCredentialCollectionRequest getFederatedIdentityCredentials() { return new FederatedIdentityCredentialCollectionRequest( contextPath.addSegment("federatedIdentityCredentials"), RequestHelper.getValue(unmappedFields, "federatedIdentityCredentials")); } @NavigationProperty(name="homeRealmDiscoveryPolicies") @JsonIgnore public HomeRealmDiscoveryPolicyCollectionRequest getHomeRealmDiscoveryPolicies() { return new HomeRealmDiscoveryPolicyCollectionRequest( contextPath.addSegment("homeRealmDiscoveryPolicies"), RequestHelper.getValue(unmappedFields, "homeRealmDiscoveryPolicies")); } @NavigationProperty(name="memberOf") @JsonIgnore public DirectoryObjectCollectionRequest getMemberOf() { return new DirectoryObjectCollectionRequest( contextPath.addSegment("memberOf"), RequestHelper.getValue(unmappedFields, "memberOf")); } @NavigationProperty(name="oauth2PermissionGrants") @JsonIgnore public OAuth2PermissionGrantCollectionRequest getOauth2PermissionGrants() { return new OAuth2PermissionGrantCollectionRequest( contextPath.addSegment("oauth2PermissionGrants"), RequestHelper.getValue(unmappedFields, "oauth2PermissionGrants")); } @NavigationProperty(name="ownedObjects") @JsonIgnore public DirectoryObjectCollectionRequest getOwnedObjects() { return new DirectoryObjectCollectionRequest( contextPath.addSegment("ownedObjects"), RequestHelper.getValue(unmappedFields, "ownedObjects")); } @NavigationProperty(name="owners") @JsonIgnore public DirectoryObjectCollectionRequest getOwners() { return new DirectoryObjectCollectionRequest( contextPath.addSegment("owners"), RequestHelper.getValue(unmappedFields, "owners")); } @NavigationProperty(name="tokenIssuancePolicies") @JsonIgnore public TokenIssuancePolicyCollectionRequest getTokenIssuancePolicies() { return new TokenIssuancePolicyCollectionRequest( contextPath.addSegment("tokenIssuancePolicies"), RequestHelper.getValue(unmappedFields, "tokenIssuancePolicies")); } @NavigationProperty(name="tokenLifetimePolicies") @JsonIgnore public TokenLifetimePolicyCollectionRequest getTokenLifetimePolicies() { return new TokenLifetimePolicyCollectionRequest( contextPath.addSegment("tokenLifetimePolicies"), RequestHelper.getValue(unmappedFields, "tokenLifetimePolicies")); } @NavigationProperty(name="transitiveMemberOf") @JsonIgnore public DirectoryObjectCollectionRequest getTransitiveMemberOf() { return new DirectoryObjectCollectionRequest( contextPath.addSegment("transitiveMemberOf"), RequestHelper.getValue(unmappedFields, "transitiveMemberOf")); } @JsonAnySetter private void setUnmappedField(String name, Object value) { if (unmappedFields == null) { unmappedFields = new UnmappedFieldsImpl(); } unmappedFields.put(name, value); } @JsonAnyGetter private UnmappedFieldsImpl unmappedFields() { return unmappedFields == null ? UnmappedFieldsImpl.EMPTY : unmappedFields; } @Override public UnmappedFields getUnmappedFields() { return unmappedFields(); } /** * Submits only changed fields for update and returns an * immutable copy of {@code this} with changed fields reset. * * @return a copy of {@code this} with changed fields reset * @throws ClientException if HTTP response is not as expected */ public ServicePrincipal patch() { RequestHelper.patch(this, contextPath, RequestOptions.EMPTY); ServicePrincipal _x = _copy(); _x.changedFields = null; return _x; } /** * Submits all fields for update and returns an immutable copy of {@code this} * with changed fields reset (they were ignored anyway). * * @return a copy of {@code this} with changed fields reset * @throws ClientException if HTTP response is not as expected */ public ServicePrincipal put() { RequestHelper.put(this, contextPath, RequestOptions.EMPTY); ServicePrincipal _x = _copy(); _x.changedFields = null; return _x; } private ServicePrincipal _copy() { ServicePrincipal _x = new ServicePrincipal(); _x.contextPath = contextPath; _x.changedFields = changedFields; _x.unmappedFields = unmappedFields.copy(); _x.odataType = odataType; _x.id = id; _x.deletedDateTime = deletedDateTime; _x.accountEnabled = accountEnabled; _x.addIns = addIns; _x.alternativeNames = alternativeNames; _x.appDescription = appDescription; _x.appDisplayName = appDisplayName; _x.appId = appId; _x.applicationTemplateId = applicationTemplateId; _x.appOwnerOrganizationId = appOwnerOrganizationId; _x.appRoleAssignmentRequired = appRoleAssignmentRequired; _x.appRoles = appRoles; _x.description = description; _x.disabledByMicrosoftStatus = disabledByMicrosoftStatus; _x.displayName = displayName; _x.homepage = homepage; _x.info = info; _x.keyCredentials = keyCredentials; _x.loginUrl = loginUrl; _x.logoutUrl = logoutUrl; _x.notes = notes; _x.notificationEmailAddresses = notificationEmailAddresses; _x.oauth2PermissionScopes = oauth2PermissionScopes; _x.passwordCredentials = passwordCredentials; _x.preferredSingleSignOnMode = preferredSingleSignOnMode; _x.preferredTokenSigningKeyThumbprint = preferredTokenSigningKeyThumbprint; _x.replyUrls = replyUrls; _x.resourceSpecificApplicationPermissions = resourceSpecificApplicationPermissions; _x.samlSingleSignOnSettings = samlSingleSignOnSettings; _x.servicePrincipalNames = servicePrincipalNames; _x.servicePrincipalType = servicePrincipalType; _x.signInAudience = signInAudience; _x.tags = tags; _x.tokenEncryptionKeyId = tokenEncryptionKeyId; _x.verifiedPublisher = verifiedPublisher; return _x; } @Action(name = "addKey") @JsonIgnore public ActionRequestReturningNonCollectionUnwrapped addKey(KeyCredential keyCredential, PasswordCredential passwordCredential, String proof) { Preconditions.checkNotNull(keyCredential, "keyCredential cannot be null"); Preconditions.checkNotNull(proof, "proof cannot be null"); Map _parameters = ParameterMap .put("keyCredential", "microsoft.graph.keyCredential", keyCredential) .put("passwordCredential", "microsoft.graph.passwordCredential", passwordCredential) .put("proof", "Edm.String", Checks.checkIsAscii(proof)) .build(); return new ActionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("microsoft.graph.addKey"), KeyCredential.class, _parameters); } @Action(name = "addPassword") @JsonIgnore public ActionRequestReturningNonCollectionUnwrapped addPassword(PasswordCredential passwordCredential) { Map _parameters = ParameterMap .put("passwordCredential", "microsoft.graph.passwordCredential", passwordCredential) .build(); return new ActionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("microsoft.graph.addPassword"), PasswordCredential.class, _parameters); } @Action(name = "removeKey") @JsonIgnore public ActionRequestNoReturn removeKey(String keyId, String proof) { Preconditions.checkNotNull(keyId, "keyId cannot be null"); Preconditions.checkNotNull(proof, "proof cannot be null"); Map _parameters = ParameterMap .put("keyId", "Edm.Guid", keyId) .put("proof", "Edm.String", Checks.checkIsAscii(proof)) .build(); return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.removeKey"), _parameters); } @Action(name = "removePassword") @JsonIgnore public ActionRequestNoReturn removePassword(String keyId) { Preconditions.checkNotNull(keyId, "keyId cannot be null"); Map _parameters = ParameterMap .put("keyId", "Edm.Guid", keyId) .build(); return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.removePassword"), _parameters); } @Action(name = "addTokenSigningCertificate") @JsonIgnore public ActionRequestReturningNonCollectionUnwrapped addTokenSigningCertificate(String displayName, OffsetDateTime endDateTime) { Map _parameters = ParameterMap .put("displayName", "Edm.String", Checks.checkIsAscii(displayName)) .put("endDateTime", "Edm.DateTimeOffset", endDateTime) .build(); return new ActionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("microsoft.graph.addTokenSigningCertificate"), SelfSignedCertificate.class, _parameters); } @Override public String toString() { StringBuilder b = new StringBuilder(); b.append("ServicePrincipal["); b.append("id="); b.append(this.id); b.append(", "); b.append("deletedDateTime="); b.append(this.deletedDateTime); b.append(", "); b.append("accountEnabled="); b.append(this.accountEnabled); b.append(", "); b.append("addIns="); b.append(this.addIns); b.append(", "); b.append("alternativeNames="); b.append(this.alternativeNames); b.append(", "); b.append("appDescription="); b.append(this.appDescription); b.append(", "); b.append("appDisplayName="); b.append(this.appDisplayName); b.append(", "); b.append("appId="); b.append(this.appId); b.append(", "); b.append("applicationTemplateId="); b.append(this.applicationTemplateId); b.append(", "); b.append("appOwnerOrganizationId="); b.append(this.appOwnerOrganizationId); b.append(", "); b.append("appRoleAssignmentRequired="); b.append(this.appRoleAssignmentRequired); b.append(", "); b.append("appRoles="); b.append(this.appRoles); b.append(", "); b.append("description="); b.append(this.description); b.append(", "); b.append("disabledByMicrosoftStatus="); b.append(this.disabledByMicrosoftStatus); b.append(", "); b.append("displayName="); b.append(this.displayName); b.append(", "); b.append("homepage="); b.append(this.homepage); b.append(", "); b.append("info="); b.append(this.info); b.append(", "); b.append("keyCredentials="); b.append(this.keyCredentials); b.append(", "); b.append("loginUrl="); b.append(this.loginUrl); b.append(", "); b.append("logoutUrl="); b.append(this.logoutUrl); b.append(", "); b.append("notes="); b.append(this.notes); b.append(", "); b.append("notificationEmailAddresses="); b.append(this.notificationEmailAddresses); b.append(", "); b.append("oauth2PermissionScopes="); b.append(this.oauth2PermissionScopes); b.append(", "); b.append("passwordCredentials="); b.append(this.passwordCredentials); b.append(", "); b.append("preferredSingleSignOnMode="); b.append(this.preferredSingleSignOnMode); b.append(", "); b.append("preferredTokenSigningKeyThumbprint="); b.append(this.preferredTokenSigningKeyThumbprint); b.append(", "); b.append("replyUrls="); b.append(this.replyUrls); b.append(", "); b.append("resourceSpecificApplicationPermissions="); b.append(this.resourceSpecificApplicationPermissions); b.append(", "); b.append("samlSingleSignOnSettings="); b.append(this.samlSingleSignOnSettings); b.append(", "); b.append("servicePrincipalNames="); b.append(this.servicePrincipalNames); b.append(", "); b.append("servicePrincipalType="); b.append(this.servicePrincipalType); b.append(", "); b.append("signInAudience="); b.append(this.signInAudience); b.append(", "); b.append("tags="); b.append(this.tags); b.append(", "); b.append("tokenEncryptionKeyId="); b.append(this.tokenEncryptionKeyId); b.append(", "); b.append("verifiedPublisher="); b.append(this.verifiedPublisher); b.append("]"); b.append(",unmappedFields="); b.append(unmappedFields); b.append(",odataType="); b.append(odataType); return b.toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy