com.microsoft.graph.beta.generated.models.AwsSecretInformationAccessFinding 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.EnumSet;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AwsSecretInformationAccessFinding extends Finding implements Parsable {
/**
* Instantiates a new {@link AwsSecretInformationAccessFinding} and sets the default values.
*/
public AwsSecretInformationAccessFinding() {
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 AwsSecretInformationAccessFinding}
*/
@jakarta.annotation.Nonnull
public static AwsSecretInformationAccessFinding 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.secretInformationAccessAwsResourceFinding": return new SecretInformationAccessAwsResourceFinding();
case "#microsoft.graph.secretInformationAccessAwsRoleFinding": return new SecretInformationAccessAwsRoleFinding();
case "#microsoft.graph.secretInformationAccessAwsServerlessFunctionFinding": return new SecretInformationAccessAwsServerlessFunctionFinding();
case "#microsoft.graph.secretInformationAccessAwsUserFinding": return new SecretInformationAccessAwsUserFinding();
}
}
return new AwsSecretInformationAccessFinding();
}
/**
* 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("identity", (n) -> { this.setIdentity(n.getObjectValue(AuthorizationSystemIdentity::createFromDiscriminatorValue)); });
deserializerMap.put("identityDetails", (n) -> { this.setIdentityDetails(n.getObjectValue(IdentityDetails::createFromDiscriminatorValue)); });
deserializerMap.put("permissionsCreepIndex", (n) -> { this.setPermissionsCreepIndex(n.getObjectValue(PermissionsCreepIndex::createFromDiscriminatorValue)); });
deserializerMap.put("secretInformationWebServices", (n) -> { this.setSecretInformationWebServices(n.getEnumSetValue(AwsSecretInformationWebServices::forValue)); });
return deserializerMap;
}
/**
* Gets the identity property value. The identity property
* @return a {@link AuthorizationSystemIdentity}
*/
@jakarta.annotation.Nullable
public AuthorizationSystemIdentity getIdentity() {
return this.backingStore.get("identity");
}
/**
* Gets the identityDetails property value. The identityDetails property
* @return a {@link IdentityDetails}
*/
@jakarta.annotation.Nullable
public IdentityDetails getIdentityDetails() {
return this.backingStore.get("identityDetails");
}
/**
* Gets the permissionsCreepIndex property value. The permissionsCreepIndex property
* @return a {@link PermissionsCreepIndex}
*/
@jakarta.annotation.Nullable
public PermissionsCreepIndex getPermissionsCreepIndex() {
return this.backingStore.get("permissionsCreepIndex");
}
/**
* Gets the secretInformationWebServices property value. The secretInformationWebServices property
* @return a {@link EnumSet}
*/
@jakarta.annotation.Nullable
public EnumSet getSecretInformationWebServices() {
return this.backingStore.get("secretInformationWebServices");
}
/**
* 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("identity", this.getIdentity());
writer.writeObjectValue("identityDetails", this.getIdentityDetails());
writer.writeObjectValue("permissionsCreepIndex", this.getPermissionsCreepIndex());
writer.writeEnumSetValue("secretInformationWebServices", this.getSecretInformationWebServices());
}
/**
* Sets the identity property value. The identity property
* @param value Value to set for the identity property.
*/
public void setIdentity(@jakarta.annotation.Nullable final AuthorizationSystemIdentity value) {
this.backingStore.set("identity", value);
}
/**
* Sets the identityDetails property value. The identityDetails property
* @param value Value to set for the identityDetails property.
*/
public void setIdentityDetails(@jakarta.annotation.Nullable final IdentityDetails value) {
this.backingStore.set("identityDetails", value);
}
/**
* Sets the permissionsCreepIndex property value. The permissionsCreepIndex property
* @param value Value to set for the permissionsCreepIndex property.
*/
public void setPermissionsCreepIndex(@jakarta.annotation.Nullable final PermissionsCreepIndex value) {
this.backingStore.set("permissionsCreepIndex", value);
}
/**
* Sets the secretInformationWebServices property value. The secretInformationWebServices property
* @param value Value to set for the secretInformationWebServices property.
*/
public void setSecretInformationWebServices(@jakarta.annotation.Nullable final EnumSet value) {
this.backingStore.set("secretInformationWebServices", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy