Package com.microsoft.graph.models
Class Payload
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Payload
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Payload
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Payload
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valuegetBrand()
Gets the brand property value.Gets the complexity property value.Gets the createdBy property value.Gets the createdDateTime property value.Gets the description property value.Gets the detail property value.Gets the displayName property value.The deserialization information for the current modelGets the industry property value.Gets the isAutomated property value.Gets the isControversial property value.Gets the isCurrentEvent property value.Gets the language property value.Gets the lastModifiedBy property value.Gets the lastModifiedDateTime property value.Gets the payloadTags property value.Gets the platform property value.Gets the predictedCompromiseRate property value.Gets the simulationAttackType property value.Gets the source property value.Gets the status property value.Gets the technique property value.getTheme()
Gets the theme property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setBrand
(PayloadBrand value) Sets the brand property value.void
setComplexity
(PayloadComplexity value) Sets the complexity property value.void
setCreatedBy
(EmailIdentity value) Sets the createdBy property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDescription
(String value) Sets the description property value.void
setDetail
(PayloadDetail value) Sets the detail property value.void
setDisplayName
(String value) Sets the displayName property value.void
setIndustry
(PayloadIndustry value) Sets the industry property value.void
setIsAutomated
(Boolean value) Sets the isAutomated property value.void
setIsControversial
(Boolean value) Sets the isControversial property value.void
setIsCurrentEvent
(Boolean value) Sets the isCurrentEvent property value.void
setLanguage
(String value) Sets the language property value.void
setLastModifiedBy
(EmailIdentity value) Sets the lastModifiedBy property value.void
Sets the lastModifiedDateTime property value.void
setPayloadTags
(List<String> value) Sets the payloadTags property value.void
Sets the platform property value.void
setPredictedCompromiseRate
(Double value) Sets the predictedCompromiseRate property value.void
Sets the simulationAttackType property value.void
setSource
(SimulationContentSource value) Sets the source property value.void
setStatus
(SimulationContentStatus value) Sets the status property value.void
Sets the technique property value.void
setTheme
(PayloadTheme value) Sets the theme property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Payload
public Payload()Instantiates a newPayload
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Payload 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
Payload
-
getBrand
Gets the brand property value. The branch of a payload. Possible values are: unknown, other, americanExpress, capitalOne, dhl, docuSign, dropbox, facebook, firstAmerican, microsoft, netflix, scotiabank, sendGrid, stewartTitle, tesco, wellsFargo, syrinxCloud, adobe, teams, zoom, unknownFutureValue.- Returns:
- a
PayloadBrand
-
getComplexity
Gets the complexity property value. The complexity of a payload. Possible values are: unknown, low, medium, high, unknownFutureValue.- Returns:
- a
PayloadComplexity
-
getCreatedBy
Gets the createdBy property value. Identity of the user who created the attack simulation and training campaign payload.- Returns:
- a
EmailIdentity
-
getCreatedDateTime
Gets the createdDateTime property value. Date and time when the attack simulation and training campaign payload. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Returns:
- a
OffsetDateTime
-
getDescription
Gets the description property value. Description of the attack simulation and training campaign payload.- Returns:
- a
String
-
getDetail
Gets the detail property value. Additional details about the payload.- Returns:
- a
PayloadDetail
-
getDisplayName
Gets the displayName property value. Display name of the attack simulation and training campaign payload. Supports $filter and $orderby.- 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>>
-
getIndustry
Gets the industry property value. Industry of a payload. Possible values are: unknown, other, banking, businessServices, consumerServices, education, energy, construction, consulting, financialServices, government, hospitality, insurance, legal, courierServices, IT, healthcare, manufacturing, retail, telecom, realEstate, unknownFutureValue.- Returns:
- a
PayloadIndustry
-
getIsAutomated
Gets the isAutomated property value. Indicates whether the attack simulation and training campaign payload was created from an automation flow. Supports $filter and $orderby.- Returns:
- a
Boolean
-
getIsControversial
Gets the isControversial property value. Indicates whether the payload is controversial.- Returns:
- a
Boolean
-
getIsCurrentEvent
Gets the isCurrentEvent property value. Indicates whether the payload is from any recent event.- Returns:
- a
Boolean
-
getLanguage
Gets the language property value. Payload language.- Returns:
- a
String
-
getLastModifiedBy
Gets the lastModifiedBy property value. Identity of the user who most recently modified the attack simulation and training campaign payload.- Returns:
- a
EmailIdentity
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. Date and time when the attack simulation and training campaign payload was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Returns:
- a
OffsetDateTime
-
getPayloadTags
Gets the payloadTags property value. Free text tags for a payload. -
getPlatform
Gets the platform property value. The payload delivery platform for a simulation. Possible values are: unknown, sms, email, teams, unknownFutureValue.- Returns:
- a
PayloadDeliveryPlatform
-
getPredictedCompromiseRate
Gets the predictedCompromiseRate property value. Predicted probability for a payload to phish a targeted user.- Returns:
- a
Double
-
getSimulationAttackType
Gets the simulationAttackType property value. Attack type of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, social, cloud, endpoint, unknownFutureValue.- Returns:
- a
SimulationAttackType
-
getSource
Gets the source property value. The source property- Returns:
- a
SimulationContentSource
-
getStatus
Gets the status property value. Simulation content status. Supports $filter and $orderby. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue.- Returns:
- a
SimulationContentStatus
-
getTechnique
Gets the technique property value. The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue, oAuthConsentGrant. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: oAuthConsentGrant. For more information on the types of social engineering attack techniques, see simulations.- Returns:
- a
SimulationAttackTechnique
-
getTheme
Gets the theme property value. The theme of a payload. Possible values are: unknown, other, accountActivation, accountVerification, billing, cleanUpMail, controversial, documentReceived, expense, fax, financeReport, incomingMessages, invoice, itemReceived, loginAlert, mailReceived, password, payment, payroll, personalizedOffer, quarantine, remoteWork, reviewMessage, securityUpdate, serviceSuspended, signatureRequired, upgradeMailboxStorage, verifyMailbox, voicemail, advertisement, employeeEngagement, unknownFutureValue.- Returns:
- a
PayloadTheme
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setBrand
Sets the brand property value. The branch of a payload. Possible values are: unknown, other, americanExpress, capitalOne, dhl, docuSign, dropbox, facebook, firstAmerican, microsoft, netflix, scotiabank, sendGrid, stewartTitle, tesco, wellsFargo, syrinxCloud, adobe, teams, zoom, unknownFutureValue.- Parameters:
value
- Value to set for the brand property.
-
setComplexity
Sets the complexity property value. The complexity of a payload. Possible values are: unknown, low, medium, high, unknownFutureValue.- Parameters:
value
- Value to set for the complexity property.
-
setCreatedBy
Sets the createdBy property value. Identity of the user who created the attack simulation and training campaign payload.- Parameters:
value
- Value to set for the createdBy property.
-
setCreatedDateTime
Sets the createdDateTime property value. Date and time when the attack simulation and training campaign payload. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDescription
Sets the description property value. Description of the attack simulation and training campaign payload.- Parameters:
value
- Value to set for the description property.
-
setDetail
Sets the detail property value. Additional details about the payload.- Parameters:
value
- Value to set for the detail property.
-
setDisplayName
Sets the displayName property value. Display name of the attack simulation and training campaign payload. Supports $filter and $orderby.- Parameters:
value
- Value to set for the displayName property.
-
setIndustry
Sets the industry property value. Industry of a payload. Possible values are: unknown, other, banking, businessServices, consumerServices, education, energy, construction, consulting, financialServices, government, hospitality, insurance, legal, courierServices, IT, healthcare, manufacturing, retail, telecom, realEstate, unknownFutureValue.- Parameters:
value
- Value to set for the industry property.
-
setIsAutomated
Sets the isAutomated property value. Indicates whether the attack simulation and training campaign payload was created from an automation flow. Supports $filter and $orderby.- Parameters:
value
- Value to set for the isAutomated property.
-
setIsControversial
Sets the isControversial property value. Indicates whether the payload is controversial.- Parameters:
value
- Value to set for the isControversial property.
-
setIsCurrentEvent
Sets the isCurrentEvent property value. Indicates whether the payload is from any recent event.- Parameters:
value
- Value to set for the isCurrentEvent property.
-
setLanguage
Sets the language property value. Payload language.- Parameters:
value
- Value to set for the language property.
-
setLastModifiedBy
Sets the lastModifiedBy property value. Identity of the user who most recently modified the attack simulation and training campaign payload.- Parameters:
value
- Value to set for the lastModifiedBy property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. Date and time when the attack simulation and training campaign payload was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setPayloadTags
Sets the payloadTags property value. Free text tags for a payload.- Parameters:
value
- Value to set for the payloadTags property.
-
setPlatform
Sets the platform property value. The payload delivery platform for a simulation. Possible values are: unknown, sms, email, teams, unknownFutureValue.- Parameters:
value
- Value to set for the platform property.
-
setPredictedCompromiseRate
Sets the predictedCompromiseRate property value. Predicted probability for a payload to phish a targeted user.- Parameters:
value
- Value to set for the predictedCompromiseRate property.
-
setSimulationAttackType
Sets the simulationAttackType property value. Attack type of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, social, cloud, endpoint, unknownFutureValue.- Parameters:
value
- Value to set for the simulationAttackType property.
-
setSource
Sets the source property value. The source property- Parameters:
value
- Value to set for the source property.
-
setStatus
Sets the status property value. Simulation content status. Supports $filter and $orderby. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue.- Parameters:
value
- Value to set for the status property.
-
setTechnique
Sets the technique property value. The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue, oAuthConsentGrant. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: oAuthConsentGrant. For more information on the types of social engineering attack techniques, see simulations.- Parameters:
value
- Value to set for the technique property.
-
setTheme
Sets the theme property value. The theme of a payload. Possible values are: unknown, other, accountActivation, accountVerification, billing, cleanUpMail, controversial, documentReceived, expense, fax, financeReport, incomingMessages, invoice, itemReceived, loginAlert, mailReceived, password, payment, payroll, personalizedOffer, quarantine, remoteWork, reviewMessage, securityUpdate, serviceSuspended, signatureRequired, upgradeMailboxStorage, verifyMailbox, voicemail, advertisement, employeeEngagement, unknownFutureValue.- Parameters:
value
- Value to set for the theme property.
-