com.microsoft.graph.generated.models.CrossTenantAccessPolicyConfigurationDefault Maven / Gradle / Ivy
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class CrossTenantAccessPolicyConfigurationDefault extends Entity implements Parsable {
/**
* Instantiates a new {@link CrossTenantAccessPolicyConfigurationDefault} and sets the default values.
*/
public CrossTenantAccessPolicyConfigurationDefault() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link CrossTenantAccessPolicyConfigurationDefault}
*/
@jakarta.annotation.Nonnull
public static CrossTenantAccessPolicyConfigurationDefault createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new CrossTenantAccessPolicyConfigurationDefault();
}
/**
* Gets the automaticUserConsentSettings property value. Determines the default configuration for automatic user consent settings. The inboundAllowed and outboundAllowed properties are always false and can't be updated in the default configuration. Read-only.
* @return a {@link InboundOutboundPolicyConfiguration}
*/
@jakarta.annotation.Nullable
public InboundOutboundPolicyConfiguration getAutomaticUserConsentSettings() {
return this.backingStore.get("automaticUserConsentSettings");
}
/**
* Gets the b2bCollaborationInbound property value. Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration.
* @return a {@link CrossTenantAccessPolicyB2BSetting}
*/
@jakarta.annotation.Nullable
public CrossTenantAccessPolicyB2BSetting getB2bCollaborationInbound() {
return this.backingStore.get("b2bCollaborationInbound");
}
/**
* Gets the b2bCollaborationOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration.
* @return a {@link CrossTenantAccessPolicyB2BSetting}
*/
@jakarta.annotation.Nullable
public CrossTenantAccessPolicyB2BSetting getB2bCollaborationOutbound() {
return this.backingStore.get("b2bCollaborationOutbound");
}
/**
* Gets the b2bDirectConnectInbound property value. Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B direct connect.
* @return a {@link CrossTenantAccessPolicyB2BSetting}
*/
@jakarta.annotation.Nullable
public CrossTenantAccessPolicyB2BSetting getB2bDirectConnectInbound() {
return this.backingStore.get("b2bDirectConnectInbound");
}
/**
* Gets the b2bDirectConnectOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect.
* @return a {@link CrossTenantAccessPolicyB2BSetting}
*/
@jakarta.annotation.Nullable
public CrossTenantAccessPolicyB2BSetting getB2bDirectConnectOutbound() {
return this.backingStore.get("b2bDirectConnectOutbound");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("automaticUserConsentSettings", (n) -> { this.setAutomaticUserConsentSettings(n.getObjectValue(InboundOutboundPolicyConfiguration::createFromDiscriminatorValue)); });
deserializerMap.put("b2bCollaborationInbound", (n) -> { this.setB2bCollaborationInbound(n.getObjectValue(CrossTenantAccessPolicyB2BSetting::createFromDiscriminatorValue)); });
deserializerMap.put("b2bCollaborationOutbound", (n) -> { this.setB2bCollaborationOutbound(n.getObjectValue(CrossTenantAccessPolicyB2BSetting::createFromDiscriminatorValue)); });
deserializerMap.put("b2bDirectConnectInbound", (n) -> { this.setB2bDirectConnectInbound(n.getObjectValue(CrossTenantAccessPolicyB2BSetting::createFromDiscriminatorValue)); });
deserializerMap.put("b2bDirectConnectOutbound", (n) -> { this.setB2bDirectConnectOutbound(n.getObjectValue(CrossTenantAccessPolicyB2BSetting::createFromDiscriminatorValue)); });
deserializerMap.put("inboundTrust", (n) -> { this.setInboundTrust(n.getObjectValue(CrossTenantAccessPolicyInboundTrust::createFromDiscriminatorValue)); });
deserializerMap.put("invitationRedemptionIdentityProviderConfiguration", (n) -> { this.setInvitationRedemptionIdentityProviderConfiguration(n.getObjectValue(DefaultInvitationRedemptionIdentityProviderConfiguration::createFromDiscriminatorValue)); });
deserializerMap.put("isServiceDefault", (n) -> { this.setIsServiceDefault(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the inboundTrust property value. Determines the default configuration for trusting other Conditional Access claims from external Microsoft Entra organizations.
* @return a {@link CrossTenantAccessPolicyInboundTrust}
*/
@jakarta.annotation.Nullable
public CrossTenantAccessPolicyInboundTrust getInboundTrust() {
return this.backingStore.get("inboundTrust");
}
/**
* Gets the invitationRedemptionIdentityProviderConfiguration property value. Defines the priority order based on which an identity provider is selected during invitation redemption for a guest user.
* @return a {@link DefaultInvitationRedemptionIdentityProviderConfiguration}
*/
@jakarta.annotation.Nullable
public DefaultInvitationRedemptionIdentityProviderConfiguration getInvitationRedemptionIdentityProviderConfiguration() {
return this.backingStore.get("invitationRedemptionIdentityProviderConfiguration");
}
/**
* Gets the isServiceDefault property value. If true, the default configuration is set to the system default configuration. If false, the default settings are customized.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsServiceDefault() {
return this.backingStore.get("isServiceDefault");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeObjectValue("automaticUserConsentSettings", this.getAutomaticUserConsentSettings());
writer.writeObjectValue("b2bCollaborationInbound", this.getB2bCollaborationInbound());
writer.writeObjectValue("b2bCollaborationOutbound", this.getB2bCollaborationOutbound());
writer.writeObjectValue("b2bDirectConnectInbound", this.getB2bDirectConnectInbound());
writer.writeObjectValue("b2bDirectConnectOutbound", this.getB2bDirectConnectOutbound());
writer.writeObjectValue("inboundTrust", this.getInboundTrust());
writer.writeObjectValue("invitationRedemptionIdentityProviderConfiguration", this.getInvitationRedemptionIdentityProviderConfiguration());
writer.writeBooleanValue("isServiceDefault", this.getIsServiceDefault());
}
/**
* Sets the automaticUserConsentSettings property value. Determines the default configuration for automatic user consent settings. The inboundAllowed and outboundAllowed properties are always false and can't be updated in the default configuration. Read-only.
* @param value Value to set for the automaticUserConsentSettings property.
*/
public void setAutomaticUserConsentSettings(@jakarta.annotation.Nullable final InboundOutboundPolicyConfiguration value) {
this.backingStore.set("automaticUserConsentSettings", value);
}
/**
* Sets the b2bCollaborationInbound property value. Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration.
* @param value Value to set for the b2bCollaborationInbound property.
*/
public void setB2bCollaborationInbound(@jakarta.annotation.Nullable final CrossTenantAccessPolicyB2BSetting value) {
this.backingStore.set("b2bCollaborationInbound", value);
}
/**
* Sets the b2bCollaborationOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration.
* @param value Value to set for the b2bCollaborationOutbound property.
*/
public void setB2bCollaborationOutbound(@jakarta.annotation.Nullable final CrossTenantAccessPolicyB2BSetting value) {
this.backingStore.set("b2bCollaborationOutbound", value);
}
/**
* Sets the b2bDirectConnectInbound property value. Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B direct connect.
* @param value Value to set for the b2bDirectConnectInbound property.
*/
public void setB2bDirectConnectInbound(@jakarta.annotation.Nullable final CrossTenantAccessPolicyB2BSetting value) {
this.backingStore.set("b2bDirectConnectInbound", value);
}
/**
* Sets the b2bDirectConnectOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect.
* @param value Value to set for the b2bDirectConnectOutbound property.
*/
public void setB2bDirectConnectOutbound(@jakarta.annotation.Nullable final CrossTenantAccessPolicyB2BSetting value) {
this.backingStore.set("b2bDirectConnectOutbound", value);
}
/**
* Sets the inboundTrust property value. Determines the default configuration for trusting other Conditional Access claims from external Microsoft Entra organizations.
* @param value Value to set for the inboundTrust property.
*/
public void setInboundTrust(@jakarta.annotation.Nullable final CrossTenantAccessPolicyInboundTrust value) {
this.backingStore.set("inboundTrust", value);
}
/**
* Sets the invitationRedemptionIdentityProviderConfiguration property value. Defines the priority order based on which an identity provider is selected during invitation redemption for a guest user.
* @param value Value to set for the invitationRedemptionIdentityProviderConfiguration property.
*/
public void setInvitationRedemptionIdentityProviderConfiguration(@jakarta.annotation.Nullable final DefaultInvitationRedemptionIdentityProviderConfiguration value) {
this.backingStore.set("invitationRedemptionIdentityProviderConfiguration", value);
}
/**
* Sets the isServiceDefault property value. If true, the default configuration is set to the system default configuration. If false, the default settings are customized.
* @param value Value to set for the isServiceDefault property.
*/
public void setIsServiceDefault(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isServiceDefault", value);
}
}