Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newCustomSecurityAttributeDefinition
and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the allowedValues property value.Gets the attributeSet property value.Gets the description property value.The deserialization information for the current modelGets the isCollection property value.Gets the isSearchable property value.getName()
Gets the name property value.Gets the status property value.getType()
Gets the type property value.Gets the usePreDefinedValuesOnly property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAllowedValues
(List<AllowedValue> value) Sets the allowedValues property value.void
setAttributeSet
(String value) Sets the attributeSet property value.void
setDescription
(String value) Sets the description property value.void
setIsCollection
(Boolean value) Sets the isCollection property value.void
setIsSearchable
(Boolean value) Sets the isSearchable property value.void
Sets the name property value.void
Sets the status property value.void
Sets the type property value.void
Sets the usePreDefinedValuesOnly property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
CustomSecurityAttributeDefinition
public CustomSecurityAttributeDefinition()Instantiates a newCustomSecurityAttributeDefinition
and sets the default values.
-
-
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
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
Gets the attributeSet property value. Name of the attribute set. Case insensitive.- Returns:
- a
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
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
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
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
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
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
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 -
setAllowedValues
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
Sets the attributeSet property value. Name of the attribute set. Case insensitive.- Parameters:
value
- Value to set for the attributeSet property.
-
setDescription
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
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
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
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
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
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
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.
-