Package com.microsoft.graph.models
Class CustomTrainingSetting
java.lang.Object
com.microsoft.graph.models.TrainingSetting
com.microsoft.graph.models.CustomTrainingSetting
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class CustomTrainingSetting
extends TrainingSetting
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.TrainingSetting
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTrainingSettingcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the assignedTo property value.Gets the description property value.Gets the displayName property value.Gets the durationInMinutes property value.The deserialization information for the current modelgetUrl()Gets the url property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAssignedTo(List<TrainingAssignedTo> value) Sets the assignedTo property value.voidsetDescription(String value) Sets the description property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetDurationInMinutes(Integer value) Sets the durationInMinutes property value.voidSets the url property value.Methods inherited from class com.microsoft.graph.models.TrainingSetting
getAdditionalData, getBackingStore, getOdataType, getSettingType, setAdditionalData, setBackingStore, setOdataType, setSettingType
-
Constructor Details
-
CustomTrainingSetting
public CustomTrainingSetting()Instantiates a newCustomTrainingSettingand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static CustomTrainingSetting 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
CustomTrainingSetting
-
getAssignedTo
Gets the assignedTo property value. A user collection that specifies to whom the training should be assigned. Possible values are: none, allUsers, clickedPayload, compromised, reportedPhish, readButNotClicked, didNothing, unknownFutureValue.- Returns:
- a
List<TrainingAssignedTo>
-
getDescription
Gets the description property value. The description of the custom training setting.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. The display name of the custom training setting.- Returns:
- a
String
-
getDurationInMinutes
Gets the durationInMinutes property value. Training duration.- Returns:
- a
Integer
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classTrainingSetting- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getUrl
Gets the url property value. The training URL.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classTrainingSetting- Parameters:
writer- Serialization writer to use to serialize this model
-
setAssignedTo
Sets the assignedTo property value. A user collection that specifies to whom the training should be assigned. Possible values are: none, allUsers, clickedPayload, compromised, reportedPhish, readButNotClicked, didNothing, unknownFutureValue.- Parameters:
value- Value to set for the assignedTo property.
-
setDescription
Sets the description property value. The description of the custom training setting.- Parameters:
value- Value to set for the description property.
-
setDisplayName
Sets the displayName property value. The display name of the custom training setting.- Parameters:
value- Value to set for the displayName property.
-
setDurationInMinutes
Sets the durationInMinutes property value. Training duration.- Parameters:
value- Value to set for the durationInMinutes property.
-
setUrl
Sets the url property value. The training URL.- Parameters:
value- Value to set for the url property.
-