com.microsoft.graph.generated.models.UnifiedRbacResourceAction 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 UnifiedRbacResourceAction extends Entity implements Parsable {
/**
* Instantiates a new {@link UnifiedRbacResourceAction} and sets the default values.
*/
public UnifiedRbacResourceAction() {
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 UnifiedRbacResourceAction}
*/
@jakarta.annotation.Nonnull
public static UnifiedRbacResourceAction createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new UnifiedRbacResourceAction();
}
/**
* Gets the actionVerb property value. The actionVerb property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getActionVerb() {
return this.backingStore.get("actionVerb");
}
/**
* Gets the authenticationContextId property value. The authenticationContextId property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAuthenticationContextId() {
return this.backingStore.get("authenticationContextId");
}
/**
* Gets the description property value. The description property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.backingStore.get("description");
}
/**
* 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("actionVerb", (n) -> { this.setActionVerb(n.getStringValue()); });
deserializerMap.put("authenticationContextId", (n) -> { this.setAuthenticationContextId(n.getStringValue()); });
deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("isAuthenticationContextSettable", (n) -> { this.setIsAuthenticationContextSettable(n.getBooleanValue()); });
deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); });
deserializerMap.put("resourceScopeId", (n) -> { this.setResourceScopeId(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the isAuthenticationContextSettable property value. The isAuthenticationContextSettable property
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsAuthenticationContextSettable() {
return this.backingStore.get("isAuthenticationContextSettable");
}
/**
* Gets the name property value. The name property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getName() {
return this.backingStore.get("name");
}
/**
* Gets the resourceScopeId property value. The resourceScopeId property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getResourceScopeId() {
return this.backingStore.get("resourceScopeId");
}
/**
* 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("actionVerb", this.getActionVerb());
writer.writeStringValue("authenticationContextId", this.getAuthenticationContextId());
writer.writeStringValue("description", this.getDescription());
writer.writeBooleanValue("isAuthenticationContextSettable", this.getIsAuthenticationContextSettable());
writer.writeStringValue("name", this.getName());
writer.writeStringValue("resourceScopeId", this.getResourceScopeId());
}
/**
* Sets the actionVerb property value. The actionVerb property
* @param value Value to set for the actionVerb property.
*/
public void setActionVerb(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("actionVerb", value);
}
/**
* Sets the authenticationContextId property value. The authenticationContextId property
* @param value Value to set for the authenticationContextId property.
*/
public void setAuthenticationContextId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("authenticationContextId", value);
}
/**
* Sets the description property value. The description property
* @param value Value to set for the description property.
*/
public void setDescription(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("description", value);
}
/**
* Sets the isAuthenticationContextSettable property value. The isAuthenticationContextSettable property
* @param value Value to set for the isAuthenticationContextSettable property.
*/
public void setIsAuthenticationContextSettable(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isAuthenticationContextSettable", value);
}
/**
* Sets the name property value. The name property
* @param value Value to set for the name property.
*/
public void setName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("name", value);
}
/**
* Sets the resourceScopeId property value. The resourceScopeId property
* @param value Value to set for the resourceScopeId property.
*/
public void setResourceScopeId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("resourceScopeId", value);
}
}