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

com.microsoft.graph.beta.generated.models.AuthorizationSystem Maven / Gradle / Ivy

There is a newer version: 6.28.0
Show newest version
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 AuthorizationSystem extends Entity implements Parsable {
    /**
     * Instantiates a new {@link AuthorizationSystem} and sets the default values.
     */
    public AuthorizationSystem() {
        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 AuthorizationSystem}
     */
    @jakarta.annotation.Nonnull
    public static AuthorizationSystem createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type");
        if (mappingValueNode != null) {
            final String mappingValue = mappingValueNode.getStringValue();
            switch (mappingValue) {
                case "#microsoft.graph.awsAuthorizationSystem": return new AwsAuthorizationSystem();
                case "#microsoft.graph.azureAuthorizationSystem": return new AzureAuthorizationSystem();
                case "#microsoft.graph.gcpAuthorizationSystem": return new GcpAuthorizationSystem();
            }
        }
        return new AuthorizationSystem();
    }
    /**
     * Gets the authorizationSystemId property value. ID of the authorization system retrieved from the customer cloud environment. Supports $filter(eq, contains) and $orderBy.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getAuthorizationSystemId() {
        return this.backingStore.get("authorizationSystemId");
    }
    /**
     * Gets the authorizationSystemName property value. Name of the authorization system detected after onboarding. Supports $filter(eq,contains) and $orderBy.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getAuthorizationSystemName() {
        return this.backingStore.get("authorizationSystemName");
    }
    /**
     * Gets the authorizationSystemType property value. The type of authorization system. Can be gcp, azure, or aws. Supports $filter(eq).
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getAuthorizationSystemType() {
        return this.backingStore.get("authorizationSystemType");
    }
    /**
     * Gets the dataCollectionInfo property value. Defines how and whether Permissions Management collects data from the onboarded authorization system. Supports $filter (eq) as follows:  $filter=dataCollectionInfo/entitlements/permissionsModificationCapability and $filter=dataCollectionInfo/entitlements/status.
     * @return a {@link DataCollectionInfo}
     */
    @jakarta.annotation.Nullable
    public DataCollectionInfo getDataCollectionInfo() {
        return this.backingStore.get("dataCollectionInfo");
    }
    /**
     * 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("authorizationSystemId", (n) -> { this.setAuthorizationSystemId(n.getStringValue()); });
        deserializerMap.put("authorizationSystemName", (n) -> { this.setAuthorizationSystemName(n.getStringValue()); });
        deserializerMap.put("authorizationSystemType", (n) -> { this.setAuthorizationSystemType(n.getStringValue()); });
        deserializerMap.put("dataCollectionInfo", (n) -> { this.setDataCollectionInfo(n.getObjectValue(DataCollectionInfo::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * 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.writeStringValue("authorizationSystemId", this.getAuthorizationSystemId());
        writer.writeStringValue("authorizationSystemName", this.getAuthorizationSystemName());
        writer.writeStringValue("authorizationSystemType", this.getAuthorizationSystemType());
        writer.writeObjectValue("dataCollectionInfo", this.getDataCollectionInfo());
    }
    /**
     * Sets the authorizationSystemId property value. ID of the authorization system retrieved from the customer cloud environment. Supports $filter(eq, contains) and $orderBy.
     * @param value Value to set for the authorizationSystemId property.
     */
    public void setAuthorizationSystemId(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("authorizationSystemId", value);
    }
    /**
     * Sets the authorizationSystemName property value. Name of the authorization system detected after onboarding. Supports $filter(eq,contains) and $orderBy.
     * @param value Value to set for the authorizationSystemName property.
     */
    public void setAuthorizationSystemName(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("authorizationSystemName", value);
    }
    /**
     * Sets the authorizationSystemType property value. The type of authorization system. Can be gcp, azure, or aws. Supports $filter(eq).
     * @param value Value to set for the authorizationSystemType property.
     */
    public void setAuthorizationSystemType(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("authorizationSystemType", value);
    }
    /**
     * Sets the dataCollectionInfo property value. Defines how and whether Permissions Management collects data from the onboarded authorization system. Supports $filter (eq) as follows:  $filter=dataCollectionInfo/entitlements/permissionsModificationCapability and $filter=dataCollectionInfo/entitlements/status.
     * @param value Value to set for the dataCollectionInfo property.
     */
    public void setDataCollectionInfo(@jakarta.annotation.Nullable final DataCollectionInfo value) {
        this.backingStore.set("dataCollectionInfo", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy