Class CustomSecurityAttributeDefinition

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.CustomSecurityAttributeDefinition
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class CustomSecurityAttributeDefinition extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static CustomSecurityAttributeDefinition createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a CustomSecurityAttributeDefinition
    • getAllowedValues

      @Nullable public List<AllowedValue> getAllowedValues()
      Gets the allowedValues property value. Values that are predefined for this custom security attribute. This navigation property is not returned by default and must be specified in an $expand query. For example, /directory/customSecurityAttributeDefinitions?$expand=allowedValues.
      Returns:
      a List<AllowedValue>
    • getAttributeSet

      @Nullable public String getAttributeSet()
      Gets the attributeSet property value. Name of the attribute set. Case insensitive.
      Returns:
      a String
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. Description of the custom security attribute. Can be up to 128 characters long and include Unicode characters. Can be changed later.
      Returns:
      a String
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsCollection

      @Nullable public Boolean getIsCollection()
      Gets the isCollection property value. Indicates whether multiple values can be assigned to the custom security attribute. Cannot be changed later. If type is set to Boolean, isCollection cannot be set to true.
      Returns:
      a Boolean
    • getIsSearchable

      @Nullable public Boolean getIsSearchable()
      Gets the isSearchable property value. Indicates whether custom security attribute values are indexed for searching on objects that are assigned attribute values. Cannot be changed later.
      Returns:
      a Boolean
    • getName

      @Nullable public String getName()
      Gets the name property value. Name of the custom security attribute. Must be unique within an attribute set. Can be up to 32 characters long and include Unicode characters. Cannot contain spaces or special characters. Cannot be changed later. Case insensitive.
      Returns:
      a String
    • getStatus

      @Nullable public String getStatus()
      Gets the status property value. Specifies whether the custom security attribute is active or deactivated. Acceptable values are: Available and Deprecated. Can be changed later.
      Returns:
      a String
    • getType

      @Nullable public String getType()
      Gets the type property value. Data type for the custom security attribute values. Supported types are: Boolean, Integer, and String. Cannot be changed later.
      Returns:
      a String
    • getUsePreDefinedValuesOnly

      @Nullable public Boolean getUsePreDefinedValuesOnly()
      Gets the usePreDefinedValuesOnly property value. Indicates whether only predefined values can be assigned to the custom security attribute. If set to false, free-form values are allowed. Can later be changed from true to false, but cannot be changed from false to true. If type is set to Boolean, usePreDefinedValuesOnly cannot be set to true.
      Returns:
      a Boolean
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAllowedValues

      public void setAllowedValues(@Nullable List<AllowedValue> value)
      Sets the allowedValues property value. Values that are predefined for this custom security attribute. This navigation property is not returned by default and must be specified in an $expand query. For example, /directory/customSecurityAttributeDefinitions?$expand=allowedValues.
      Parameters:
      value - Value to set for the allowedValues property.
    • setAttributeSet

      public void setAttributeSet(@Nullable String value)
      Sets the attributeSet property value. Name of the attribute set. Case insensitive.
      Parameters:
      value - Value to set for the attributeSet property.
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. Description of the custom security attribute. Can be up to 128 characters long and include Unicode characters. Can be changed later.
      Parameters:
      value - Value to set for the description property.
    • setIsCollection

      public void setIsCollection(@Nullable Boolean value)
      Sets the isCollection property value. Indicates whether multiple values can be assigned to the custom security attribute. Cannot be changed later. If type is set to Boolean, isCollection cannot be set to true.
      Parameters:
      value - Value to set for the isCollection property.
    • setIsSearchable

      public void setIsSearchable(@Nullable Boolean value)
      Sets the isSearchable property value. Indicates whether custom security attribute values are indexed for searching on objects that are assigned attribute values. Cannot be changed later.
      Parameters:
      value - Value to set for the isSearchable property.
    • setName

      public void setName(@Nullable String value)
      Sets the name property value. Name of the custom security attribute. Must be unique within an attribute set. Can be up to 32 characters long and include Unicode characters. Cannot contain spaces or special characters. Cannot be changed later. Case insensitive.
      Parameters:
      value - Value to set for the name property.
    • setStatus

      public void setStatus(@Nullable String value)
      Sets the status property value. Specifies whether the custom security attribute is active or deactivated. Acceptable values are: Available and Deprecated. Can be changed later.
      Parameters:
      value - Value to set for the status property.
    • setType

      public void setType(@Nullable String value)
      Sets the type property value. Data type for the custom security attribute values. Supported types are: Boolean, Integer, and String. Cannot be changed later.
      Parameters:
      value - Value to set for the type property.
    • setUsePreDefinedValuesOnly

      public void setUsePreDefinedValuesOnly(@Nullable Boolean value)
      Sets the usePreDefinedValuesOnly property value. Indicates whether only predefined values can be assigned to the custom security attribute. If set to false, free-form values are allowed. Can later be changed from true to false, but cannot be changed from false to true. If type is set to Boolean, usePreDefinedValuesOnly cannot be set to true.
      Parameters:
      value - Value to set for the usePreDefinedValuesOnly property.