com.microsoft.graph.beta.generated.models.ConditionalAccessRoot Maven / Gradle / Ivy
package com.microsoft.graph.beta.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 ConditionalAccessRoot extends Entity implements Parsable {
/**
* Instantiates a new {@link ConditionalAccessRoot} and sets the default values.
*/
public ConditionalAccessRoot() {
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 ConditionalAccessRoot}
*/
@jakarta.annotation.Nonnull
public static ConditionalAccessRoot createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ConditionalAccessRoot();
}
/**
* Gets the authenticationContextClassReferences property value. Read-only. Nullable. Returns a collection of the specified authentication context class references.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAuthenticationContextClassReferences() {
return this.backingStore.get("authenticationContextClassReferences");
}
/**
* Gets the authenticationStrength property value. Defines the authentication strength policies, valid authentication method combinations, and authentication method mode details that can be required by a conditional access policy.
* @return a {@link AuthenticationStrengthRoot}
*/
@jakarta.annotation.Nullable
public AuthenticationStrengthRoot getAuthenticationStrength() {
return this.backingStore.get("authenticationStrength");
}
/**
* Gets the authenticationStrengths property value. DEPRECATED. See the authenticationStrength relationship instead.
* @return a {@link AuthenticationStrengthRoot}
*/
@jakarta.annotation.Nullable
public AuthenticationStrengthRoot getAuthenticationStrengths() {
return this.backingStore.get("authenticationStrengths");
}
/**
* 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("authenticationContextClassReferences", (n) -> { this.setAuthenticationContextClassReferences(n.getCollectionOfObjectValues(AuthenticationContextClassReference::createFromDiscriminatorValue)); });
deserializerMap.put("authenticationStrength", (n) -> { this.setAuthenticationStrength(n.getObjectValue(AuthenticationStrengthRoot::createFromDiscriminatorValue)); });
deserializerMap.put("authenticationStrengths", (n) -> { this.setAuthenticationStrengths(n.getObjectValue(AuthenticationStrengthRoot::createFromDiscriminatorValue)); });
deserializerMap.put("namedLocations", (n) -> { this.setNamedLocations(n.getCollectionOfObjectValues(NamedLocation::createFromDiscriminatorValue)); });
deserializerMap.put("policies", (n) -> { this.setPolicies(n.getCollectionOfObjectValues(ConditionalAccessPolicy::createFromDiscriminatorValue)); });
deserializerMap.put("templates", (n) -> { this.setTemplates(n.getCollectionOfObjectValues(ConditionalAccessTemplate::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the namedLocations property value. Read-only. Nullable. Returns a collection of the specified named locations.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getNamedLocations() {
return this.backingStore.get("namedLocations");
}
/**
* Gets the policies property value. Read-only. Nullable. Returns a collection of the specified Conditional Access policies.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getPolicies() {
return this.backingStore.get("policies");
}
/**
* Gets the templates property value. Read-only. Nullable. Returns a collection of the specified Conditional Access templates.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getTemplates() {
return this.backingStore.get("templates");
}
/**
* 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.writeCollectionOfObjectValues("authenticationContextClassReferences", this.getAuthenticationContextClassReferences());
writer.writeObjectValue("authenticationStrength", this.getAuthenticationStrength());
writer.writeObjectValue("authenticationStrengths", this.getAuthenticationStrengths());
writer.writeCollectionOfObjectValues("namedLocations", this.getNamedLocations());
writer.writeCollectionOfObjectValues("policies", this.getPolicies());
writer.writeCollectionOfObjectValues("templates", this.getTemplates());
}
/**
* Sets the authenticationContextClassReferences property value. Read-only. Nullable. Returns a collection of the specified authentication context class references.
* @param value Value to set for the authenticationContextClassReferences property.
*/
public void setAuthenticationContextClassReferences(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("authenticationContextClassReferences", value);
}
/**
* Sets the authenticationStrength property value. Defines the authentication strength policies, valid authentication method combinations, and authentication method mode details that can be required by a conditional access policy.
* @param value Value to set for the authenticationStrength property.
*/
public void setAuthenticationStrength(@jakarta.annotation.Nullable final AuthenticationStrengthRoot value) {
this.backingStore.set("authenticationStrength", value);
}
/**
* Sets the authenticationStrengths property value. DEPRECATED. See the authenticationStrength relationship instead.
* @param value Value to set for the authenticationStrengths property.
*/
public void setAuthenticationStrengths(@jakarta.annotation.Nullable final AuthenticationStrengthRoot value) {
this.backingStore.set("authenticationStrengths", value);
}
/**
* Sets the namedLocations property value. Read-only. Nullable. Returns a collection of the specified named locations.
* @param value Value to set for the namedLocations property.
*/
public void setNamedLocations(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("namedLocations", value);
}
/**
* Sets the policies property value. Read-only. Nullable. Returns a collection of the specified Conditional Access policies.
* @param value Value to set for the policies property.
*/
public void setPolicies(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("policies", value);
}
/**
* Sets the templates property value. Read-only. Nullable. Returns a collection of the specified Conditional Access templates.
* @param value Value to set for the templates property.
*/
public void setTemplates(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("templates", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy