diff --git a/msgraph-mail/dotnet/ApiClient.cs b/msgraph-mail/dotnet/ApiClient.cs index cd9875550..291fb2d69 100644 --- a/msgraph-mail/dotnet/ApiClient.cs +++ b/msgraph-mail/dotnet/ApiClient.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users; namespace Graphdotnetv4 { /// The main entry point of the SDK, exposes the configuration and the fluent API. public class ApiClient { @@ -14,11 +14,17 @@ public class ApiClient { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "https://graph.microsoft.com/v1.0"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } public UsersRequestBuilder Users { get => new UsersRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } + /// + /// Instantiates a new ApiClient and sets the default values. + /// + public ApiClient() { + PathSegment = "https://graph.microsoft.com/v1.0"; + } } } diff --git a/msgraph-mail/dotnet/Users/Attachment.cs b/msgraph-mail/dotnet/Users/Attachment.cs index c9fb9800d..1117b3841 100644 --- a/msgraph-mail/dotnet/Users/Attachment.cs +++ b/msgraph-mail/dotnet/Users/Attachment.cs @@ -27,7 +27,7 @@ public class Attachment : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/DateTimeTimeZone.cs b/msgraph-mail/dotnet/Users/DateTimeTimeZone.cs index 6b5594cea..1f5ed107a 100644 --- a/msgraph-mail/dotnet/Users/DateTimeTimeZone.cs +++ b/msgraph-mail/dotnet/Users/DateTimeTimeZone.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users { public class DateTimeTimeZone : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. public string DateTime { get; set; } /// Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. public string TimeZone { get; set; } /// + /// Instantiates a new dateTimeTimeZone and sets the default values. + /// + public DateTimeTimeZone() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -20,7 +26,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/EmailAddress.cs b/msgraph-mail/dotnet/Users/EmailAddress.cs index 8247e6d9b..edceb5c2d 100644 --- a/msgraph-mail/dotnet/Users/EmailAddress.cs +++ b/msgraph-mail/dotnet/Users/EmailAddress.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users { public class EmailAddress : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// The email address of an entity instance. public string Address { get; set; } /// The display name of an entity instance. public string Name { get; set; } /// + /// Instantiates a new emailAddress and sets the default values. + /// + public EmailAddress() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -20,7 +26,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Entity.cs b/msgraph-mail/dotnet/Users/Entity.cs index 3ef2a65cb..b1e0882c8 100644 --- a/msgraph-mail/dotnet/Users/Entity.cs +++ b/msgraph-mail/dotnet/Users/Entity.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users { public class Entity : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// Read-only. public string Id { get; set; } /// + /// Instantiates a new entity and sets the default values. + /// + public Entity() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -17,7 +23,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Extension.cs b/msgraph-mail/dotnet/Users/Extension.cs index 66d1e4a93..ad50e8403 100644 --- a/msgraph-mail/dotnet/Users/Extension.cs +++ b/msgraph-mail/dotnet/Users/Extension.cs @@ -12,7 +12,7 @@ public class Extension : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/FollowupFlag.cs b/msgraph-mail/dotnet/Users/FollowupFlag.cs index c45815059..58de4551c 100644 --- a/msgraph-mail/dotnet/Users/FollowupFlag.cs +++ b/msgraph-mail/dotnet/Users/FollowupFlag.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users { public class FollowupFlag : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public DateTimeTimeZone CompletedDateTime { get; set; } public DateTimeTimeZone DueDateTime { get; set; } public FollowupFlagStatus? FlagStatus { get; set; } public DateTimeTimeZone StartDateTime { get; set; } /// + /// Instantiates a new followupFlag and sets the default values. + /// + public FollowupFlag() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -22,7 +28,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassification.cs b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassification.cs index 9fcab3ef6..9e8cd38e2 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassification.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassification.cs @@ -15,7 +15,7 @@ public class InferenceClassification : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationOverride.cs b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationOverride.cs index d847fe5d3..6ac26d726 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationOverride.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationOverride.cs @@ -16,7 +16,7 @@ public class InferenceClassificationOverride : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs index 0e0e84269..fb70b6b83 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.InferenceClassification.Overrides; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.InferenceClassification.Overrides; namespace Graphdotnetv4.Users.InferenceClassification { /// Builds and executes requests for operations under \users\{user-id}\inferenceClassification public class InferenceClassificationRequestBuilder { @@ -17,10 +17,16 @@ public class InferenceClassificationRequestBuilder { new OverridesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/inferenceClassification"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new InferenceClassificationRequestBuilder and sets the default values. + /// + public InferenceClassificationRequestBuilder() { + PathSegment = "/inferenceClassification"; + } + /// /// Delete navigation property inferenceClassification for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/Item/InferenceClassificationOverrideRequestBuilder.cs b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/Item/InferenceClassificationOverrideRequestBuilder.cs index 87b5fd00e..52793778b 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/Item/InferenceClassificationOverrideRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/Item/InferenceClassificationOverrideRequestBuilder.cs @@ -13,10 +13,16 @@ public class InferenceClassificationOverrideRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new InferenceClassificationOverrideRequestBuilder and sets the default values. + /// + public InferenceClassificationOverrideRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property overrides for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs index 5ccf0f2ac..a87e0554f 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.InferenceClassification.Overrides.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.InferenceClassification.Overrides.Item; namespace Graphdotnetv4.Users.InferenceClassification.Overrides { /// Builds and executes requests for operations under \users\{user-id}\inferenceClassification\overrides public class OverridesRequestBuilder { @@ -14,7 +14,7 @@ public class OverridesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/overrides"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.inferenceClassification.overrides collection @@ -22,6 +22,12 @@ public InferenceClassificationOverrideRequestBuilder this[string position] { get return new InferenceClassificationOverrideRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new OverridesRequestBuilder and sets the default values. + /// + public OverridesRequestBuilder() { + PathSegment = "/overrides"; + } + /// /// Get overrides from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesResponse.cs b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesResponse.cs index 157dd01f1..e250406de 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesResponse.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.InferenceClassification.Overrides { public class OverridesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new OverridesResponse and sets the default values. + /// + public OverridesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/InternetMessageHeader.cs b/msgraph-mail/dotnet/Users/InternetMessageHeader.cs index f2722f905..e818da654 100644 --- a/msgraph-mail/dotnet/Users/InternetMessageHeader.cs +++ b/msgraph-mail/dotnet/Users/InternetMessageHeader.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users { public class InternetMessageHeader : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// Represents the key in a key-value pair. public string Name { get; set; } /// The value in a key-value pair. public string Value { get; set; } /// + /// Instantiates a new internetMessageHeader and sets the default values. + /// + public InternetMessageHeader() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -20,7 +26,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs index c20468475..037da7cf8 100644 --- a/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs @@ -1,3 +1,6 @@ +using Graphdotnetv4.Users.InferenceClassification; +using Graphdotnetv4.Users.MailFolders; +using Graphdotnetv4.Users.Messages; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,9 +8,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.InferenceClassification; -using Graphdotnetv4.Users.MailFolders; -using Graphdotnetv4.Users.Messages; namespace Graphdotnetv4.Users.Item { /// Builds and executes requests for operations under \users\{user-id} public class UserRequestBuilder { @@ -25,8 +25,14 @@ public class UserRequestBuilder { new MessagesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } + /// + /// Instantiates a new UserRequestBuilder and sets the default values. + /// + public UserRequestBuilder() { + PathSegment = ""; + } } } diff --git a/msgraph-mail/dotnet/Users/ItemBody.cs b/msgraph-mail/dotnet/Users/ItemBody.cs index a7378f75f..8643bd923 100644 --- a/msgraph-mail/dotnet/Users/ItemBody.cs +++ b/msgraph-mail/dotnet/Users/ItemBody.cs @@ -5,11 +5,17 @@ namespace Graphdotnetv4.Users { public class ItemBody : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// The content of the item. public string Content { get; set; } public BodyType? ContentType { get; set; } /// + /// Instantiates a new itemBody and sets the default values. + /// + public ItemBody() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -19,7 +25,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolder.cs b/msgraph-mail/dotnet/Users/MailFolder.cs index a1d6e1847..9331aa239 100644 --- a/msgraph-mail/dotnet/Users/MailFolder.cs +++ b/msgraph-mail/dotnet/Users/MailFolder.cs @@ -45,7 +45,7 @@ public class MailFolder : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs index 06793890e..be8cc2845 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.ChildFolders.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.ChildFolders.Item; namespace Graphdotnetv4.Users.MailFolders.ChildFolders { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders public class ChildFoldersRequestBuilder { @@ -14,7 +14,7 @@ public class ChildFoldersRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/childFolders"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.childFolders collection @@ -22,6 +22,12 @@ public MailFolderRequestBuilder this[string position] { get { return new MailFolderRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new ChildFoldersRequestBuilder and sets the default values. + /// + public ChildFoldersRequestBuilder() { + PathSegment = "/childFolders"; + } + /// /// Get childFolders from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersResponse.cs index 55d7c55cf..eba1b35ab 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.ChildFolders { public class ChildFoldersResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new ChildFoldersResponse and sets the default values. + /// + public ChildFoldersResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/Item/MailFolderRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/Item/MailFolderRequestBuilder.cs index e41b99b20..4772aafd5 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/Item/MailFolderRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/Item/MailFolderRequestBuilder.cs @@ -13,10 +13,16 @@ public class MailFolderRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MailFolderRequestBuilder and sets the default values. + /// + public MailFolderRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property childFolders for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs index f22d8d1a8..f0bd18d1b 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs @@ -1,3 +1,8 @@ +using Graphdotnetv4.Users.MailFolders.ChildFolders; +using Graphdotnetv4.Users.MailFolders.MessageRules; +using Graphdotnetv4.Users.MailFolders.Messages; +using Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties; +using Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,11 +10,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.ChildFolders; -using Graphdotnetv4.Users.MailFolders.MessageRules; -using Graphdotnetv4.Users.MailFolders.Messages; -using Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties; -using Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties; namespace Graphdotnetv4.Users.MailFolders.Item { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id} public class MailFolderRequestBuilder { @@ -30,13 +30,19 @@ public class MailFolderRequestBuilder { new MultiValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } public SingleValueExtendedPropertiesRequestBuilder SingleValueExtendedProperties { get => new SingleValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// + /// Instantiates a new MailFolderRequestBuilder and sets the default values. + /// + public MailFolderRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property mailFolders for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs index 333b9b7fe..99c47eebb 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Item; namespace Graphdotnetv4.Users.MailFolders { /// Builds and executes requests for operations under \users\{user-id}\mailFolders public class MailFoldersRequestBuilder { @@ -14,7 +14,7 @@ public class MailFoldersRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/mailFolders"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders collection @@ -22,6 +22,12 @@ public MailFolderRequestBuilder this[string position] { get { return new MailFolderRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MailFoldersRequestBuilder and sets the default values. + /// + public MailFoldersRequestBuilder() { + PathSegment = "/mailFolders"; + } + /// /// Get mailFolders from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersResponse.cs index 0b3bca1e8..759cfdbca 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders { public class MailFoldersResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MailFoldersResponse and sets the default values. + /// + public MailFoldersResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRuleActions.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRuleActions.cs index 8b0db245c..d7f8f7856 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRuleActions.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRuleActions.cs @@ -5,7 +5,7 @@ namespace Graphdotnetv4.Users.MailFolders { public class MessageRuleActions : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// A list of categories to be assigned to a message. public List AssignCategories { get; set; } /// The ID of a folder that a message is to be copied to. @@ -28,6 +28,12 @@ public class MessageRuleActions : IParsable { /// Indicates whether subsequent rules should be evaluated. public bool? StopProcessingRules { get; set; } /// + /// Instantiates a new messageRuleActions and sets the default values. + /// + public MessageRuleActions() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -46,7 +52,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRulePredicates.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRulePredicates.cs index f2c017082..388b78b2c 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRulePredicates.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRulePredicates.cs @@ -5,7 +5,7 @@ namespace Graphdotnetv4.Users.MailFolders { public class MessageRulePredicates : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. public List BodyContains { get; set; } /// Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. @@ -63,6 +63,12 @@ public class MessageRulePredicates : IParsable { public List SubjectContains { get; set; } public SizeRange WithinSizeRange { get; set; } /// + /// Instantiates a new messageRulePredicates and sets the default values. + /// + public MessageRulePredicates() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -100,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/Item/MessageRuleRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/Item/MessageRuleRequestBuilder.cs index dcc5b9636..3ad698e8a 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/Item/MessageRuleRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/Item/MessageRuleRequestBuilder.cs @@ -13,10 +13,16 @@ public class MessageRuleRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MessageRuleRequestBuilder and sets the default values. + /// + public MessageRuleRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property messageRules for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs index 9ad1bd425..3ab3f5e3b 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.MessageRules.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.MessageRules.Item; namespace Graphdotnetv4.Users.MailFolders.MessageRules { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messageRules public class MessageRulesRequestBuilder { @@ -14,7 +14,7 @@ public class MessageRulesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/messageRules"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messageRules collection @@ -22,6 +22,12 @@ public MessageRuleRequestBuilder this[string position] { get { return new MessageRuleRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MessageRulesRequestBuilder and sets the default values. + /// + public MessageRulesRequestBuilder() { + PathSegment = "/messageRules"; + } + /// /// Get messageRules from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesResponse.cs index e67cbbe35..780c1e1fb 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.MessageRules { public class MessageRulesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MessageRulesResponse and sets the default values. + /// + public MessageRulesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs index 978f983a9..705b3cdd4 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.Attachments.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.Attachments.Item; namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\attachments public class AttachmentsRequestBuilder { @@ -14,7 +14,7 @@ public class AttachmentsRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/attachments"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages.attachments collection @@ -22,6 +22,12 @@ public AttachmentRequestBuilder this[string position] { get { return new AttachmentRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new AttachmentsRequestBuilder and sets the default values. + /// + public AttachmentsRequestBuilder() { + PathSegment = "/attachments"; + } + /// /// Get attachments from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsResponse.cs index 906aa452a..7f7805f77 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments { public class AttachmentsResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new AttachmentsResponse and sets the default values. + /// + public AttachmentsResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/Item/AttachmentRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/Item/AttachmentRequestBuilder.cs index 3dd28680d..b5308fc63 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/Item/AttachmentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/Item/AttachmentRequestBuilder.cs @@ -13,10 +13,16 @@ public class AttachmentRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new AttachmentRequestBuilder and sets the default values. + /// + public AttachmentRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property attachments for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Content/ContentRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Content/ContentRequestBuilder.cs index fb669fbb3..8dbdc6ee5 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Content/ContentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Content/ContentRequestBuilder.cs @@ -13,10 +13,16 @@ public class ContentRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/$value"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + public ContentRequestBuilder() { + PathSegment = "/$value"; + } + /// /// Get media content for the navigation property messages from users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs index 053898c8d..536d95c85 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.Extensions.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.Extensions.Item; namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\extensions public class ExtensionsRequestBuilder { @@ -14,7 +14,7 @@ public class ExtensionsRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/extensions"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages.extensions collection @@ -22,6 +22,12 @@ public ExtensionRequestBuilder this[string position] { get { return new ExtensionRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new ExtensionsRequestBuilder and sets the default values. + /// + public ExtensionsRequestBuilder() { + PathSegment = "/extensions"; + } + /// /// Get extensions from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsResponse.cs index 6a3756fda..35fe8677a 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions { public class ExtensionsResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new ExtensionsResponse and sets the default values. + /// + public ExtensionsResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/Item/ExtensionRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/Item/ExtensionRequestBuilder.cs index d6ee348d1..bf40f8ac4 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/Item/ExtensionRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/Item/ExtensionRequestBuilder.cs @@ -13,10 +13,16 @@ public class ExtensionRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new ExtensionRequestBuilder and sets the default values. + /// + public ExtensionRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property extensions for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs index 871f243b4..dfd0fc31c 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs @@ -1,3 +1,8 @@ +using Graphdotnetv4.Users.MailFolders.Messages.Attachments; +using Graphdotnetv4.Users.MailFolders.Messages.Content; +using Graphdotnetv4.Users.MailFolders.Messages.Extensions; +using Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties; +using Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,11 +10,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.Attachments; -using Graphdotnetv4.Users.MailFolders.Messages.Content; -using Graphdotnetv4.Users.MailFolders.Messages.Extensions; -using Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties; -using Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties; namespace Graphdotnetv4.Users.MailFolders.Messages.Item { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id} public class MessageRequestBuilder { @@ -30,13 +30,19 @@ public class MessageRequestBuilder { new MultiValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } public SingleValueExtendedPropertiesRequestBuilder SingleValueExtendedProperties { get => new SingleValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// + /// Instantiates a new MessageRequestBuilder and sets the default values. + /// + public MessageRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property messages for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs index e57535853..a87f847ee 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.Item; namespace Graphdotnetv4.Users.MailFolders.Messages { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages public class MessagesRequestBuilder { @@ -14,7 +14,7 @@ public class MessagesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/messages"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages collection @@ -22,6 +22,12 @@ public MessageRequestBuilder this[string position] { get { return new MessageRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MessagesRequestBuilder and sets the default values. + /// + public MessagesRequestBuilder() { + PathSegment = "/messages"; + } + /// /// Get messages from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesResponse.cs index 3ef53fcb3..b9c109130 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages { public class MessagesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MessagesResponse and sets the default values. + /// + public MessagesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs index f72a3f1b9..6db1f07ac 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public MultiValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property multiValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs index 04d9b548f..06dc23029 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties.Item; namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\multiValueExtendedProperties public class MultiValueExtendedPropertiesRequestBuilder { @@ -14,7 +14,7 @@ public class MultiValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/multiValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages.multiValueExtendedProperties collection @@ -22,6 +22,12 @@ public MultiValueLegacyExtendedPropertyRequestBuilder this[string position] { ge return new MultiValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public MultiValueExtendedPropertiesRequestBuilder() { + PathSegment = "/multiValueExtendedProperties"; + } + /// /// Get multiValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs index d7eed6332..0375cdd6c 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties { public class MultiValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + /// + public MultiValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs index 0abd625be..9bef2ceaa 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public SingleValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property singleValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs index 9beceb451..019725bf8 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties.Item; namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\singleValueExtendedProperties public class SingleValueExtendedPropertiesRequestBuilder { @@ -14,7 +14,7 @@ public class SingleValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/singleValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages.singleValueExtendedProperties collection @@ -22,6 +22,12 @@ public SingleValueLegacyExtendedPropertyRequestBuilder this[string position] { g return new SingleValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public SingleValueExtendedPropertiesRequestBuilder() { + PathSegment = "/singleValueExtendedProperties"; + } + /// /// Get singleValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs index 0c11ff073..26413854a 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties { public class SingleValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + /// + public SingleValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs index e7fe65b11..d1e3521b6 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public MultiValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property multiValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs index 4e9c51dca..50805feb1 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties.Item; namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\multiValueExtendedProperties public class MultiValueExtendedPropertiesRequestBuilder { @@ -14,7 +14,7 @@ public class MultiValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/multiValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.multiValueExtendedProperties collection @@ -22,6 +22,12 @@ public MultiValueLegacyExtendedPropertyRequestBuilder this[string position] { ge return new MultiValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public MultiValueExtendedPropertiesRequestBuilder() { + PathSegment = "/multiValueExtendedProperties"; + } + /// /// Get multiValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs index 4c26fb4a1..ac1a55d41 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties { public class MultiValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + /// + public MultiValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs index 6f9a254aa..c4c13b4d5 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public SingleValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property singleValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs index 310d84bd1..079595051 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties.Item; namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\singleValueExtendedProperties public class SingleValueExtendedPropertiesRequestBuilder { @@ -14,7 +14,7 @@ public class SingleValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/singleValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.singleValueExtendedProperties collection @@ -22,6 +22,12 @@ public SingleValueLegacyExtendedPropertyRequestBuilder this[string position] { g return new SingleValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public SingleValueExtendedPropertiesRequestBuilder() { + PathSegment = "/singleValueExtendedProperties"; + } + /// /// Get singleValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs index e0b2edf7e..b3caf2e55 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties { public class SingleValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + /// + public SingleValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/SizeRange.cs b/msgraph-mail/dotnet/Users/MailFolders/SizeRange.cs index b8004f13c..1373f56fe 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/SizeRange.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/SizeRange.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users.MailFolders { public class SizeRange : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. public int? MaximumSize { get; set; } /// The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. public int? MinimumSize { get; set; } /// + /// Instantiates a new sizeRange and sets the default values. + /// + public SizeRange() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -20,7 +26,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Message.cs b/msgraph-mail/dotnet/Users/Message.cs index 88db3103d..f7a6fb8a4 100644 --- a/msgraph-mail/dotnet/Users/Message.cs +++ b/msgraph-mail/dotnet/Users/Message.cs @@ -95,7 +95,7 @@ public class Message : OutlookItem, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MessageRule.cs b/msgraph-mail/dotnet/Users/MessageRule.cs index 7d4cf0fad..86ba4f1fb 100644 --- a/msgraph-mail/dotnet/Users/MessageRule.cs +++ b/msgraph-mail/dotnet/Users/MessageRule.cs @@ -1,8 +1,8 @@ +using Graphdotnetv4.Users.MailFolders; using Microsoft.Kiota.Abstractions.Serialization; using System; using System.Collections.Generic; using System.Linq; -using Graphdotnetv4.Users.MailFolders; namespace Graphdotnetv4.Users { public class MessageRule : Entity, IParsable { public MessageRuleActions Actions { get; set; } @@ -34,7 +34,7 @@ public class MessageRule : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs index 5cc29bfcd..68661e1cc 100644 --- a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.Attachments.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.Attachments.Item; namespace Graphdotnetv4.Users.Messages.Attachments { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\attachments public class AttachmentsRequestBuilder { @@ -14,7 +14,7 @@ public class AttachmentsRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/attachments"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages.attachments collection @@ -22,6 +22,12 @@ public AttachmentRequestBuilder this[string position] { get { return new AttachmentRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new AttachmentsRequestBuilder and sets the default values. + /// + public AttachmentsRequestBuilder() { + PathSegment = "/attachments"; + } + /// /// Get attachments from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsResponse.cs b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsResponse.cs index 2c63e4d87..403844277 100644 --- a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages.Attachments { public class AttachmentsResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new AttachmentsResponse and sets the default values. + /// + public AttachmentsResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/Attachments/Item/AttachmentRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Attachments/Item/AttachmentRequestBuilder.cs index d3326eafd..3c0c370aa 100644 --- a/msgraph-mail/dotnet/Users/Messages/Attachments/Item/AttachmentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Attachments/Item/AttachmentRequestBuilder.cs @@ -13,10 +13,16 @@ public class AttachmentRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new AttachmentRequestBuilder and sets the default values. + /// + public AttachmentRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property attachments for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/Content/ContentRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Content/ContentRequestBuilder.cs index 8f61abcf2..b9a92e67e 100644 --- a/msgraph-mail/dotnet/Users/Messages/Content/ContentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Content/ContentRequestBuilder.cs @@ -13,10 +13,16 @@ public class ContentRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/$value"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + public ContentRequestBuilder() { + PathSegment = "/$value"; + } + /// /// Get media content for the navigation property messages from users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs index 89831d9db..5cc9008e5 100644 --- a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.Extensions.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.Extensions.Item; namespace Graphdotnetv4.Users.Messages.Extensions { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\extensions public class ExtensionsRequestBuilder { @@ -14,7 +14,7 @@ public class ExtensionsRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/extensions"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages.extensions collection @@ -22,6 +22,12 @@ public ExtensionRequestBuilder this[string position] { get { return new ExtensionRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new ExtensionsRequestBuilder and sets the default values. + /// + public ExtensionsRequestBuilder() { + PathSegment = "/extensions"; + } + /// /// Get extensions from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsResponse.cs b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsResponse.cs index 994652b1b..0651ae654 100644 --- a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages.Extensions { public class ExtensionsResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new ExtensionsResponse and sets the default values. + /// + public ExtensionsResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/Extensions/Item/ExtensionRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Extensions/Item/ExtensionRequestBuilder.cs index 79be926af..5f5025ffb 100644 --- a/msgraph-mail/dotnet/Users/Messages/Extensions/Item/ExtensionRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Extensions/Item/ExtensionRequestBuilder.cs @@ -13,10 +13,16 @@ public class ExtensionRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new ExtensionRequestBuilder and sets the default values. + /// + public ExtensionRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property extensions for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs index 058b64dae..0be562ecd 100644 --- a/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs @@ -1,3 +1,8 @@ +using Graphdotnetv4.Users.Messages.Attachments; +using Graphdotnetv4.Users.Messages.Content; +using Graphdotnetv4.Users.Messages.Extensions; +using Graphdotnetv4.Users.Messages.MultiValueExtendedProperties; +using Graphdotnetv4.Users.Messages.SingleValueExtendedProperties; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,11 +10,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.Attachments; -using Graphdotnetv4.Users.Messages.Content; -using Graphdotnetv4.Users.Messages.Extensions; -using Graphdotnetv4.Users.Messages.MultiValueExtendedProperties; -using Graphdotnetv4.Users.Messages.SingleValueExtendedProperties; namespace Graphdotnetv4.Users.Messages.Item { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id} public class MessageRequestBuilder { @@ -30,13 +30,19 @@ public class MessageRequestBuilder { new MultiValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } public SingleValueExtendedPropertiesRequestBuilder SingleValueExtendedProperties { get => new SingleValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// + /// Instantiates a new MessageRequestBuilder and sets the default values. + /// + public MessageRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property messages for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs index 87dbe5a17..5a80e3d9e 100644 --- a/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.Item; namespace Graphdotnetv4.Users.Messages { /// Builds and executes requests for operations under \users\{user-id}\messages public class MessagesRequestBuilder { @@ -14,7 +14,7 @@ public class MessagesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/messages"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages collection @@ -22,6 +22,12 @@ public MessageRequestBuilder this[string position] { get { return new MessageRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MessagesRequestBuilder and sets the default values. + /// + public MessagesRequestBuilder() { + PathSegment = "/messages"; + } + /// /// Get messages from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/MessagesResponse.cs b/msgraph-mail/dotnet/Users/Messages/MessagesResponse.cs index ee6a95ef4..94bc5af43 100644 --- a/msgraph-mail/dotnet/Users/Messages/MessagesResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/MessagesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages { public class MessagesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MessagesResponse and sets the default values. + /// + public MessagesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs index 84a4c6836..017b4c7fe 100644 --- a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public MultiValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property multiValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs index 0de2ee2e0..0cef4dfa0 100644 --- a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.MultiValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.MultiValueExtendedProperties.Item; namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\multiValueExtendedProperties public class MultiValueExtendedPropertiesRequestBuilder { @@ -14,7 +14,7 @@ public class MultiValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/multiValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages.multiValueExtendedProperties collection @@ -22,6 +22,12 @@ public MultiValueLegacyExtendedPropertyRequestBuilder this[string position] { ge return new MultiValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public MultiValueExtendedPropertiesRequestBuilder() { + PathSegment = "/multiValueExtendedProperties"; + } + /// /// Get multiValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs index d6e856275..f990faba0 100644 --- a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties { public class MultiValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + /// + public MultiValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs index 72b0017c1..acf80bf6a 100644 --- a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public SingleValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property singleValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs index 0ff28321c..f63912463 100644 --- a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.SingleValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.SingleValueExtendedProperties.Item; namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\singleValueExtendedProperties public class SingleValueExtendedPropertiesRequestBuilder { @@ -14,7 +14,7 @@ public class SingleValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/singleValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages.singleValueExtendedProperties collection @@ -22,6 +22,12 @@ public SingleValueLegacyExtendedPropertyRequestBuilder this[string position] { g return new SingleValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public SingleValueExtendedPropertiesRequestBuilder() { + PathSegment = "/singleValueExtendedProperties"; + } + /// /// Get singleValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs index 278c32d15..f9b4e0017 100644 --- a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties { public class SingleValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + /// + public SingleValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MultiValueLegacyExtendedProperty.cs b/msgraph-mail/dotnet/Users/MultiValueLegacyExtendedProperty.cs index 6697453c2..9bf05d2a8 100644 --- a/msgraph-mail/dotnet/Users/MultiValueLegacyExtendedProperty.cs +++ b/msgraph-mail/dotnet/Users/MultiValueLegacyExtendedProperty.cs @@ -15,7 +15,7 @@ public class MultiValueLegacyExtendedProperty : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/OutlookItem.cs b/msgraph-mail/dotnet/Users/OutlookItem.cs index 63ea6a68f..81c167a3a 100644 --- a/msgraph-mail/dotnet/Users/OutlookItem.cs +++ b/msgraph-mail/dotnet/Users/OutlookItem.cs @@ -24,7 +24,7 @@ public class OutlookItem : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Recipient.cs b/msgraph-mail/dotnet/Users/Recipient.cs index 50aeda177..bc143b585 100644 --- a/msgraph-mail/dotnet/Users/Recipient.cs +++ b/msgraph-mail/dotnet/Users/Recipient.cs @@ -5,9 +5,15 @@ namespace Graphdotnetv4.Users { public class Recipient : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public EmailAddress EmailAddress { get; set; } /// + /// Instantiates a new recipient and sets the default values. + /// + public Recipient() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -16,7 +22,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/SingleValueLegacyExtendedProperty.cs b/msgraph-mail/dotnet/Users/SingleValueLegacyExtendedProperty.cs index 33ea986ee..b85737112 100644 --- a/msgraph-mail/dotnet/Users/SingleValueLegacyExtendedProperty.cs +++ b/msgraph-mail/dotnet/Users/SingleValueLegacyExtendedProperty.cs @@ -15,7 +15,7 @@ public class SingleValueLegacyExtendedProperty : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs b/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs index e8fa72527..ed92b24cf 100644 --- a/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Item; namespace Graphdotnetv4.Users { /// Builds and executes requests for operations under \users public class UsersRequestBuilder { @@ -14,12 +14,18 @@ public class UsersRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/users"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users collection public UserRequestBuilder this[string position] { get { return new UserRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } + /// + /// Instantiates a new UsersRequestBuilder and sets the default values. + /// + public UsersRequestBuilder() { + PathSegment = "/users"; + } } } diff --git a/msgraph-mail/java/.settings/org.eclipse.buildship.core.prefs b/msgraph-mail/java/.settings/org.eclipse.buildship.core.prefs index fcb699352..42df0c148 100644 --- a/msgraph-mail/java/.settings/org.eclipse.buildship.core.prefs +++ b/msgraph-mail/java/.settings/org.eclipse.buildship.core.prefs @@ -5,7 +5,7 @@ connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) connection.project.dir= eclipse.preferences.version=1 gradle.user.home= -java.home=C\:/Program Files/AdoptOpenJDK/jdk-16.0.0.36-hotspot +java.home=C\:/Program Files/AdoptOpenJDK/jdk-16.0.1.9-hotspot jvm.arguments= offline.mode=false override.workspace.settings=true diff --git a/msgraph-mail/java/app/.classpath b/msgraph-mail/java/app/.classpath index 93711e04a..5933c3f21 100644 --- a/msgraph-mail/java/app/.classpath +++ b/msgraph-mail/java/app/.classpath @@ -6,12 +6,6 @@ - - - - - - @@ -19,14 +13,7 @@ - - - - - - - - + diff --git a/msgraph-mail/java/app/.settings/org.eclipse.buildship.core.prefs b/msgraph-mail/java/app/.settings/org.eclipse.buildship.core.prefs index b1886adb4..f155ebb43 100644 --- a/msgraph-mail/java/app/.settings/org.eclipse.buildship.core.prefs +++ b/msgraph-mail/java/app/.settings/org.eclipse.buildship.core.prefs @@ -1,2 +1,13 @@ -connection.project.dir=.. +arguments= +auto.sync=false +build.scans.enabled=false +connection.gradle.distribution=GRADLE_DISTRIBUTION(LOCAL_INSTALLATION(C\:\\ProgramData\\chocolatey\\lib\\gradle\\tools\\gradle-7.0.2)) +connection.project.dir= eclipse.preferences.version=1 +gradle.user.home= +java.home=C\:/Program Files/AdoptOpenJDK/jdk-16.0.1.9-hotspot +jvm.arguments= +offline.mode=false +override.workspace.settings=true +show.console.view=true +show.executions.view=true diff --git a/msgraph-mail/java/utilities/.classpath b/msgraph-mail/java/utilities/.classpath index 6e87a05d4..5617815c0 100644 --- a/msgraph-mail/java/utilities/.classpath +++ b/msgraph-mail/java/utilities/.classpath @@ -6,20 +6,7 @@ - - - - - - - - - - - - - - + - + diff --git a/msgraph-mail/java/utilities/.settings/org.eclipse.buildship.core.prefs b/msgraph-mail/java/utilities/.settings/org.eclipse.buildship.core.prefs index dc08b6eaf..777998de0 100644 --- a/msgraph-mail/java/utilities/.settings/org.eclipse.buildship.core.prefs +++ b/msgraph-mail/java/utilities/.settings/org.eclipse.buildship.core.prefs @@ -2,7 +2,7 @@ arguments= auto.sync=false build.scans.enabled=false connection.gradle.distribution=GRADLE_DISTRIBUTION(LOCAL_INSTALLATION(C\:\\ProgramData\\chocolatey\\lib\\gradle\\tools\\gradle-6.7)) -connection.project.dir=.. +connection.project.dir=../app eclipse.preferences.version=1 gradle.user.home= java.home=C\:/Program Files/AdoptOpenJDK/jdk-15.0.1.9-hotspot diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/ApiClient.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/ApiClient.java index dae69fbe5..0159b196d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/ApiClient.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/ApiClient.java @@ -24,8 +24,7 @@ public class ApiClient { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "https://graph.microsoft.com/v1.0"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; @@ -36,6 +35,13 @@ public UsersRequestBuilder users() { final SerializationWriterFactory parentSerializationFactory = serializerFactory; return new UsersRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } + /** + * Instantiates a new ApiClient and sets the default values. + * @return a void + */ + public ApiClient() { + this.pathSegment = "https://graph.microsoft.com/v1.0"; + } /** * Gets an item from the graphjavav4.utilities.users collection * @param id Unique identifier of the item diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java index 2dc278f1b..1b6dfa5be 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java @@ -10,20 +10,62 @@ import java.util.Objects; public class Attachment extends Entity implements Parsable { /** The MIME type. */ - @javax.annotation.Nullable - public String contentType; + private String _contentType; /** true if the attachment is an inline attachment; otherwise, false. */ - @javax.annotation.Nullable - public Boolean isInline; + private Boolean _isInline; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - @javax.annotation.Nullable - public OffsetDateTime lastModifiedDateTime; + private OffsetDateTime _lastModifiedDateTime; /** The display name of the attachment. This does not need to be the actual file name. */ - @javax.annotation.Nullable - public String name; + private String _name; /** The length of the attachment in bytes. */ + private Integer _size; + /** + * Instantiates a new attachment and sets the default values. + * @return a void + */ + public Attachment() { + super(); + } + /** + * Gets the contentType property value. The MIME type. + * @return a string + */ + @javax.annotation.Nullable + public String getContentType() { + return this._contentType; + } + /** + * Gets the isInline property value. true if the attachment is an inline attachment; otherwise, false. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getIsInline() { + return this._isInline; + } + /** + * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @return a OffsetDateTime + */ @javax.annotation.Nullable - public Integer size; + public OffsetDateTime getLastModifiedDateTime() { + return this._lastModifiedDateTime; + } + /** + * Gets the name property value. The display name of the attachment. This does not need to be the actual file name. + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this._name; + } + /** + * Gets the size property value. The length of the attachment in bytes. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getSize() { + return this._size; + } /** * The deserialization information for the current model * @return a Map> @@ -31,25 +73,65 @@ public class Attachment extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("contentType", (o, n) -> { ((Attachment)o).contentType = n.getStringValue(); }); - this.put("isInline", (o, n) -> { ((Attachment)o).isInline = n.getBooleanValue(); }); - this.put("lastModifiedDateTime", (o, n) -> { ((Attachment)o).lastModifiedDateTime = n.getOffsetDateTimeValue(); }); - this.put("name", (o, n) -> { ((Attachment)o).name = n.getStringValue(); }); - this.put("size", (o, n) -> { ((Attachment)o).size = n.getIntegerValue(); }); + this.put("contentType", (o, n) -> { ((Attachment)o).setContentType(n.getStringValue()); }); + this.put("isInline", (o, n) -> { ((Attachment)o).setIsInline(n.getBooleanValue()); }); + this.put("lastModifiedDateTime", (o, n) -> { ((Attachment)o).setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + this.put("name", (o, n) -> { ((Attachment)o).setName(n.getStringValue()); }); + this.put("size", (o, n) -> { ((Attachment)o).setSize(n.getIntegerValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeStringValue("contentType", contentType); - writer.writeBooleanValue("isInline", isInline); - writer.writeOffsetDateTimeValue("lastModifiedDateTime", lastModifiedDateTime); - writer.writeStringValue("name", name); - writer.writeIntegerValue("size", size); + writer.writeStringValue("contentType", this.getContentType()); + writer.writeBooleanValue("isInline", this.getIsInline()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeStringValue("name", this.getName()); + writer.writeIntegerValue("size", this.getSize()); + } + /** + * Sets the contentType property value. The MIME type. + * @param value Value to set for the contentType property. + * @return a void + */ + public void setContentType(@javax.annotation.Nullable final String value) { + this._contentType = value; + } + /** + * Sets the isInline property value. true if the attachment is an inline attachment; otherwise, false. + * @param value Value to set for the isInline property. + * @return a void + */ + public void setIsInline(@javax.annotation.Nullable final Boolean value) { + this._isInline = value; + } + /** + * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the lastModifiedDateTime property. + * @return a void + */ + public void setLastModifiedDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._lastModifiedDateTime = value; + } + /** + * Sets the name property value. The display name of the attachment. This does not need to be the actual file name. + * @param value Value to set for the name property. + * @return a void + */ + public void setName(@javax.annotation.Nullable final String value) { + this._name = value; + } + /** + * Sets the size property value. The length of the attachment in bytes. + * @param value Value to set for the size property. + * @return a void + */ + public void setSize(@javax.annotation.Nullable final Integer value) { + this._size = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java index b38b95a09..d20053b9a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java @@ -9,21 +9,41 @@ import java.util.Objects; public class DateTimeTimeZone implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map _additionalData; /** A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. */ - @javax.annotation.Nullable - public String dateTime; + private String _dateTime; /** Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. */ - @javax.annotation.Nullable - public String timeZone; + private String _timeZone; + /** + * Instantiates a new dateTimeTimeZone and sets the default values. + * @return a void + */ + public DateTimeTimeZone() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. + * @return a string + */ + @javax.annotation.Nullable + public String getDateTime() { + return this._dateTime; + } + /** + * Gets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. + * @return a string + */ + @javax.annotation.Nullable + public String getTimeZone() { + return this._timeZone; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("dateTime", (o, n) -> { ((DateTimeTimeZone)o).dateTime = n.getStringValue(); }); - this.put("timeZone", (o, n) -> { ((DateTimeTimeZone)o).timeZone = n.getStringValue(); }); + this.put("dateTime", (o, n) -> { ((DateTimeTimeZone)o).setDateTime(n.getStringValue()); }); + this.put("timeZone", (o, n) -> { ((DateTimeTimeZone)o).setTimeZone(n.getStringValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("dateTime", dateTime); - writer.writeStringValue("timeZone", timeZone); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("dateTime", this.getDateTime()); + writer.writeStringValue("timeZone", this.getTimeZone()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. + * @param value Value to set for the dateTime property. + * @return a void + */ + public void setDateTime(@javax.annotation.Nullable final String value) { + this._dateTime = value; + } + /** + * Sets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. + * @param value Value to set for the timeZone property. + * @return a void + */ + public void setTimeZone(@javax.annotation.Nullable final String value) { + this._timeZone = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java index cb759ea77..151739ffb 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java @@ -9,21 +9,41 @@ import java.util.Objects; public class EmailAddress implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map _additionalData; /** The email address of an entity instance. */ - @javax.annotation.Nullable - public String address; + private String _address; /** The display name of an entity instance. */ - @javax.annotation.Nullable - public String name; + private String _name; + /** + * Instantiates a new emailAddress and sets the default values. + * @return a void + */ + public EmailAddress() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the address property value. The email address of an entity instance. + * @return a string + */ + @javax.annotation.Nullable + public String getAddress() { + return this._address; + } + /** + * Gets the name property value. The display name of an entity instance. + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this._name; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("address", (o, n) -> { ((EmailAddress)o).address = n.getStringValue(); }); - this.put("name", (o, n) -> { ((EmailAddress)o).name = n.getStringValue(); }); + this.put("address", (o, n) -> { ((EmailAddress)o).setAddress(n.getStringValue()); }); + this.put("name", (o, n) -> { ((EmailAddress)o).setName(n.getStringValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("address", address); - writer.writeStringValue("name", name); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("address", this.getAddress()); + writer.writeStringValue("name", this.getName()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the address property value. The email address of an entity instance. + * @param value Value to set for the address property. + * @return a void + */ + public void setAddress(@javax.annotation.Nullable final String value) { + this._address = value; + } + /** + * Sets the name property value. The display name of an entity instance. + * @param value Value to set for the name property. + * @return a void + */ + public void setName(@javax.annotation.Nullable final String value) { + this._name = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java index e11504318..9642c8a52 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java @@ -9,18 +9,31 @@ import java.util.Objects; public class Entity implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map _additionalData; /** Read-only. */ - @javax.annotation.Nullable - public String id; + private String _id; /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Instantiates a new entity and sets the default values. + * @return a void + */ + public Entity() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the id property value. Read-only. + * @return a string + */ + @javax.annotation.Nullable + public String getId() { + return this._id; } /** * The deserialization information for the current model @@ -29,17 +42,33 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(1) {{ - this.put("id", (o, n) -> { ((Entity)o).id = n.getStringValue(); }); + this.put("id", (o, n) -> { ((Entity)o).setId(n.getStringValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("id", id); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("id", this.getId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the id property value. Read-only. + * @param value Value to set for the id property. + * @return a void + */ + public void setId(@javax.annotation.Nullable final String value) { + this._id = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java index 86c0e3618..4991cd959 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java @@ -8,6 +8,13 @@ import java.util.Map; import java.util.Objects; public class Extension extends Entity implements Parsable { + /** + * Instantiates a new extension and sets the default values. + * @return a void + */ + public Extension() { + super(); + } /** * The deserialization information for the current model * @return a Map> @@ -18,7 +25,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java index a76743952..0145159c0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java @@ -9,23 +9,57 @@ import java.util.Objects; public class FollowupFlag implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private Map _additionalData; + private DateTimeTimeZone _completedDateTime; + private DateTimeTimeZone _dueDateTime; + private FollowupFlagStatus _flagStatus; + private DateTimeTimeZone _startDateTime; + /** + * Instantiates a new followupFlag and sets the default values. + * @return a void + */ + public FollowupFlag() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public DateTimeTimeZone completedDateTime; + public Map getAdditionalData() { + return this._additionalData; + } + /** + * Gets the completedDateTime property value. + * @return a dateTimeTimeZone + */ @javax.annotation.Nullable - public DateTimeTimeZone dueDateTime; + public DateTimeTimeZone getCompletedDateTime() { + return this._completedDateTime; + } + /** + * Gets the dueDateTime property value. + * @return a dateTimeTimeZone + */ @javax.annotation.Nullable - public FollowupFlagStatus flagStatus; + public DateTimeTimeZone getDueDateTime() { + return this._dueDateTime; + } + /** + * Gets the flagStatus property value. + * @return a followupFlagStatus + */ @javax.annotation.Nullable - public DateTimeTimeZone startDateTime; + public FollowupFlagStatus getFlagStatus() { + return this._flagStatus; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the startDateTime property value. + * @return a dateTimeTimeZone */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public DateTimeTimeZone getStartDateTime() { + return this._startDateTime; } /** * The deserialization information for the current model @@ -34,23 +68,63 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(4) {{ - this.put("completedDateTime", (o, n) -> { ((FollowupFlag)o).completedDateTime = n.getObjectValue(DateTimeTimeZone.class); }); - this.put("dueDateTime", (o, n) -> { ((FollowupFlag)o).dueDateTime = n.getObjectValue(DateTimeTimeZone.class); }); - this.put("flagStatus", (o, n) -> { ((FollowupFlag)o).flagStatus = n.getEnumValue(FollowupFlagStatus.class); }); - this.put("startDateTime", (o, n) -> { ((FollowupFlag)o).startDateTime = n.getObjectValue(DateTimeTimeZone.class); }); + this.put("completedDateTime", (o, n) -> { ((FollowupFlag)o).setCompletedDateTime(n.getObjectValue(DateTimeTimeZone.class)); }); + this.put("dueDateTime", (o, n) -> { ((FollowupFlag)o).setDueDateTime(n.getObjectValue(DateTimeTimeZone.class)); }); + this.put("flagStatus", (o, n) -> { ((FollowupFlag)o).setFlagStatus(n.getEnumValue(FollowupFlagStatus.class)); }); + this.put("startDateTime", (o, n) -> { ((FollowupFlag)o).setStartDateTime(n.getObjectValue(DateTimeTimeZone.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeObjectValue("completedDateTime", completedDateTime); - writer.writeObjectValue("dueDateTime", dueDateTime); - writer.writeEnumValue("flagStatus", flagStatus); - writer.writeObjectValue("startDateTime", startDateTime); - writer.writeAdditionalData(this.additionalData); + writer.writeObjectValue("completedDateTime", this.getCompletedDateTime()); + writer.writeObjectValue("dueDateTime", this.getDueDateTime()); + writer.writeEnumValue("flagStatus", this.getFlagStatus()); + writer.writeObjectValue("startDateTime", this.getStartDateTime()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the completedDateTime property value. + * @param value Value to set for the completedDateTime property. + * @return a void + */ + public void setCompletedDateTime(@javax.annotation.Nullable final DateTimeTimeZone value) { + this._completedDateTime = value; + } + /** + * Sets the dueDateTime property value. + * @param value Value to set for the dueDateTime property. + * @return a void + */ + public void setDueDateTime(@javax.annotation.Nullable final DateTimeTimeZone value) { + this._dueDateTime = value; + } + /** + * Sets the flagStatus property value. + * @param value Value to set for the flagStatus property. + * @return a void + */ + public void setFlagStatus(@javax.annotation.Nullable final FollowupFlagStatus value) { + this._flagStatus = value; + } + /** + * Sets the startDateTime property value. + * @param value Value to set for the startDateTime property. + * @return a void + */ + public void setStartDateTime(@javax.annotation.Nullable final DateTimeTimeZone value) { + this._startDateTime = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java index ff13fd436..cbcff8ff7 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java @@ -9,21 +9,41 @@ import java.util.Objects; public class InternetMessageHeader implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map _additionalData; /** Represents the key in a key-value pair. */ - @javax.annotation.Nullable - public String name; + private String _name; /** The value in a key-value pair. */ - @javax.annotation.Nullable - public String value; + private String _value; + /** + * Instantiates a new internetMessageHeader and sets the default values. + * @return a void + */ + public InternetMessageHeader() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the name property value. Represents the key in a key-value pair. + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this._name; + } + /** + * Gets the value property value. The value in a key-value pair. + * @return a string + */ + @javax.annotation.Nullable + public String getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("name", (o, n) -> { ((InternetMessageHeader)o).name = n.getStringValue(); }); - this.put("value", (o, n) -> { ((InternetMessageHeader)o).value = n.getStringValue(); }); + this.put("name", (o, n) -> { ((InternetMessageHeader)o).setName(n.getStringValue()); }); + this.put("value", (o, n) -> { ((InternetMessageHeader)o).setValue(n.getStringValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("name", name); - writer.writeStringValue("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("name", this.getName()); + writer.writeStringValue("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the name property value. Represents the key in a key-value pair. + * @param value Value to set for the name property. + * @return a void + */ + public void setName(@javax.annotation.Nullable final String value) { + this._name = value; + } + /** + * Sets the value property value. The value in a key-value pair. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final String value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java index 5c53a7305..de78a6fb1 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java @@ -9,20 +9,40 @@ import java.util.Objects; public class ItemBody implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map _additionalData; /** The content of the item. */ - @javax.annotation.Nullable - public String content; - @javax.annotation.Nullable - public BodyType contentType; + private String _content; + private BodyType _contentType; + /** + * Instantiates a new itemBody and sets the default values. + * @return a void + */ + public ItemBody() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the content property value. The content of the item. + * @return a string + */ + @javax.annotation.Nullable + public String getContent() { + return this._content; + } + /** + * Gets the contentType property value. + * @return a bodyType + */ + @javax.annotation.Nullable + public BodyType getContentType() { + return this._contentType; } /** * The deserialization information for the current model @@ -31,19 +51,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("content", (o, n) -> { ((ItemBody)o).content = n.getStringValue(); }); - this.put("contentType", (o, n) -> { ((ItemBody)o).contentType = n.getEnumValue(BodyType.class); }); + this.put("content", (o, n) -> { ((ItemBody)o).setContent(n.getStringValue()); }); + this.put("contentType", (o, n) -> { ((ItemBody)o).setContentType(n.getEnumValue(BodyType.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("content", content); - writer.writeEnumValue("contentType", contentType); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("content", this.getContent()); + writer.writeEnumValue("contentType", this.getContentType()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the content property value. The content of the item. + * @param value Value to set for the content property. + * @return a void + */ + public void setContent(@javax.annotation.Nullable final String value) { + this._content = value; + } + /** + * Sets the contentType property value. + * @param value Value to set for the contentType property. + * @return a void + */ + public void setContentType(@javax.annotation.Nullable final BodyType value) { + this._contentType = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java index 85ea457a5..2f8ebcf89 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java @@ -10,38 +10,122 @@ import java.util.Objects; public class MailFolder extends Entity implements Parsable { /** The number of immediate child mailFolders in the current mailFolder. */ - @javax.annotation.Nullable - public Integer childFolderCount; + private Integer _childFolderCount; /** The collection of child folders in the mailFolder. */ - @javax.annotation.Nullable - public List childFolders; + private List _childFolders; /** The mailFolder's display name. */ - @javax.annotation.Nullable - public String displayName; + private String _displayName; /** Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. */ - @javax.annotation.Nullable - public Boolean isHidden; + private Boolean _isHidden; /** The collection of rules that apply to the user's Inbox folder. */ - @javax.annotation.Nullable - public List messageRules; + private List _messageRules; /** The collection of messages in the mailFolder. */ - @javax.annotation.Nullable - public List messages; + private List _messages; /** The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. */ - @javax.annotation.Nullable - public List multiValueExtendedProperties; + private List _multiValueExtendedProperties; /** The unique identifier for the mailFolder's parent mailFolder. */ - @javax.annotation.Nullable - public String parentFolderId; + private String _parentFolderId; /** The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. */ - @javax.annotation.Nullable - public List singleValueExtendedProperties; + private List _singleValueExtendedProperties; /** The number of items in the mailFolder. */ - @javax.annotation.Nullable - public Integer totalItemCount; + private Integer _totalItemCount; /** The number of items in the mailFolder marked as unread. */ + private Integer _unreadItemCount; + /** + * Instantiates a new mailFolder and sets the default values. + * @return a void + */ + public MailFolder() { + super(); + } + /** + * Gets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. + * @return a integer + */ @javax.annotation.Nullable - public Integer unreadItemCount; + public Integer getChildFolderCount() { + return this._childFolderCount; + } + /** + * Gets the childFolders property value. The collection of child folders in the mailFolder. + * @return a mailFolder + */ + @javax.annotation.Nullable + public List getChildFolders() { + return this._childFolders; + } + /** + * Gets the displayName property value. The mailFolder's display name. + * @return a string + */ + @javax.annotation.Nullable + public String getDisplayName() { + return this._displayName; + } + /** + * Gets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getIsHidden() { + return this._isHidden; + } + /** + * Gets the messageRules property value. The collection of rules that apply to the user's Inbox folder. + * @return a messageRule + */ + @javax.annotation.Nullable + public List getMessageRules() { + return this._messageRules; + } + /** + * Gets the messages property value. The collection of messages in the mailFolder. + * @return a message + */ + @javax.annotation.Nullable + public List getMessages() { + return this._messages; + } + /** + * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. + * @return a multiValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getMultiValueExtendedProperties() { + return this._multiValueExtendedProperties; + } + /** + * Gets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. + * @return a string + */ + @javax.annotation.Nullable + public String getParentFolderId() { + return this._parentFolderId; + } + /** + * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. + * @return a singleValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getSingleValueExtendedProperties() { + return this._singleValueExtendedProperties; + } + /** + * Gets the totalItemCount property value. The number of items in the mailFolder. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getTotalItemCount() { + return this._totalItemCount; + } + /** + * Gets the unreadItemCount property value. The number of items in the mailFolder marked as unread. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getUnreadItemCount() { + return this._unreadItemCount; + } /** * The deserialization information for the current model * @return a Map> @@ -49,37 +133,125 @@ public class MailFolder extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("childFolderCount", (o, n) -> { ((MailFolder)o).childFolderCount = n.getIntegerValue(); }); - this.put("childFolders", (o, n) -> { ((MailFolder)o).childFolders = n.getCollectionOfObjectValues(MailFolder.class); }); - this.put("displayName", (o, n) -> { ((MailFolder)o).displayName = n.getStringValue(); }); - this.put("isHidden", (o, n) -> { ((MailFolder)o).isHidden = n.getBooleanValue(); }); - this.put("messageRules", (o, n) -> { ((MailFolder)o).messageRules = n.getCollectionOfObjectValues(MessageRule.class); }); - this.put("messages", (o, n) -> { ((MailFolder)o).messages = n.getCollectionOfObjectValues(Message.class); }); - this.put("multiValueExtendedProperties", (o, n) -> { ((MailFolder)o).multiValueExtendedProperties = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); - this.put("parentFolderId", (o, n) -> { ((MailFolder)o).parentFolderId = n.getStringValue(); }); - this.put("singleValueExtendedProperties", (o, n) -> { ((MailFolder)o).singleValueExtendedProperties = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); - this.put("totalItemCount", (o, n) -> { ((MailFolder)o).totalItemCount = n.getIntegerValue(); }); - this.put("unreadItemCount", (o, n) -> { ((MailFolder)o).unreadItemCount = n.getIntegerValue(); }); + this.put("childFolderCount", (o, n) -> { ((MailFolder)o).setChildFolderCount(n.getIntegerValue()); }); + this.put("childFolders", (o, n) -> { ((MailFolder)o).setChildFolders(n.getCollectionOfObjectValues(MailFolder.class)); }); + this.put("displayName", (o, n) -> { ((MailFolder)o).setDisplayName(n.getStringValue()); }); + this.put("isHidden", (o, n) -> { ((MailFolder)o).setIsHidden(n.getBooleanValue()); }); + this.put("messageRules", (o, n) -> { ((MailFolder)o).setMessageRules(n.getCollectionOfObjectValues(MessageRule.class)); }); + this.put("messages", (o, n) -> { ((MailFolder)o).setMessages(n.getCollectionOfObjectValues(Message.class)); }); + this.put("multiValueExtendedProperties", (o, n) -> { ((MailFolder)o).setMultiValueExtendedProperties(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); + this.put("parentFolderId", (o, n) -> { ((MailFolder)o).setParentFolderId(n.getStringValue()); }); + this.put("singleValueExtendedProperties", (o, n) -> { ((MailFolder)o).setSingleValueExtendedProperties(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); + this.put("totalItemCount", (o, n) -> { ((MailFolder)o).setTotalItemCount(n.getIntegerValue()); }); + this.put("unreadItemCount", (o, n) -> { ((MailFolder)o).setUnreadItemCount(n.getIntegerValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeIntegerValue("childFolderCount", childFolderCount); - writer.writeCollectionOfObjectValues("childFolders", childFolders); - writer.writeStringValue("displayName", displayName); - writer.writeBooleanValue("isHidden", isHidden); - writer.writeCollectionOfObjectValues("messageRules", messageRules); - writer.writeCollectionOfObjectValues("messages", messages); - writer.writeCollectionOfObjectValues("multiValueExtendedProperties", multiValueExtendedProperties); - writer.writeStringValue("parentFolderId", parentFolderId); - writer.writeCollectionOfObjectValues("singleValueExtendedProperties", singleValueExtendedProperties); - writer.writeIntegerValue("totalItemCount", totalItemCount); - writer.writeIntegerValue("unreadItemCount", unreadItemCount); + writer.writeIntegerValue("childFolderCount", this.getChildFolderCount()); + writer.writeCollectionOfObjectValues("childFolders", this.getChildFolders()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeBooleanValue("isHidden", this.getIsHidden()); + writer.writeCollectionOfObjectValues("messageRules", this.getMessageRules()); + writer.writeCollectionOfObjectValues("messages", this.getMessages()); + writer.writeCollectionOfObjectValues("multiValueExtendedProperties", this.getMultiValueExtendedProperties()); + writer.writeStringValue("parentFolderId", this.getParentFolderId()); + writer.writeCollectionOfObjectValues("singleValueExtendedProperties", this.getSingleValueExtendedProperties()); + writer.writeIntegerValue("totalItemCount", this.getTotalItemCount()); + writer.writeIntegerValue("unreadItemCount", this.getUnreadItemCount()); + } + /** + * Sets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. + * @param value Value to set for the childFolderCount property. + * @return a void + */ + public void setChildFolderCount(@javax.annotation.Nullable final Integer value) { + this._childFolderCount = value; + } + /** + * Sets the childFolders property value. The collection of child folders in the mailFolder. + * @param value Value to set for the childFolders property. + * @return a void + */ + public void setChildFolders(@javax.annotation.Nullable final List value) { + this._childFolders = value; + } + /** + * Sets the displayName property value. The mailFolder's display name. + * @param value Value to set for the displayName property. + * @return a void + */ + public void setDisplayName(@javax.annotation.Nullable final String value) { + this._displayName = value; + } + /** + * Sets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. + * @param value Value to set for the isHidden property. + * @return a void + */ + public void setIsHidden(@javax.annotation.Nullable final Boolean value) { + this._isHidden = value; + } + /** + * Sets the messageRules property value. The collection of rules that apply to the user's Inbox folder. + * @param value Value to set for the messageRules property. + * @return a void + */ + public void setMessageRules(@javax.annotation.Nullable final List value) { + this._messageRules = value; + } + /** + * Sets the messages property value. The collection of messages in the mailFolder. + * @param value Value to set for the messages property. + * @return a void + */ + public void setMessages(@javax.annotation.Nullable final List value) { + this._messages = value; + } + /** + * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. + * @param value Value to set for the multiValueExtendedProperties property. + * @return a void + */ + public void setMultiValueExtendedProperties(@javax.annotation.Nullable final List value) { + this._multiValueExtendedProperties = value; + } + /** + * Sets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. + * @param value Value to set for the parentFolderId property. + * @return a void + */ + public void setParentFolderId(@javax.annotation.Nullable final String value) { + this._parentFolderId = value; + } + /** + * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. + * @param value Value to set for the singleValueExtendedProperties property. + * @return a void + */ + public void setSingleValueExtendedProperties(@javax.annotation.Nullable final List value) { + this._singleValueExtendedProperties = value; + } + /** + * Sets the totalItemCount property value. The number of items in the mailFolder. + * @param value Value to set for the totalItemCount property. + * @return a void + */ + public void setTotalItemCount(@javax.annotation.Nullable final Integer value) { + this._totalItemCount = value; + } + /** + * Sets the unreadItemCount property value. The number of items in the mailFolder marked as unread. + * @param value Value to set for the unreadItemCount property. + * @return a void + */ + public void setUnreadItemCount(@javax.annotation.Nullable final Integer value) { + this._unreadItemCount = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java index 8a34ea48b..7a5d7e9aa 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java @@ -11,88 +11,305 @@ import java.util.Objects; public class Message extends OutlookItem implements Parsable { /** The fileAttachment and itemAttachment attachments for the message. */ - @javax.annotation.Nullable - public List attachments; + private List _attachments; /** The Bcc: recipients for the message. */ + private List _bccRecipients; + private ItemBody _body; + /** The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. */ + private String _bodyPreview; + /** The Cc: recipients for the message. */ + private List _ccRecipients; + /** The ID of the conversation the email belongs to. */ + private String _conversationId; + /** Indicates the position of the message within the conversation. */ + private String _conversationIndex; + /** The collection of open extensions defined for the message. Nullable. */ + private List _extensions; + private FollowupFlag _flag; + private Recipient _from; + /** Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . */ + private Boolean _hasAttachments; + private Importance _importance; + private InferenceClassificationType _inferenceClassification; + /** A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. */ + private List _internetMessageHeaders; + /** The message ID in the format specified by RFC2822. */ + private String _internetMessageId; + /** Indicates whether a read receipt is requested for the message. */ + private Boolean _isDeliveryReceiptRequested; + /** Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. */ + private Boolean _isDraft; + /** Indicates whether the message has been read. */ + private Boolean _isRead; + /** Indicates whether a read receipt is requested for the message. */ + private Boolean _isReadReceiptRequested; + /** The collection of multi-value extended properties defined for the message. Nullable. */ + private List _multiValueExtendedProperties; + /** The unique identifier for the message's parent mailFolder. */ + private String _parentFolderId; + /** The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ + private OffsetDateTime _receivedDateTime; + /** The email addresses to use when replying. */ + private List _replyTo; + private Recipient _sender; + /** The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ + private OffsetDateTime _sentDateTime; + /** The collection of single-value extended properties defined for the message. Nullable. */ + private List _singleValueExtendedProperties; + /** The subject of the message. */ + private String _subject; + /** The To: recipients for the message. */ + private List _toRecipients; + private ItemBody _uniqueBody; + /** The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. */ + private String _webLink; + /** + * Instantiates a new message and sets the default values. + * @return a void + */ + public Message() { + super(); + } + /** + * Gets the attachments property value. The fileAttachment and itemAttachment attachments for the message. + * @return a attachment + */ @javax.annotation.Nullable - public List bccRecipients; + public List getAttachments() { + return this._attachments; + } + /** + * Gets the bccRecipients property value. The Bcc: recipients for the message. + * @return a recipient + */ @javax.annotation.Nullable - public ItemBody body; - /** The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. */ + public List getBccRecipients() { + return this._bccRecipients; + } + /** + * Gets the body property value. + * @return a itemBody + */ @javax.annotation.Nullable - public String bodyPreview; - /** The Cc: recipients for the message. */ + public ItemBody getBody() { + return this._body; + } + /** + * Gets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. + * @return a string + */ @javax.annotation.Nullable - public List ccRecipients; - /** The ID of the conversation the email belongs to. */ + public String getBodyPreview() { + return this._bodyPreview; + } + /** + * Gets the ccRecipients property value. The Cc: recipients for the message. + * @return a recipient + */ @javax.annotation.Nullable - public String conversationId; - /** Indicates the position of the message within the conversation. */ + public List getCcRecipients() { + return this._ccRecipients; + } + /** + * Gets the conversationId property value. The ID of the conversation the email belongs to. + * @return a string + */ @javax.annotation.Nullable - public String conversationIndex; - /** The collection of open extensions defined for the message. Nullable. */ + public String getConversationId() { + return this._conversationId; + } + /** + * Gets the conversationIndex property value. Indicates the position of the message within the conversation. + * @return a string + */ @javax.annotation.Nullable - public List extensions; + public String getConversationIndex() { + return this._conversationIndex; + } + /** + * Gets the extensions property value. The collection of open extensions defined for the message. Nullable. + * @return a extension + */ @javax.annotation.Nullable - public FollowupFlag flag; + public List getExtensions() { + return this._extensions; + } + /** + * Gets the flag property value. + * @return a followupFlag + */ @javax.annotation.Nullable - public Recipient from; - /** Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . */ + public FollowupFlag getFlag() { + return this._flag; + } + /** + * Gets the from property value. + * @return a recipient + */ @javax.annotation.Nullable - public Boolean hasAttachments; + public Recipient getFrom() { + return this._from; + } + /** + * Gets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . + * @return a boolean + */ @javax.annotation.Nullable - public Importance importance; + public Boolean getHasAttachments() { + return this._hasAttachments; + } + /** + * Gets the importance property value. + * @return a importance + */ @javax.annotation.Nullable - public InferenceClassificationType inferenceClassification; - /** A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. */ + public Importance getImportance() { + return this._importance; + } + /** + * Gets the inferenceClassification property value. + * @return a inferenceClassificationType + */ @javax.annotation.Nullable - public List internetMessageHeaders; - /** The message ID in the format specified by RFC2822. */ + public InferenceClassificationType getInferenceClassification() { + return this._inferenceClassification; + } + /** + * Gets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. + * @return a internetMessageHeader + */ @javax.annotation.Nullable - public String internetMessageId; - /** Indicates whether a read receipt is requested for the message. */ + public List getInternetMessageHeaders() { + return this._internetMessageHeaders; + } + /** + * Gets the internetMessageId property value. The message ID in the format specified by RFC2822. + * @return a string + */ @javax.annotation.Nullable - public Boolean isDeliveryReceiptRequested; - /** Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. */ + public String getInternetMessageId() { + return this._internetMessageId; + } + /** + * Gets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isDraft; - /** Indicates whether the message has been read. */ + public Boolean getIsDeliveryReceiptRequested() { + return this._isDeliveryReceiptRequested; + } + /** + * Gets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isRead; - /** Indicates whether a read receipt is requested for the message. */ + public Boolean getIsDraft() { + return this._isDraft; + } + /** + * Gets the isRead property value. Indicates whether the message has been read. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isReadReceiptRequested; - /** The collection of multi-value extended properties defined for the message. Nullable. */ + public Boolean getIsRead() { + return this._isRead; + } + /** + * Gets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @return a boolean + */ @javax.annotation.Nullable - public List multiValueExtendedProperties; - /** The unique identifier for the message's parent mailFolder. */ + public Boolean getIsReadReceiptRequested() { + return this._isReadReceiptRequested; + } + /** + * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. + * @return a multiValueLegacyExtendedProperty + */ @javax.annotation.Nullable - public String parentFolderId; - /** The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ + public List getMultiValueExtendedProperties() { + return this._multiValueExtendedProperties; + } + /** + * Gets the parentFolderId property value. The unique identifier for the message's parent mailFolder. + * @return a string + */ @javax.annotation.Nullable - public OffsetDateTime receivedDateTime; - /** The email addresses to use when replying. */ + public String getParentFolderId() { + return this._parentFolderId; + } + /** + * Gets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a OffsetDateTime + */ @javax.annotation.Nullable - public List replyTo; + public OffsetDateTime getReceivedDateTime() { + return this._receivedDateTime; + } + /** + * Gets the replyTo property value. The email addresses to use when replying. + * @return a recipient + */ @javax.annotation.Nullable - public Recipient sender; - /** The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ + public List getReplyTo() { + return this._replyTo; + } + /** + * Gets the sender property value. + * @return a recipient + */ @javax.annotation.Nullable - public OffsetDateTime sentDateTime; - /** The collection of single-value extended properties defined for the message. Nullable. */ + public Recipient getSender() { + return this._sender; + } + /** + * Gets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a OffsetDateTime + */ @javax.annotation.Nullable - public List singleValueExtendedProperties; - /** The subject of the message. */ + public OffsetDateTime getSentDateTime() { + return this._sentDateTime; + } + /** + * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. + * @return a singleValueLegacyExtendedProperty + */ @javax.annotation.Nullable - public String subject; - /** The To: recipients for the message. */ + public List getSingleValueExtendedProperties() { + return this._singleValueExtendedProperties; + } + /** + * Gets the subject property value. The subject of the message. + * @return a string + */ + @javax.annotation.Nullable + public String getSubject() { + return this._subject; + } + /** + * Gets the toRecipients property value. The To: recipients for the message. + * @return a recipient + */ @javax.annotation.Nullable - public List toRecipients; + public List getToRecipients() { + return this._toRecipients; + } + /** + * Gets the uniqueBody property value. + * @return a itemBody + */ @javax.annotation.Nullable - public ItemBody uniqueBody; - /** The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. */ + public ItemBody getUniqueBody() { + return this._uniqueBody; + } + /** + * Gets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. + * @return a string + */ @javax.annotation.Nullable - public String webLink; + public String getWebLink() { + return this._webLink; + } /** * The deserialization information for the current model * @return a Map> @@ -100,75 +317,315 @@ public class Message extends OutlookItem implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("attachments", (o, n) -> { ((Message)o).attachments = n.getCollectionOfObjectValues(Attachment.class); }); - this.put("bccRecipients", (o, n) -> { ((Message)o).bccRecipients = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("body", (o, n) -> { ((Message)o).body = n.getObjectValue(ItemBody.class); }); - this.put("bodyPreview", (o, n) -> { ((Message)o).bodyPreview = n.getStringValue(); }); - this.put("ccRecipients", (o, n) -> { ((Message)o).ccRecipients = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("conversationId", (o, n) -> { ((Message)o).conversationId = n.getStringValue(); }); - this.put("conversationIndex", (o, n) -> { ((Message)o).conversationIndex = n.getStringValue(); }); - this.put("extensions", (o, n) -> { ((Message)o).extensions = n.getCollectionOfObjectValues(Extension.class); }); - this.put("flag", (o, n) -> { ((Message)o).flag = n.getObjectValue(FollowupFlag.class); }); - this.put("from", (o, n) -> { ((Message)o).from = n.getObjectValue(Recipient.class); }); - this.put("hasAttachments", (o, n) -> { ((Message)o).hasAttachments = n.getBooleanValue(); }); - this.put("importance", (o, n) -> { ((Message)o).importance = n.getEnumValue(Importance.class); }); - this.put("inferenceClassification", (o, n) -> { ((Message)o).inferenceClassification = n.getEnumValue(InferenceClassificationType.class); }); - this.put("internetMessageHeaders", (o, n) -> { ((Message)o).internetMessageHeaders = n.getCollectionOfObjectValues(InternetMessageHeader.class); }); - this.put("internetMessageId", (o, n) -> { ((Message)o).internetMessageId = n.getStringValue(); }); - this.put("isDeliveryReceiptRequested", (o, n) -> { ((Message)o).isDeliveryReceiptRequested = n.getBooleanValue(); }); - this.put("isDraft", (o, n) -> { ((Message)o).isDraft = n.getBooleanValue(); }); - this.put("isRead", (o, n) -> { ((Message)o).isRead = n.getBooleanValue(); }); - this.put("isReadReceiptRequested", (o, n) -> { ((Message)o).isReadReceiptRequested = n.getBooleanValue(); }); - this.put("multiValueExtendedProperties", (o, n) -> { ((Message)o).multiValueExtendedProperties = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); - this.put("parentFolderId", (o, n) -> { ((Message)o).parentFolderId = n.getStringValue(); }); - this.put("receivedDateTime", (o, n) -> { ((Message)o).receivedDateTime = n.getOffsetDateTimeValue(); }); - this.put("replyTo", (o, n) -> { ((Message)o).replyTo = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("sender", (o, n) -> { ((Message)o).sender = n.getObjectValue(Recipient.class); }); - this.put("sentDateTime", (o, n) -> { ((Message)o).sentDateTime = n.getOffsetDateTimeValue(); }); - this.put("singleValueExtendedProperties", (o, n) -> { ((Message)o).singleValueExtendedProperties = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); - this.put("subject", (o, n) -> { ((Message)o).subject = n.getStringValue(); }); - this.put("toRecipients", (o, n) -> { ((Message)o).toRecipients = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("uniqueBody", (o, n) -> { ((Message)o).uniqueBody = n.getObjectValue(ItemBody.class); }); - this.put("webLink", (o, n) -> { ((Message)o).webLink = n.getStringValue(); }); + this.put("attachments", (o, n) -> { ((Message)o).setAttachments(n.getCollectionOfObjectValues(Attachment.class)); }); + this.put("bccRecipients", (o, n) -> { ((Message)o).setBccRecipients(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("body", (o, n) -> { ((Message)o).setBody(n.getObjectValue(ItemBody.class)); }); + this.put("bodyPreview", (o, n) -> { ((Message)o).setBodyPreview(n.getStringValue()); }); + this.put("ccRecipients", (o, n) -> { ((Message)o).setCcRecipients(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("conversationId", (o, n) -> { ((Message)o).setConversationId(n.getStringValue()); }); + this.put("conversationIndex", (o, n) -> { ((Message)o).setConversationIndex(n.getStringValue()); }); + this.put("extensions", (o, n) -> { ((Message)o).setExtensions(n.getCollectionOfObjectValues(Extension.class)); }); + this.put("flag", (o, n) -> { ((Message)o).setFlag(n.getObjectValue(FollowupFlag.class)); }); + this.put("from", (o, n) -> { ((Message)o).setFrom(n.getObjectValue(Recipient.class)); }); + this.put("hasAttachments", (o, n) -> { ((Message)o).setHasAttachments(n.getBooleanValue()); }); + this.put("importance", (o, n) -> { ((Message)o).setImportance(n.getEnumValue(Importance.class)); }); + this.put("inferenceClassification", (o, n) -> { ((Message)o).setInferenceClassification(n.getEnumValue(InferenceClassificationType.class)); }); + this.put("internetMessageHeaders", (o, n) -> { ((Message)o).setInternetMessageHeaders(n.getCollectionOfObjectValues(InternetMessageHeader.class)); }); + this.put("internetMessageId", (o, n) -> { ((Message)o).setInternetMessageId(n.getStringValue()); }); + this.put("isDeliveryReceiptRequested", (o, n) -> { ((Message)o).setIsDeliveryReceiptRequested(n.getBooleanValue()); }); + this.put("isDraft", (o, n) -> { ((Message)o).setIsDraft(n.getBooleanValue()); }); + this.put("isRead", (o, n) -> { ((Message)o).setIsRead(n.getBooleanValue()); }); + this.put("isReadReceiptRequested", (o, n) -> { ((Message)o).setIsReadReceiptRequested(n.getBooleanValue()); }); + this.put("multiValueExtendedProperties", (o, n) -> { ((Message)o).setMultiValueExtendedProperties(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); + this.put("parentFolderId", (o, n) -> { ((Message)o).setParentFolderId(n.getStringValue()); }); + this.put("receivedDateTime", (o, n) -> { ((Message)o).setReceivedDateTime(n.getOffsetDateTimeValue()); }); + this.put("replyTo", (o, n) -> { ((Message)o).setReplyTo(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("sender", (o, n) -> { ((Message)o).setSender(n.getObjectValue(Recipient.class)); }); + this.put("sentDateTime", (o, n) -> { ((Message)o).setSentDateTime(n.getOffsetDateTimeValue()); }); + this.put("singleValueExtendedProperties", (o, n) -> { ((Message)o).setSingleValueExtendedProperties(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); + this.put("subject", (o, n) -> { ((Message)o).setSubject(n.getStringValue()); }); + this.put("toRecipients", (o, n) -> { ((Message)o).setToRecipients(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("uniqueBody", (o, n) -> { ((Message)o).setUniqueBody(n.getObjectValue(ItemBody.class)); }); + this.put("webLink", (o, n) -> { ((Message)o).setWebLink(n.getStringValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeCollectionOfObjectValues("attachments", attachments); - writer.writeCollectionOfObjectValues("bccRecipients", bccRecipients); - writer.writeObjectValue("body", body); - writer.writeStringValue("bodyPreview", bodyPreview); - writer.writeCollectionOfObjectValues("ccRecipients", ccRecipients); - writer.writeStringValue("conversationId", conversationId); - writer.writeStringValue("conversationIndex", conversationIndex); - writer.writeCollectionOfObjectValues("extensions", extensions); - writer.writeObjectValue("flag", flag); - writer.writeObjectValue("from", from); - writer.writeBooleanValue("hasAttachments", hasAttachments); - writer.writeEnumValue("importance", importance); - writer.writeEnumValue("inferenceClassification", inferenceClassification); - writer.writeCollectionOfObjectValues("internetMessageHeaders", internetMessageHeaders); - writer.writeStringValue("internetMessageId", internetMessageId); - writer.writeBooleanValue("isDeliveryReceiptRequested", isDeliveryReceiptRequested); - writer.writeBooleanValue("isDraft", isDraft); - writer.writeBooleanValue("isRead", isRead); - writer.writeBooleanValue("isReadReceiptRequested", isReadReceiptRequested); - writer.writeCollectionOfObjectValues("multiValueExtendedProperties", multiValueExtendedProperties); - writer.writeStringValue("parentFolderId", parentFolderId); - writer.writeOffsetDateTimeValue("receivedDateTime", receivedDateTime); - writer.writeCollectionOfObjectValues("replyTo", replyTo); - writer.writeObjectValue("sender", sender); - writer.writeOffsetDateTimeValue("sentDateTime", sentDateTime); - writer.writeCollectionOfObjectValues("singleValueExtendedProperties", singleValueExtendedProperties); - writer.writeStringValue("subject", subject); - writer.writeCollectionOfObjectValues("toRecipients", toRecipients); - writer.writeObjectValue("uniqueBody", uniqueBody); - writer.writeStringValue("webLink", webLink); + writer.writeCollectionOfObjectValues("attachments", this.getAttachments()); + writer.writeCollectionOfObjectValues("bccRecipients", this.getBccRecipients()); + writer.writeObjectValue("body", this.getBody()); + writer.writeStringValue("bodyPreview", this.getBodyPreview()); + writer.writeCollectionOfObjectValues("ccRecipients", this.getCcRecipients()); + writer.writeStringValue("conversationId", this.getConversationId()); + writer.writeStringValue("conversationIndex", this.getConversationIndex()); + writer.writeCollectionOfObjectValues("extensions", this.getExtensions()); + writer.writeObjectValue("flag", this.getFlag()); + writer.writeObjectValue("from", this.getFrom()); + writer.writeBooleanValue("hasAttachments", this.getHasAttachments()); + writer.writeEnumValue("importance", this.getImportance()); + writer.writeEnumValue("inferenceClassification", this.getInferenceClassification()); + writer.writeCollectionOfObjectValues("internetMessageHeaders", this.getInternetMessageHeaders()); + writer.writeStringValue("internetMessageId", this.getInternetMessageId()); + writer.writeBooleanValue("isDeliveryReceiptRequested", this.getIsDeliveryReceiptRequested()); + writer.writeBooleanValue("isDraft", this.getIsDraft()); + writer.writeBooleanValue("isRead", this.getIsRead()); + writer.writeBooleanValue("isReadReceiptRequested", this.getIsReadReceiptRequested()); + writer.writeCollectionOfObjectValues("multiValueExtendedProperties", this.getMultiValueExtendedProperties()); + writer.writeStringValue("parentFolderId", this.getParentFolderId()); + writer.writeOffsetDateTimeValue("receivedDateTime", this.getReceivedDateTime()); + writer.writeCollectionOfObjectValues("replyTo", this.getReplyTo()); + writer.writeObjectValue("sender", this.getSender()); + writer.writeOffsetDateTimeValue("sentDateTime", this.getSentDateTime()); + writer.writeCollectionOfObjectValues("singleValueExtendedProperties", this.getSingleValueExtendedProperties()); + writer.writeStringValue("subject", this.getSubject()); + writer.writeCollectionOfObjectValues("toRecipients", this.getToRecipients()); + writer.writeObjectValue("uniqueBody", this.getUniqueBody()); + writer.writeStringValue("webLink", this.getWebLink()); + } + /** + * Sets the attachments property value. The fileAttachment and itemAttachment attachments for the message. + * @param value Value to set for the attachments property. + * @return a void + */ + public void setAttachments(@javax.annotation.Nullable final List value) { + this._attachments = value; + } + /** + * Sets the bccRecipients property value. The Bcc: recipients for the message. + * @param value Value to set for the bccRecipients property. + * @return a void + */ + public void setBccRecipients(@javax.annotation.Nullable final List value) { + this._bccRecipients = value; + } + /** + * Sets the body property value. + * @param value Value to set for the body property. + * @return a void + */ + public void setBody(@javax.annotation.Nullable final ItemBody value) { + this._body = value; + } + /** + * Sets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. + * @param value Value to set for the bodyPreview property. + * @return a void + */ + public void setBodyPreview(@javax.annotation.Nullable final String value) { + this._bodyPreview = value; + } + /** + * Sets the ccRecipients property value. The Cc: recipients for the message. + * @param value Value to set for the ccRecipients property. + * @return a void + */ + public void setCcRecipients(@javax.annotation.Nullable final List value) { + this._ccRecipients = value; + } + /** + * Sets the conversationId property value. The ID of the conversation the email belongs to. + * @param value Value to set for the conversationId property. + * @return a void + */ + public void setConversationId(@javax.annotation.Nullable final String value) { + this._conversationId = value; + } + /** + * Sets the conversationIndex property value. Indicates the position of the message within the conversation. + * @param value Value to set for the conversationIndex property. + * @return a void + */ + public void setConversationIndex(@javax.annotation.Nullable final String value) { + this._conversationIndex = value; + } + /** + * Sets the extensions property value. The collection of open extensions defined for the message. Nullable. + * @param value Value to set for the extensions property. + * @return a void + */ + public void setExtensions(@javax.annotation.Nullable final List value) { + this._extensions = value; + } + /** + * Sets the flag property value. + * @param value Value to set for the flag property. + * @return a void + */ + public void setFlag(@javax.annotation.Nullable final FollowupFlag value) { + this._flag = value; + } + /** + * Sets the from property value. + * @param value Value to set for the from property. + * @return a void + */ + public void setFrom(@javax.annotation.Nullable final Recipient value) { + this._from = value; + } + /** + * Sets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . + * @param value Value to set for the hasAttachments property. + * @return a void + */ + public void setHasAttachments(@javax.annotation.Nullable final Boolean value) { + this._hasAttachments = value; + } + /** + * Sets the importance property value. + * @param value Value to set for the importance property. + * @return a void + */ + public void setImportance(@javax.annotation.Nullable final Importance value) { + this._importance = value; + } + /** + * Sets the inferenceClassification property value. + * @param value Value to set for the inferenceClassification property. + * @return a void + */ + public void setInferenceClassification(@javax.annotation.Nullable final InferenceClassificationType value) { + this._inferenceClassification = value; + } + /** + * Sets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. + * @param value Value to set for the internetMessageHeaders property. + * @return a void + */ + public void setInternetMessageHeaders(@javax.annotation.Nullable final List value) { + this._internetMessageHeaders = value; + } + /** + * Sets the internetMessageId property value. The message ID in the format specified by RFC2822. + * @param value Value to set for the internetMessageId property. + * @return a void + */ + public void setInternetMessageId(@javax.annotation.Nullable final String value) { + this._internetMessageId = value; + } + /** + * Sets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @param value Value to set for the isDeliveryReceiptRequested property. + * @return a void + */ + public void setIsDeliveryReceiptRequested(@javax.annotation.Nullable final Boolean value) { + this._isDeliveryReceiptRequested = value; + } + /** + * Sets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. + * @param value Value to set for the isDraft property. + * @return a void + */ + public void setIsDraft(@javax.annotation.Nullable final Boolean value) { + this._isDraft = value; + } + /** + * Sets the isRead property value. Indicates whether the message has been read. + * @param value Value to set for the isRead property. + * @return a void + */ + public void setIsRead(@javax.annotation.Nullable final Boolean value) { + this._isRead = value; + } + /** + * Sets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @param value Value to set for the isReadReceiptRequested property. + * @return a void + */ + public void setIsReadReceiptRequested(@javax.annotation.Nullable final Boolean value) { + this._isReadReceiptRequested = value; + } + /** + * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. + * @param value Value to set for the multiValueExtendedProperties property. + * @return a void + */ + public void setMultiValueExtendedProperties(@javax.annotation.Nullable final List value) { + this._multiValueExtendedProperties = value; + } + /** + * Sets the parentFolderId property value. The unique identifier for the message's parent mailFolder. + * @param value Value to set for the parentFolderId property. + * @return a void + */ + public void setParentFolderId(@javax.annotation.Nullable final String value) { + this._parentFolderId = value; + } + /** + * Sets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the receivedDateTime property. + * @return a void + */ + public void setReceivedDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._receivedDateTime = value; + } + /** + * Sets the replyTo property value. The email addresses to use when replying. + * @param value Value to set for the replyTo property. + * @return a void + */ + public void setReplyTo(@javax.annotation.Nullable final List value) { + this._replyTo = value; + } + /** + * Sets the sender property value. + * @param value Value to set for the sender property. + * @return a void + */ + public void setSender(@javax.annotation.Nullable final Recipient value) { + this._sender = value; + } + /** + * Sets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the sentDateTime property. + * @return a void + */ + public void setSentDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._sentDateTime = value; + } + /** + * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. + * @param value Value to set for the singleValueExtendedProperties property. + * @return a void + */ + public void setSingleValueExtendedProperties(@javax.annotation.Nullable final List value) { + this._singleValueExtendedProperties = value; + } + /** + * Sets the subject property value. The subject of the message. + * @param value Value to set for the subject property. + * @return a void + */ + public void setSubject(@javax.annotation.Nullable final String value) { + this._subject = value; + } + /** + * Sets the toRecipients property value. The To: recipients for the message. + * @param value Value to set for the toRecipients property. + * @return a void + */ + public void setToRecipients(@javax.annotation.Nullable final List value) { + this._toRecipients = value; + } + /** + * Sets the uniqueBody property value. + * @param value Value to set for the uniqueBody property. + * @return a void + */ + public void setUniqueBody(@javax.annotation.Nullable final ItemBody value) { + this._uniqueBody = value; + } + /** + * Sets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. + * @param value Value to set for the webLink property. + * @return a void + */ + public void setWebLink(@javax.annotation.Nullable final String value) { + this._webLink = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java index cbabbf4b8..28641d8c6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java @@ -10,27 +10,90 @@ import java.util.Map; import java.util.Objects; public class MessageRule extends Entity implements Parsable { + private MessageRuleActions _actions; + private MessageRulePredicates _conditions; + /** The display name of the rule. */ + private String _displayName; + private MessageRulePredicates _exceptions; + /** Indicates whether the rule is in an error condition. Read-only. */ + private Boolean _hasError; + /** Indicates whether the rule is enabled to be applied to messages. */ + private Boolean _isEnabled; + /** Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. */ + private Boolean _isReadOnly; + /** Indicates the order in which the rule is executed, among other rules. */ + private Integer _sequence; + /** + * Instantiates a new messageRule and sets the default values. + * @return a void + */ + public MessageRule() { + super(); + } + /** + * Gets the actions property value. + * @return a messageRuleActions + */ @javax.annotation.Nullable - public MessageRuleActions actions; + public MessageRuleActions getActions() { + return this._actions; + } + /** + * Gets the conditions property value. + * @return a messageRulePredicates + */ @javax.annotation.Nullable - public MessageRulePredicates conditions; - /** The display name of the rule. */ + public MessageRulePredicates getConditions() { + return this._conditions; + } + /** + * Gets the displayName property value. The display name of the rule. + * @return a string + */ @javax.annotation.Nullable - public String displayName; + public String getDisplayName() { + return this._displayName; + } + /** + * Gets the exceptions property value. + * @return a messageRulePredicates + */ @javax.annotation.Nullable - public MessageRulePredicates exceptions; - /** Indicates whether the rule is in an error condition. Read-only. */ + public MessageRulePredicates getExceptions() { + return this._exceptions; + } + /** + * Gets the hasError property value. Indicates whether the rule is in an error condition. Read-only. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean hasError; - /** Indicates whether the rule is enabled to be applied to messages. */ + public Boolean getHasError() { + return this._hasError; + } + /** + * Gets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isEnabled; - /** Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. */ + public Boolean getIsEnabled() { + return this._isEnabled; + } + /** + * Gets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isReadOnly; - /** Indicates the order in which the rule is executed, among other rules. */ + public Boolean getIsReadOnly() { + return this._isReadOnly; + } + /** + * Gets the sequence property value. Indicates the order in which the rule is executed, among other rules. + * @return a integer + */ @javax.annotation.Nullable - public Integer sequence; + public Integer getSequence() { + return this._sequence; + } /** * The deserialization information for the current model * @return a Map> @@ -38,31 +101,95 @@ public class MessageRule extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("actions", (o, n) -> { ((MessageRule)o).actions = n.getObjectValue(MessageRuleActions.class); }); - this.put("conditions", (o, n) -> { ((MessageRule)o).conditions = n.getObjectValue(MessageRulePredicates.class); }); - this.put("displayName", (o, n) -> { ((MessageRule)o).displayName = n.getStringValue(); }); - this.put("exceptions", (o, n) -> { ((MessageRule)o).exceptions = n.getObjectValue(MessageRulePredicates.class); }); - this.put("hasError", (o, n) -> { ((MessageRule)o).hasError = n.getBooleanValue(); }); - this.put("isEnabled", (o, n) -> { ((MessageRule)o).isEnabled = n.getBooleanValue(); }); - this.put("isReadOnly", (o, n) -> { ((MessageRule)o).isReadOnly = n.getBooleanValue(); }); - this.put("sequence", (o, n) -> { ((MessageRule)o).sequence = n.getIntegerValue(); }); + this.put("actions", (o, n) -> { ((MessageRule)o).setActions(n.getObjectValue(MessageRuleActions.class)); }); + this.put("conditions", (o, n) -> { ((MessageRule)o).setConditions(n.getObjectValue(MessageRulePredicates.class)); }); + this.put("displayName", (o, n) -> { ((MessageRule)o).setDisplayName(n.getStringValue()); }); + this.put("exceptions", (o, n) -> { ((MessageRule)o).setExceptions(n.getObjectValue(MessageRulePredicates.class)); }); + this.put("hasError", (o, n) -> { ((MessageRule)o).setHasError(n.getBooleanValue()); }); + this.put("isEnabled", (o, n) -> { ((MessageRule)o).setIsEnabled(n.getBooleanValue()); }); + this.put("isReadOnly", (o, n) -> { ((MessageRule)o).setIsReadOnly(n.getBooleanValue()); }); + this.put("sequence", (o, n) -> { ((MessageRule)o).setSequence(n.getIntegerValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeObjectValue("actions", actions); - writer.writeObjectValue("conditions", conditions); - writer.writeStringValue("displayName", displayName); - writer.writeObjectValue("exceptions", exceptions); - writer.writeBooleanValue("hasError", hasError); - writer.writeBooleanValue("isEnabled", isEnabled); - writer.writeBooleanValue("isReadOnly", isReadOnly); - writer.writeIntegerValue("sequence", sequence); + writer.writeObjectValue("actions", this.getActions()); + writer.writeObjectValue("conditions", this.getConditions()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeObjectValue("exceptions", this.getExceptions()); + writer.writeBooleanValue("hasError", this.getHasError()); + writer.writeBooleanValue("isEnabled", this.getIsEnabled()); + writer.writeBooleanValue("isReadOnly", this.getIsReadOnly()); + writer.writeIntegerValue("sequence", this.getSequence()); + } + /** + * Sets the actions property value. + * @param value Value to set for the actions property. + * @return a void + */ + public void setActions(@javax.annotation.Nullable final MessageRuleActions value) { + this._actions = value; + } + /** + * Sets the conditions property value. + * @param value Value to set for the conditions property. + * @return a void + */ + public void setConditions(@javax.annotation.Nullable final MessageRulePredicates value) { + this._conditions = value; + } + /** + * Sets the displayName property value. The display name of the rule. + * @param value Value to set for the displayName property. + * @return a void + */ + public void setDisplayName(@javax.annotation.Nullable final String value) { + this._displayName = value; + } + /** + * Sets the exceptions property value. + * @param value Value to set for the exceptions property. + * @return a void + */ + public void setExceptions(@javax.annotation.Nullable final MessageRulePredicates value) { + this._exceptions = value; + } + /** + * Sets the hasError property value. Indicates whether the rule is in an error condition. Read-only. + * @param value Value to set for the hasError property. + * @return a void + */ + public void setHasError(@javax.annotation.Nullable final Boolean value) { + this._hasError = value; + } + /** + * Sets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. + * @param value Value to set for the isEnabled property. + * @return a void + */ + public void setIsEnabled(@javax.annotation.Nullable final Boolean value) { + this._isEnabled = value; + } + /** + * Sets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. + * @param value Value to set for the isReadOnly property. + * @return a void + */ + public void setIsReadOnly(@javax.annotation.Nullable final Boolean value) { + this._isReadOnly = value; + } + /** + * Sets the sequence property value. Indicates the order in which the rule is executed, among other rules. + * @param value Value to set for the sequence property. + * @return a void + */ + public void setSequence(@javax.annotation.Nullable final Integer value) { + this._sequence = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java index 910ccd37b..959a962d6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java @@ -10,8 +10,22 @@ import java.util.Objects; public class MultiValueLegacyExtendedProperty extends Entity implements Parsable { /** A collection of property values. */ + private List _value; + /** + * Instantiates a new multiValueLegacyExtendedProperty and sets the default values. + * @return a void + */ + public MultiValueLegacyExtendedProperty() { + super(); + } + /** + * Gets the value property value. A collection of property values. + * @return a string + */ @javax.annotation.Nullable - public List value; + public List getValue() { + return this._value; + } /** * The deserialization information for the current model * @return a Map> @@ -19,17 +33,25 @@ public class MultiValueLegacyExtendedProperty extends Entity implements Parsable @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("value", (o, n) -> { ((MultiValueLegacyExtendedProperty)o).value = n.getCollectionOfPrimitiveValues(String.class); }); + this.put("value", (o, n) -> { ((MultiValueLegacyExtendedProperty)o).setValue(n.getCollectionOfPrimitiveValues(String.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeCollectionOfPrimitiveValues("value", value); + writer.writeCollectionOfPrimitiveValues("value", this.getValue()); + } + /** + * Sets the value property value. A collection of property values. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java index 52733f25f..0f4174ad9 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java @@ -11,17 +11,52 @@ import java.util.Objects; public class OutlookItem extends Entity implements Parsable { /** The categories associated with the item */ - @javax.annotation.Nullable - public List categories; + private List _categories; /** Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. */ - @javax.annotation.Nullable - public String changeKey; + private String _changeKey; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - @javax.annotation.Nullable - public OffsetDateTime createdDateTime; + private OffsetDateTime _createdDateTime; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ + private OffsetDateTime _lastModifiedDateTime; + /** + * Instantiates a new outlookItem and sets the default values. + * @return a void + */ + public OutlookItem() { + super(); + } + /** + * Gets the categories property value. The categories associated with the item + * @return a string + */ + @javax.annotation.Nullable + public List getCategories() { + return this._categories; + } + /** + * Gets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. + * @return a string + */ + @javax.annotation.Nullable + public String getChangeKey() { + return this._changeKey; + } + /** + * Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @return a OffsetDateTime + */ + @javax.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this._createdDateTime; + } + /** + * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @return a OffsetDateTime + */ @javax.annotation.Nullable - public OffsetDateTime lastModifiedDateTime; + public OffsetDateTime getLastModifiedDateTime() { + return this._lastModifiedDateTime; + } /** * The deserialization information for the current model * @return a Map> @@ -29,23 +64,55 @@ public class OutlookItem extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("categories", (o, n) -> { ((OutlookItem)o).categories = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("changeKey", (o, n) -> { ((OutlookItem)o).changeKey = n.getStringValue(); }); - this.put("createdDateTime", (o, n) -> { ((OutlookItem)o).createdDateTime = n.getOffsetDateTimeValue(); }); - this.put("lastModifiedDateTime", (o, n) -> { ((OutlookItem)o).lastModifiedDateTime = n.getOffsetDateTimeValue(); }); + this.put("categories", (o, n) -> { ((OutlookItem)o).setCategories(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("changeKey", (o, n) -> { ((OutlookItem)o).setChangeKey(n.getStringValue()); }); + this.put("createdDateTime", (o, n) -> { ((OutlookItem)o).setCreatedDateTime(n.getOffsetDateTimeValue()); }); + this.put("lastModifiedDateTime", (o, n) -> { ((OutlookItem)o).setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeCollectionOfPrimitiveValues("categories", categories); - writer.writeStringValue("changeKey", changeKey); - writer.writeOffsetDateTimeValue("createdDateTime", createdDateTime); - writer.writeOffsetDateTimeValue("lastModifiedDateTime", lastModifiedDateTime); + writer.writeCollectionOfPrimitiveValues("categories", this.getCategories()); + writer.writeStringValue("changeKey", this.getChangeKey()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + } + /** + * Sets the categories property value. The categories associated with the item + * @param value Value to set for the categories property. + * @return a void + */ + public void setCategories(@javax.annotation.Nullable final List value) { + this._categories = value; + } + /** + * Sets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. + * @param value Value to set for the changeKey property. + * @return a void + */ + public void setChangeKey(@javax.annotation.Nullable final String value) { + this._changeKey = value; + } + /** + * Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the createdDateTime property. + * @return a void + */ + public void setCreatedDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._createdDateTime = value; + } + /** + * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the lastModifiedDateTime property. + * @return a void + */ + public void setLastModifiedDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._lastModifiedDateTime = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java index 1360721da..dc3b046b1 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java @@ -9,17 +9,30 @@ import java.util.Objects; public class Recipient implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public EmailAddress emailAddress; + private Map _additionalData; + private EmailAddress _emailAddress; /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Instantiates a new recipient and sets the default values. + * @return a void + */ + public Recipient() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the emailAddress property value. + * @return a emailAddress + */ + @javax.annotation.Nullable + public EmailAddress getEmailAddress() { + return this._emailAddress; } /** * The deserialization information for the current model @@ -28,17 +41,33 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(1) {{ - this.put("emailAddress", (o, n) -> { ((Recipient)o).emailAddress = n.getObjectValue(EmailAddress.class); }); + this.put("emailAddress", (o, n) -> { ((Recipient)o).setEmailAddress(n.getObjectValue(EmailAddress.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeObjectValue("emailAddress", emailAddress); - writer.writeAdditionalData(this.additionalData); + writer.writeObjectValue("emailAddress", this.getEmailAddress()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the emailAddress property value. + * @param value Value to set for the emailAddress property. + * @return a void + */ + public void setEmailAddress(@javax.annotation.Nullable final EmailAddress value) { + this._emailAddress = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java index cfa6266f5..b1be93a15 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java @@ -9,8 +9,22 @@ import java.util.Objects; public class SingleValueLegacyExtendedProperty extends Entity implements Parsable { /** A property value. */ + private String _value; + /** + * Instantiates a new singleValueLegacyExtendedProperty and sets the default values. + * @return a void + */ + public SingleValueLegacyExtendedProperty() { + super(); + } + /** + * Gets the value property value. A property value. + * @return a string + */ @javax.annotation.Nullable - public String value; + public String getValue() { + return this._value; + } /** * The deserialization information for the current model * @return a Map> @@ -18,17 +32,25 @@ public class SingleValueLegacyExtendedProperty extends Entity implements Parsabl @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("value", (o, n) -> { ((SingleValueLegacyExtendedProperty)o).value = n.getStringValue(); }); + this.put("value", (o, n) -> { ((SingleValueLegacyExtendedProperty)o).setValue(n.getStringValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeStringValue("value", value); + writer.writeStringValue("value", this.getValue()); + } + /** + * Sets the value property value. A property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final String value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/UsersRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/UsersRequestBuilder.java index 5e93df568..8a78fb2b6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/UsersRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/UsersRequestBuilder.java @@ -21,9 +21,15 @@ public class UsersRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/users"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new UsersRequestBuilder and sets the default values. + * @return a void + */ + public UsersRequestBuilder() { + this.pathSegment = "/users"; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java index 2a70b999c..7c15042f0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java @@ -11,8 +11,22 @@ import java.util.Objects; public class InferenceClassification extends Entity implements Parsable { /** A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. */ + private List _overrides; + /** + * Instantiates a new InferenceClassification and sets the default values. + * @return a void + */ + public InferenceClassification() { + super(); + } + /** + * Gets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. + * @return a inferenceClassificationOverride + */ @javax.annotation.Nullable - public List overrides; + public List getOverrides() { + return this._overrides; + } /** * The deserialization information for the current model * @return a Map> @@ -20,17 +34,25 @@ public class InferenceClassification extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("overrides", (o, n) -> { ((InferenceClassification)o).overrides = n.getCollectionOfObjectValues(InferenceClassificationOverride.class); }); + this.put("overrides", (o, n) -> { ((InferenceClassification)o).setOverrides(n.getCollectionOfObjectValues(InferenceClassificationOverride.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeCollectionOfObjectValues("overrides", overrides); + writer.writeCollectionOfObjectValues("overrides", this.getOverrides()); + } + /** + * Sets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. + * @param value Value to set for the overrides property. + * @return a void + */ + public void setOverrides(@javax.annotation.Nullable final List value) { + this._overrides = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java index 3f088bb43..516f62a2c 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java @@ -11,10 +11,31 @@ import java.util.Map; import java.util.Objects; public class InferenceClassificationOverride extends Entity implements Parsable { + private InferenceClassificationType _classifyAs; + private EmailAddress _senderEmailAddress; + /** + * Instantiates a new inferenceClassificationOverride and sets the default values. + * @return a void + */ + public InferenceClassificationOverride() { + super(); + } + /** + * Gets the classifyAs property value. + * @return a inferenceClassificationType + */ @javax.annotation.Nullable - public InferenceClassificationType classifyAs; + public InferenceClassificationType getClassifyAs() { + return this._classifyAs; + } + /** + * Gets the senderEmailAddress property value. + * @return a emailAddress + */ @javax.annotation.Nullable - public EmailAddress senderEmailAddress; + public EmailAddress getSenderEmailAddress() { + return this._senderEmailAddress; + } /** * The deserialization information for the current model * @return a Map> @@ -22,19 +43,35 @@ public class InferenceClassificationOverride extends Entity implements Parsable @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("classifyAs", (o, n) -> { ((InferenceClassificationOverride)o).classifyAs = n.getEnumValue(InferenceClassificationType.class); }); - this.put("senderEmailAddress", (o, n) -> { ((InferenceClassificationOverride)o).senderEmailAddress = n.getObjectValue(EmailAddress.class); }); + this.put("classifyAs", (o, n) -> { ((InferenceClassificationOverride)o).setClassifyAs(n.getEnumValue(InferenceClassificationType.class)); }); + this.put("senderEmailAddress", (o, n) -> { ((InferenceClassificationOverride)o).setSenderEmailAddress(n.getObjectValue(EmailAddress.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeEnumValue("classifyAs", classifyAs); - writer.writeObjectValue("senderEmailAddress", senderEmailAddress); + writer.writeEnumValue("classifyAs", this.getClassifyAs()); + writer.writeObjectValue("senderEmailAddress", this.getSenderEmailAddress()); + } + /** + * Sets the classifyAs property value. + * @param value Value to set for the classifyAs property. + * @return a void + */ + public void setClassifyAs(@javax.annotation.Nullable final InferenceClassificationType value) { + this._classifyAs = value; + } + /** + * Sets the senderEmailAddress property value. + * @param value Value to set for the senderEmailAddress property. + * @return a void + */ + public void setSenderEmailAddress(@javax.annotation.Nullable final EmailAddress value) { + this._senderEmailAddress = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java index 80d8f7444..52fd5cd3d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java @@ -31,11 +31,17 @@ public OverridesRequestBuilder overrides() { return new OverridesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/inferenceClassification"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new InferenceClassificationRequestBuilder and sets the default values. + * @return a void + */ + public InferenceClassificationRequestBuilder() { + this.pathSegment = "/inferenceClassification"; + } /** * Delete navigation property inferenceClassification for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java index a429b0303..beb563359 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java @@ -23,11 +23,17 @@ public class OverridesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/overrides"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new OverridesRequestBuilder and sets the default values. + * @return a void + */ + public OverridesRequestBuilder() { + this.pathSegment = "/overrides"; + } /** * Get overrides from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java index dde69cc3e..2fa670bd7 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class OverridesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new OverridesResponse and sets the default values. + * @return a void + */ + public OverridesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a inferenceClassificationOverride + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((OverridesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((OverridesResponse)o).value = n.getCollectionOfObjectValues(InferenceClassificationOverride.class); }); + this.put("@odata.nextLink", (o, n) -> { ((OverridesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((OverridesResponse)o).setValue(n.getCollectionOfObjectValues(InferenceClassificationOverride.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java index 841cc3a4a..281c06bfd 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java @@ -23,11 +23,17 @@ public class InferenceClassificationOverrideRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new InferenceClassificationOverrideRequestBuilder and sets the default values. + * @return a void + */ + public InferenceClassificationOverrideRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property overrides for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/item/UserRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/item/UserRequestBuilder.java index 94cae22c6..4dbc671b2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/item/UserRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/item/UserRequestBuilder.java @@ -48,11 +48,17 @@ public MessagesRequestBuilder messages() { return new MessagesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new UserRequestBuilder and sets the default values. + * @return a void + */ + public UserRequestBuilder() { + this.pathSegment = ""; + } /** * Gets an item from the graphjavav4.utilities.users.mailFolders collection * @param id Unique identifier of the item diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java index e51790550..dec9ec5f3 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java @@ -23,11 +23,17 @@ public class MailFoldersRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/mailFolders"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MailFoldersRequestBuilder and sets the default values. + * @return a void + */ + public MailFoldersRequestBuilder() { + this.pathSegment = "/mailFolders"; + } /** * Get mailFolders from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java index 0ef3f9519..885e368c2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MailFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MailFoldersResponse and sets the default values. + * @return a void + */ + public MailFoldersResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a mailFolder + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MailFoldersResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MailFoldersResponse)o).value = n.getCollectionOfObjectValues(MailFolder.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MailFoldersResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MailFoldersResponse)o).setValue(n.getCollectionOfObjectValues(MailFolder.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java index d9c684ea0..2ec603293 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java @@ -12,47 +12,130 @@ import java.util.Objects; public class MessageRuleActions implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map _additionalData; /** A list of categories to be assigned to a message. */ - @javax.annotation.Nullable - public List assignCategories; + private List _assignCategories; /** The ID of a folder that a message is to be copied to. */ - @javax.annotation.Nullable - public String copyToFolder; + private String _copyToFolder; /** Indicates whether a message should be moved to the Deleted Items folder. */ - @javax.annotation.Nullable - public Boolean delete; + private Boolean _delete; /** The email addresses of the recipients to which a message should be forwarded as an attachment. */ - @javax.annotation.Nullable - public List forwardAsAttachmentTo; + private List _forwardAsAttachmentTo; /** The email addresses of the recipients to which a message should be forwarded. */ - @javax.annotation.Nullable - public List forwardTo; + private List _forwardTo; /** Indicates whether a message should be marked as read. */ - @javax.annotation.Nullable - public Boolean markAsRead; - @javax.annotation.Nullable - public Importance markImportance; + private Boolean _markAsRead; + private Importance _markImportance; /** The ID of the folder that a message will be moved to. */ - @javax.annotation.Nullable - public String moveToFolder; + private String _moveToFolder; /** Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. */ - @javax.annotation.Nullable - public Boolean permanentDelete; + private Boolean _permanentDelete; /** The email address to which a message should be redirected. */ - @javax.annotation.Nullable - public List redirectTo; + private List _redirectTo; /** Indicates whether subsequent rules should be evaluated. */ - @javax.annotation.Nullable - public Boolean stopProcessingRules; + private Boolean _stopProcessingRules; /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Instantiates a new messageRuleActions and sets the default values. + * @return a void + */ + public MessageRuleActions() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the assignCategories property value. A list of categories to be assigned to a message. + * @return a string + */ + @javax.annotation.Nullable + public List getAssignCategories() { + return this._assignCategories; + } + /** + * Gets the copyToFolder property value. The ID of a folder that a message is to be copied to. + * @return a string + */ + @javax.annotation.Nullable + public String getCopyToFolder() { + return this._copyToFolder; + } + /** + * Gets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getDelete() { + return this._delete; + } + /** + * Gets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. + * @return a recipient + */ + @javax.annotation.Nullable + public List getForwardAsAttachmentTo() { + return this._forwardAsAttachmentTo; + } + /** + * Gets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. + * @return a recipient + */ + @javax.annotation.Nullable + public List getForwardTo() { + return this._forwardTo; + } + /** + * Gets the markAsRead property value. Indicates whether a message should be marked as read. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getMarkAsRead() { + return this._markAsRead; + } + /** + * Gets the markImportance property value. + * @return a importance + */ + @javax.annotation.Nullable + public Importance getMarkImportance() { + return this._markImportance; + } + /** + * Gets the moveToFolder property value. The ID of the folder that a message will be moved to. + * @return a string + */ + @javax.annotation.Nullable + public String getMoveToFolder() { + return this._moveToFolder; + } + /** + * Gets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getPermanentDelete() { + return this._permanentDelete; + } + /** + * Gets the redirectTo property value. The email address to which a message should be redirected. + * @return a recipient + */ + @javax.annotation.Nullable + public List getRedirectTo() { + return this._redirectTo; + } + /** + * Gets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getStopProcessingRules() { + return this._stopProcessingRules; } /** * The deserialization information for the current model @@ -61,37 +144,133 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(11) {{ - this.put("assignCategories", (o, n) -> { ((MessageRuleActions)o).assignCategories = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("copyToFolder", (o, n) -> { ((MessageRuleActions)o).copyToFolder = n.getStringValue(); }); - this.put("delete", (o, n) -> { ((MessageRuleActions)o).delete = n.getBooleanValue(); }); - this.put("forwardAsAttachmentTo", (o, n) -> { ((MessageRuleActions)o).forwardAsAttachmentTo = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("forwardTo", (o, n) -> { ((MessageRuleActions)o).forwardTo = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("markAsRead", (o, n) -> { ((MessageRuleActions)o).markAsRead = n.getBooleanValue(); }); - this.put("markImportance", (o, n) -> { ((MessageRuleActions)o).markImportance = n.getEnumValue(Importance.class); }); - this.put("moveToFolder", (o, n) -> { ((MessageRuleActions)o).moveToFolder = n.getStringValue(); }); - this.put("permanentDelete", (o, n) -> { ((MessageRuleActions)o).permanentDelete = n.getBooleanValue(); }); - this.put("redirectTo", (o, n) -> { ((MessageRuleActions)o).redirectTo = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("stopProcessingRules", (o, n) -> { ((MessageRuleActions)o).stopProcessingRules = n.getBooleanValue(); }); + this.put("assignCategories", (o, n) -> { ((MessageRuleActions)o).setAssignCategories(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("copyToFolder", (o, n) -> { ((MessageRuleActions)o).setCopyToFolder(n.getStringValue()); }); + this.put("delete", (o, n) -> { ((MessageRuleActions)o).setDelete(n.getBooleanValue()); }); + this.put("forwardAsAttachmentTo", (o, n) -> { ((MessageRuleActions)o).setForwardAsAttachmentTo(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("forwardTo", (o, n) -> { ((MessageRuleActions)o).setForwardTo(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("markAsRead", (o, n) -> { ((MessageRuleActions)o).setMarkAsRead(n.getBooleanValue()); }); + this.put("markImportance", (o, n) -> { ((MessageRuleActions)o).setMarkImportance(n.getEnumValue(Importance.class)); }); + this.put("moveToFolder", (o, n) -> { ((MessageRuleActions)o).setMoveToFolder(n.getStringValue()); }); + this.put("permanentDelete", (o, n) -> { ((MessageRuleActions)o).setPermanentDelete(n.getBooleanValue()); }); + this.put("redirectTo", (o, n) -> { ((MessageRuleActions)o).setRedirectTo(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("stopProcessingRules", (o, n) -> { ((MessageRuleActions)o).setStopProcessingRules(n.getBooleanValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeCollectionOfPrimitiveValues("assignCategories", assignCategories); - writer.writeStringValue("copyToFolder", copyToFolder); - writer.writeBooleanValue("delete", delete); - writer.writeCollectionOfObjectValues("forwardAsAttachmentTo", forwardAsAttachmentTo); - writer.writeCollectionOfObjectValues("forwardTo", forwardTo); - writer.writeBooleanValue("markAsRead", markAsRead); - writer.writeEnumValue("markImportance", markImportance); - writer.writeStringValue("moveToFolder", moveToFolder); - writer.writeBooleanValue("permanentDelete", permanentDelete); - writer.writeCollectionOfObjectValues("redirectTo", redirectTo); - writer.writeBooleanValue("stopProcessingRules", stopProcessingRules); - writer.writeAdditionalData(this.additionalData); + writer.writeCollectionOfPrimitiveValues("assignCategories", this.getAssignCategories()); + writer.writeStringValue("copyToFolder", this.getCopyToFolder()); + writer.writeBooleanValue("delete", this.getDelete()); + writer.writeCollectionOfObjectValues("forwardAsAttachmentTo", this.getForwardAsAttachmentTo()); + writer.writeCollectionOfObjectValues("forwardTo", this.getForwardTo()); + writer.writeBooleanValue("markAsRead", this.getMarkAsRead()); + writer.writeEnumValue("markImportance", this.getMarkImportance()); + writer.writeStringValue("moveToFolder", this.getMoveToFolder()); + writer.writeBooleanValue("permanentDelete", this.getPermanentDelete()); + writer.writeCollectionOfObjectValues("redirectTo", this.getRedirectTo()); + writer.writeBooleanValue("stopProcessingRules", this.getStopProcessingRules()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the assignCategories property value. A list of categories to be assigned to a message. + * @param value Value to set for the assignCategories property. + * @return a void + */ + public void setAssignCategories(@javax.annotation.Nullable final List value) { + this._assignCategories = value; + } + /** + * Sets the copyToFolder property value. The ID of a folder that a message is to be copied to. + * @param value Value to set for the copyToFolder property. + * @return a void + */ + public void setCopyToFolder(@javax.annotation.Nullable final String value) { + this._copyToFolder = value; + } + /** + * Sets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. + * @param value Value to set for the delete property. + * @return a void + */ + public void setDelete(@javax.annotation.Nullable final Boolean value) { + this._delete = value; + } + /** + * Sets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. + * @param value Value to set for the forwardAsAttachmentTo property. + * @return a void + */ + public void setForwardAsAttachmentTo(@javax.annotation.Nullable final List value) { + this._forwardAsAttachmentTo = value; + } + /** + * Sets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. + * @param value Value to set for the forwardTo property. + * @return a void + */ + public void setForwardTo(@javax.annotation.Nullable final List value) { + this._forwardTo = value; + } + /** + * Sets the markAsRead property value. Indicates whether a message should be marked as read. + * @param value Value to set for the markAsRead property. + * @return a void + */ + public void setMarkAsRead(@javax.annotation.Nullable final Boolean value) { + this._markAsRead = value; + } + /** + * Sets the markImportance property value. + * @param value Value to set for the markImportance property. + * @return a void + */ + public void setMarkImportance(@javax.annotation.Nullable final Importance value) { + this._markImportance = value; + } + /** + * Sets the moveToFolder property value. The ID of the folder that a message will be moved to. + * @param value Value to set for the moveToFolder property. + * @return a void + */ + public void setMoveToFolder(@javax.annotation.Nullable final String value) { + this._moveToFolder = value; + } + /** + * Sets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. + * @param value Value to set for the permanentDelete property. + * @return a void + */ + public void setPermanentDelete(@javax.annotation.Nullable final Boolean value) { + this._permanentDelete = value; + } + /** + * Sets the redirectTo property value. The email address to which a message should be redirected. + * @param value Value to set for the redirectTo property. + * @return a void + */ + public void setRedirectTo(@javax.annotation.Nullable final List value) { + this._redirectTo = value; + } + /** + * Sets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. + * @param value Value to set for the stopProcessingRules property. + * @return a void + */ + public void setStopProcessingRules(@javax.annotation.Nullable final Boolean value) { + this._stopProcessingRules = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java index 21c201666..c07a78871 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java @@ -12,101 +12,317 @@ import java.util.Objects; public class MessageRulePredicates implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map _additionalData; /** Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public List bodyContains; + private List _bodyContains; /** Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public List bodyOrSubjectContains; + private List _bodyOrSubjectContains; /** Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public List categories; + private List _categories; /** Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public List fromAddresses; + private List _fromAddresses; /** Indicates whether an incoming message must have attachments in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public Boolean hasAttachments; + private Boolean _hasAttachments; /** Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. */ + private List _headerContains; + private Importance _importance; + /** Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. */ + private Boolean _isApprovalRequest; + /** Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. */ + private Boolean _isAutomaticForward; + /** Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. */ + private Boolean _isAutomaticReply; + /** Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. */ + private Boolean _isEncrypted; + /** Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. */ + private Boolean _isMeetingRequest; + /** Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. */ + private Boolean _isMeetingResponse; + /** Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. */ + private Boolean _isNonDeliveryReport; + /** Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. */ + private Boolean _isPermissionControlled; + /** Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. */ + private Boolean _isReadReceipt; + /** Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. */ + private Boolean _isSigned; + /** Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. */ + private Boolean _isVoicemail; + private MessageActionFlag _messageActionFlag; + /** Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. */ + private Boolean _notSentToMe; + /** Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. */ + private List _recipientContains; + /** Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. */ + private List _senderContains; + private Sensitivity _sensitivity; + /** Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. */ + private Boolean _sentCcMe; + /** Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. */ + private Boolean _sentOnlyToMe; + /** Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. */ + private List _sentToAddresses; + /** Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. */ + private Boolean _sentToMe; + /** Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. */ + private Boolean _sentToOrCcMe; + /** Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. */ + private List _subjectContains; + private SizeRange _withinSizeRange; + /** + * Instantiates a new messageRulePredicates and sets the default values. + * @return a void + */ + public MessageRulePredicates() { + this.setAdditionalData(new HashMap<>()); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a Map + */ + @javax.annotation.Nonnull + public Map getAdditionalData() { + return this._additionalData; + } + /** + * Gets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public List headerContains; + public List getBodyContains() { + return this._bodyContains; + } + /** + * Gets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public Importance importance; - /** Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. */ + public List getBodyOrSubjectContains() { + return this._bodyOrSubjectContains; + } + /** + * Gets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public Boolean isApprovalRequest; - /** Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. */ + public List getCategories() { + return this._categories; + } + /** + * Gets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. + * @return a recipient + */ @javax.annotation.Nullable - public Boolean isAutomaticForward; - /** Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. */ + public List getFromAddresses() { + return this._fromAddresses; + } + /** + * Gets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isAutomaticReply; - /** Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. */ + public Boolean getHasAttachments() { + return this._hasAttachments; + } + /** + * Gets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public Boolean isEncrypted; - /** Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. */ + public List getHeaderContains() { + return this._headerContains; + } + /** + * Gets the importance property value. + * @return a importance + */ @javax.annotation.Nullable - public Boolean isMeetingRequest; - /** Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. */ + public Importance getImportance() { + return this._importance; + } + /** + * Gets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isMeetingResponse; - /** Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. */ + public Boolean getIsApprovalRequest() { + return this._isApprovalRequest; + } + /** + * Gets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isNonDeliveryReport; - /** Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. */ + public Boolean getIsAutomaticForward() { + return this._isAutomaticForward; + } + /** + * Gets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isPermissionControlled; - /** Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. */ + public Boolean getIsAutomaticReply() { + return this._isAutomaticReply; + } + /** + * Gets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isReadReceipt; - /** Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. */ + public Boolean getIsEncrypted() { + return this._isEncrypted; + } + /** + * Gets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isSigned; - /** Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. */ + public Boolean getIsMeetingRequest() { + return this._isMeetingRequest; + } + /** + * Gets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isVoicemail; + public Boolean getIsMeetingResponse() { + return this._isMeetingResponse; + } + /** + * Gets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public MessageActionFlag messageActionFlag; - /** Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. */ + public Boolean getIsNonDeliveryReport() { + return this._isNonDeliveryReport; + } + /** + * Gets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean notSentToMe; - /** Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. */ + public Boolean getIsPermissionControlled() { + return this._isPermissionControlled; + } + /** + * Gets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public List recipientContains; - /** Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. */ + public Boolean getIsReadReceipt() { + return this._isReadReceipt; + } + /** + * Gets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public List senderContains; + public Boolean getIsSigned() { + return this._isSigned; + } + /** + * Gets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Sensitivity sensitivity; - /** Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. */ + public Boolean getIsVoicemail() { + return this._isVoicemail; + } + /** + * Gets the messageActionFlag property value. + * @return a messageActionFlag + */ @javax.annotation.Nullable - public Boolean sentCcMe; - /** Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. */ + public MessageActionFlag getMessageActionFlag() { + return this._messageActionFlag; + } + /** + * Gets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean sentOnlyToMe; - /** Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. */ + public Boolean getNotSentToMe() { + return this._notSentToMe; + } + /** + * Gets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public List sentToAddresses; - /** Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. */ + public List getRecipientContains() { + return this._recipientContains; + } + /** + * Gets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public Boolean sentToMe; - /** Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. */ + public List getSenderContains() { + return this._senderContains; + } + /** + * Gets the sensitivity property value. + * @return a sensitivity + */ @javax.annotation.Nullable - public Boolean sentToOrCcMe; - /** Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. */ + public Sensitivity getSensitivity() { + return this._sensitivity; + } + /** + * Gets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public List subjectContains; + public Boolean getSentCcMe() { + return this._sentCcMe; + } + /** + * Gets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public SizeRange withinSizeRange; + public Boolean getSentOnlyToMe() { + return this._sentOnlyToMe; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. + * @return a recipient */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getSentToAddresses() { + return this._sentToAddresses; + } + /** + * Gets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getSentToMe() { + return this._sentToMe; + } + /** + * Gets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getSentToOrCcMe() { + return this._sentToOrCcMe; + } + /** + * Gets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. + * @return a string + */ + @javax.annotation.Nullable + public List getSubjectContains() { + return this._subjectContains; + } + /** + * Gets the withinSizeRange property value. + * @return a sizeRange + */ + @javax.annotation.Nullable + public SizeRange getWithinSizeRange() { + return this._withinSizeRange; } /** * The deserialization information for the current model @@ -115,75 +331,323 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(30) {{ - this.put("bodyContains", (o, n) -> { ((MessageRulePredicates)o).bodyContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("bodyOrSubjectContains", (o, n) -> { ((MessageRulePredicates)o).bodyOrSubjectContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("categories", (o, n) -> { ((MessageRulePredicates)o).categories = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("fromAddresses", (o, n) -> { ((MessageRulePredicates)o).fromAddresses = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("hasAttachments", (o, n) -> { ((MessageRulePredicates)o).hasAttachments = n.getBooleanValue(); }); - this.put("headerContains", (o, n) -> { ((MessageRulePredicates)o).headerContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("importance", (o, n) -> { ((MessageRulePredicates)o).importance = n.getEnumValue(Importance.class); }); - this.put("isApprovalRequest", (o, n) -> { ((MessageRulePredicates)o).isApprovalRequest = n.getBooleanValue(); }); - this.put("isAutomaticForward", (o, n) -> { ((MessageRulePredicates)o).isAutomaticForward = n.getBooleanValue(); }); - this.put("isAutomaticReply", (o, n) -> { ((MessageRulePredicates)o).isAutomaticReply = n.getBooleanValue(); }); - this.put("isEncrypted", (o, n) -> { ((MessageRulePredicates)o).isEncrypted = n.getBooleanValue(); }); - this.put("isMeetingRequest", (o, n) -> { ((MessageRulePredicates)o).isMeetingRequest = n.getBooleanValue(); }); - this.put("isMeetingResponse", (o, n) -> { ((MessageRulePredicates)o).isMeetingResponse = n.getBooleanValue(); }); - this.put("isNonDeliveryReport", (o, n) -> { ((MessageRulePredicates)o).isNonDeliveryReport = n.getBooleanValue(); }); - this.put("isPermissionControlled", (o, n) -> { ((MessageRulePredicates)o).isPermissionControlled = n.getBooleanValue(); }); - this.put("isReadReceipt", (o, n) -> { ((MessageRulePredicates)o).isReadReceipt = n.getBooleanValue(); }); - this.put("isSigned", (o, n) -> { ((MessageRulePredicates)o).isSigned = n.getBooleanValue(); }); - this.put("isVoicemail", (o, n) -> { ((MessageRulePredicates)o).isVoicemail = n.getBooleanValue(); }); - this.put("messageActionFlag", (o, n) -> { ((MessageRulePredicates)o).messageActionFlag = n.getEnumValue(MessageActionFlag.class); }); - this.put("notSentToMe", (o, n) -> { ((MessageRulePredicates)o).notSentToMe = n.getBooleanValue(); }); - this.put("recipientContains", (o, n) -> { ((MessageRulePredicates)o).recipientContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("senderContains", (o, n) -> { ((MessageRulePredicates)o).senderContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("sensitivity", (o, n) -> { ((MessageRulePredicates)o).sensitivity = n.getEnumValue(Sensitivity.class); }); - this.put("sentCcMe", (o, n) -> { ((MessageRulePredicates)o).sentCcMe = n.getBooleanValue(); }); - this.put("sentOnlyToMe", (o, n) -> { ((MessageRulePredicates)o).sentOnlyToMe = n.getBooleanValue(); }); - this.put("sentToAddresses", (o, n) -> { ((MessageRulePredicates)o).sentToAddresses = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("sentToMe", (o, n) -> { ((MessageRulePredicates)o).sentToMe = n.getBooleanValue(); }); - this.put("sentToOrCcMe", (o, n) -> { ((MessageRulePredicates)o).sentToOrCcMe = n.getBooleanValue(); }); - this.put("subjectContains", (o, n) -> { ((MessageRulePredicates)o).subjectContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("withinSizeRange", (o, n) -> { ((MessageRulePredicates)o).withinSizeRange = n.getObjectValue(SizeRange.class); }); + this.put("bodyContains", (o, n) -> { ((MessageRulePredicates)o).setBodyContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("bodyOrSubjectContains", (o, n) -> { ((MessageRulePredicates)o).setBodyOrSubjectContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("categories", (o, n) -> { ((MessageRulePredicates)o).setCategories(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("fromAddresses", (o, n) -> { ((MessageRulePredicates)o).setFromAddresses(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("hasAttachments", (o, n) -> { ((MessageRulePredicates)o).setHasAttachments(n.getBooleanValue()); }); + this.put("headerContains", (o, n) -> { ((MessageRulePredicates)o).setHeaderContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("importance", (o, n) -> { ((MessageRulePredicates)o).setImportance(n.getEnumValue(Importance.class)); }); + this.put("isApprovalRequest", (o, n) -> { ((MessageRulePredicates)o).setIsApprovalRequest(n.getBooleanValue()); }); + this.put("isAutomaticForward", (o, n) -> { ((MessageRulePredicates)o).setIsAutomaticForward(n.getBooleanValue()); }); + this.put("isAutomaticReply", (o, n) -> { ((MessageRulePredicates)o).setIsAutomaticReply(n.getBooleanValue()); }); + this.put("isEncrypted", (o, n) -> { ((MessageRulePredicates)o).setIsEncrypted(n.getBooleanValue()); }); + this.put("isMeetingRequest", (o, n) -> { ((MessageRulePredicates)o).setIsMeetingRequest(n.getBooleanValue()); }); + this.put("isMeetingResponse", (o, n) -> { ((MessageRulePredicates)o).setIsMeetingResponse(n.getBooleanValue()); }); + this.put("isNonDeliveryReport", (o, n) -> { ((MessageRulePredicates)o).setIsNonDeliveryReport(n.getBooleanValue()); }); + this.put("isPermissionControlled", (o, n) -> { ((MessageRulePredicates)o).setIsPermissionControlled(n.getBooleanValue()); }); + this.put("isReadReceipt", (o, n) -> { ((MessageRulePredicates)o).setIsReadReceipt(n.getBooleanValue()); }); + this.put("isSigned", (o, n) -> { ((MessageRulePredicates)o).setIsSigned(n.getBooleanValue()); }); + this.put("isVoicemail", (o, n) -> { ((MessageRulePredicates)o).setIsVoicemail(n.getBooleanValue()); }); + this.put("messageActionFlag", (o, n) -> { ((MessageRulePredicates)o).setMessageActionFlag(n.getEnumValue(MessageActionFlag.class)); }); + this.put("notSentToMe", (o, n) -> { ((MessageRulePredicates)o).setNotSentToMe(n.getBooleanValue()); }); + this.put("recipientContains", (o, n) -> { ((MessageRulePredicates)o).setRecipientContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("senderContains", (o, n) -> { ((MessageRulePredicates)o).setSenderContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("sensitivity", (o, n) -> { ((MessageRulePredicates)o).setSensitivity(n.getEnumValue(Sensitivity.class)); }); + this.put("sentCcMe", (o, n) -> { ((MessageRulePredicates)o).setSentCcMe(n.getBooleanValue()); }); + this.put("sentOnlyToMe", (o, n) -> { ((MessageRulePredicates)o).setSentOnlyToMe(n.getBooleanValue()); }); + this.put("sentToAddresses", (o, n) -> { ((MessageRulePredicates)o).setSentToAddresses(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("sentToMe", (o, n) -> { ((MessageRulePredicates)o).setSentToMe(n.getBooleanValue()); }); + this.put("sentToOrCcMe", (o, n) -> { ((MessageRulePredicates)o).setSentToOrCcMe(n.getBooleanValue()); }); + this.put("subjectContains", (o, n) -> { ((MessageRulePredicates)o).setSubjectContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("withinSizeRange", (o, n) -> { ((MessageRulePredicates)o).setWithinSizeRange(n.getObjectValue(SizeRange.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeCollectionOfPrimitiveValues("bodyContains", bodyContains); - writer.writeCollectionOfPrimitiveValues("bodyOrSubjectContains", bodyOrSubjectContains); - writer.writeCollectionOfPrimitiveValues("categories", categories); - writer.writeCollectionOfObjectValues("fromAddresses", fromAddresses); - writer.writeBooleanValue("hasAttachments", hasAttachments); - writer.writeCollectionOfPrimitiveValues("headerContains", headerContains); - writer.writeEnumValue("importance", importance); - writer.writeBooleanValue("isApprovalRequest", isApprovalRequest); - writer.writeBooleanValue("isAutomaticForward", isAutomaticForward); - writer.writeBooleanValue("isAutomaticReply", isAutomaticReply); - writer.writeBooleanValue("isEncrypted", isEncrypted); - writer.writeBooleanValue("isMeetingRequest", isMeetingRequest); - writer.writeBooleanValue("isMeetingResponse", isMeetingResponse); - writer.writeBooleanValue("isNonDeliveryReport", isNonDeliveryReport); - writer.writeBooleanValue("isPermissionControlled", isPermissionControlled); - writer.writeBooleanValue("isReadReceipt", isReadReceipt); - writer.writeBooleanValue("isSigned", isSigned); - writer.writeBooleanValue("isVoicemail", isVoicemail); - writer.writeEnumValue("messageActionFlag", messageActionFlag); - writer.writeBooleanValue("notSentToMe", notSentToMe); - writer.writeCollectionOfPrimitiveValues("recipientContains", recipientContains); - writer.writeCollectionOfPrimitiveValues("senderContains", senderContains); - writer.writeEnumValue("sensitivity", sensitivity); - writer.writeBooleanValue("sentCcMe", sentCcMe); - writer.writeBooleanValue("sentOnlyToMe", sentOnlyToMe); - writer.writeCollectionOfObjectValues("sentToAddresses", sentToAddresses); - writer.writeBooleanValue("sentToMe", sentToMe); - writer.writeBooleanValue("sentToOrCcMe", sentToOrCcMe); - writer.writeCollectionOfPrimitiveValues("subjectContains", subjectContains); - writer.writeObjectValue("withinSizeRange", withinSizeRange); - writer.writeAdditionalData(this.additionalData); + writer.writeCollectionOfPrimitiveValues("bodyContains", this.getBodyContains()); + writer.writeCollectionOfPrimitiveValues("bodyOrSubjectContains", this.getBodyOrSubjectContains()); + writer.writeCollectionOfPrimitiveValues("categories", this.getCategories()); + writer.writeCollectionOfObjectValues("fromAddresses", this.getFromAddresses()); + writer.writeBooleanValue("hasAttachments", this.getHasAttachments()); + writer.writeCollectionOfPrimitiveValues("headerContains", this.getHeaderContains()); + writer.writeEnumValue("importance", this.getImportance()); + writer.writeBooleanValue("isApprovalRequest", this.getIsApprovalRequest()); + writer.writeBooleanValue("isAutomaticForward", this.getIsAutomaticForward()); + writer.writeBooleanValue("isAutomaticReply", this.getIsAutomaticReply()); + writer.writeBooleanValue("isEncrypted", this.getIsEncrypted()); + writer.writeBooleanValue("isMeetingRequest", this.getIsMeetingRequest()); + writer.writeBooleanValue("isMeetingResponse", this.getIsMeetingResponse()); + writer.writeBooleanValue("isNonDeliveryReport", this.getIsNonDeliveryReport()); + writer.writeBooleanValue("isPermissionControlled", this.getIsPermissionControlled()); + writer.writeBooleanValue("isReadReceipt", this.getIsReadReceipt()); + writer.writeBooleanValue("isSigned", this.getIsSigned()); + writer.writeBooleanValue("isVoicemail", this.getIsVoicemail()); + writer.writeEnumValue("messageActionFlag", this.getMessageActionFlag()); + writer.writeBooleanValue("notSentToMe", this.getNotSentToMe()); + writer.writeCollectionOfPrimitiveValues("recipientContains", this.getRecipientContains()); + writer.writeCollectionOfPrimitiveValues("senderContains", this.getSenderContains()); + writer.writeEnumValue("sensitivity", this.getSensitivity()); + writer.writeBooleanValue("sentCcMe", this.getSentCcMe()); + writer.writeBooleanValue("sentOnlyToMe", this.getSentOnlyToMe()); + writer.writeCollectionOfObjectValues("sentToAddresses", this.getSentToAddresses()); + writer.writeBooleanValue("sentToMe", this.getSentToMe()); + writer.writeBooleanValue("sentToOrCcMe", this.getSentToOrCcMe()); + writer.writeCollectionOfPrimitiveValues("subjectContains", this.getSubjectContains()); + writer.writeObjectValue("withinSizeRange", this.getWithinSizeRange()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the bodyContains property. + * @return a void + */ + public void setBodyContains(@javax.annotation.Nullable final List value) { + this._bodyContains = value; + } + /** + * Sets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the bodyOrSubjectContains property. + * @return a void + */ + public void setBodyOrSubjectContains(@javax.annotation.Nullable final List value) { + this._bodyOrSubjectContains = value; + } + /** + * Sets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. + * @param value Value to set for the categories property. + * @return a void + */ + public void setCategories(@javax.annotation.Nullable final List value) { + this._categories = value; + } + /** + * Sets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the fromAddresses property. + * @return a void + */ + public void setFromAddresses(@javax.annotation.Nullable final List value) { + this._fromAddresses = value; + } + /** + * Sets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. + * @param value Value to set for the hasAttachments property. + * @return a void + */ + public void setHasAttachments(@javax.annotation.Nullable final Boolean value) { + this._hasAttachments = value; + } + /** + * Sets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the headerContains property. + * @return a void + */ + public void setHeaderContains(@javax.annotation.Nullable final List value) { + this._headerContains = value; + } + /** + * Sets the importance property value. + * @param value Value to set for the importance property. + * @return a void + */ + public void setImportance(@javax.annotation.Nullable final Importance value) { + this._importance = value; + } + /** + * Sets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. + * @param value Value to set for the isApprovalRequest property. + * @return a void + */ + public void setIsApprovalRequest(@javax.annotation.Nullable final Boolean value) { + this._isApprovalRequest = value; + } + /** + * Sets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. + * @param value Value to set for the isAutomaticForward property. + * @return a void + */ + public void setIsAutomaticForward(@javax.annotation.Nullable final Boolean value) { + this._isAutomaticForward = value; + } + /** + * Sets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. + * @param value Value to set for the isAutomaticReply property. + * @return a void + */ + public void setIsAutomaticReply(@javax.annotation.Nullable final Boolean value) { + this._isAutomaticReply = value; + } + /** + * Sets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. + * @param value Value to set for the isEncrypted property. + * @return a void + */ + public void setIsEncrypted(@javax.annotation.Nullable final Boolean value) { + this._isEncrypted = value; + } + /** + * Sets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. + * @param value Value to set for the isMeetingRequest property. + * @return a void + */ + public void setIsMeetingRequest(@javax.annotation.Nullable final Boolean value) { + this._isMeetingRequest = value; + } + /** + * Sets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. + * @param value Value to set for the isMeetingResponse property. + * @return a void + */ + public void setIsMeetingResponse(@javax.annotation.Nullable final Boolean value) { + this._isMeetingResponse = value; + } + /** + * Sets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. + * @param value Value to set for the isNonDeliveryReport property. + * @return a void + */ + public void setIsNonDeliveryReport(@javax.annotation.Nullable final Boolean value) { + this._isNonDeliveryReport = value; + } + /** + * Sets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. + * @param value Value to set for the isPermissionControlled property. + * @return a void + */ + public void setIsPermissionControlled(@javax.annotation.Nullable final Boolean value) { + this._isPermissionControlled = value; + } + /** + * Sets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. + * @param value Value to set for the isReadReceipt property. + * @return a void + */ + public void setIsReadReceipt(@javax.annotation.Nullable final Boolean value) { + this._isReadReceipt = value; + } + /** + * Sets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. + * @param value Value to set for the isSigned property. + * @return a void + */ + public void setIsSigned(@javax.annotation.Nullable final Boolean value) { + this._isSigned = value; + } + /** + * Sets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. + * @param value Value to set for the isVoicemail property. + * @return a void + */ + public void setIsVoicemail(@javax.annotation.Nullable final Boolean value) { + this._isVoicemail = value; + } + /** + * Sets the messageActionFlag property value. + * @param value Value to set for the messageActionFlag property. + * @return a void + */ + public void setMessageActionFlag(@javax.annotation.Nullable final MessageActionFlag value) { + this._messageActionFlag = value; + } + /** + * Sets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the notSentToMe property. + * @return a void + */ + public void setNotSentToMe(@javax.annotation.Nullable final Boolean value) { + this._notSentToMe = value; + } + /** + * Sets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the recipientContains property. + * @return a void + */ + public void setRecipientContains(@javax.annotation.Nullable final List value) { + this._recipientContains = value; + } + /** + * Sets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the senderContains property. + * @return a void + */ + public void setSenderContains(@javax.annotation.Nullable final List value) { + this._senderContains = value; + } + /** + * Sets the sensitivity property value. + * @param value Value to set for the sensitivity property. + * @return a void + */ + public void setSensitivity(@javax.annotation.Nullable final Sensitivity value) { + this._sensitivity = value; + } + /** + * Sets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentCcMe property. + * @return a void + */ + public void setSentCcMe(@javax.annotation.Nullable final Boolean value) { + this._sentCcMe = value; + } + /** + * Sets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentOnlyToMe property. + * @return a void + */ + public void setSentOnlyToMe(@javax.annotation.Nullable final Boolean value) { + this._sentOnlyToMe = value; + } + /** + * Sets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. + * @param value Value to set for the sentToAddresses property. + * @return a void + */ + public void setSentToAddresses(@javax.annotation.Nullable final List value) { + this._sentToAddresses = value; + } + /** + * Sets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentToMe property. + * @return a void + */ + public void setSentToMe(@javax.annotation.Nullable final Boolean value) { + this._sentToMe = value; + } + /** + * Sets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentToOrCcMe property. + * @return a void + */ + public void setSentToOrCcMe(@javax.annotation.Nullable final Boolean value) { + this._sentToOrCcMe = value; + } + /** + * Sets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the subjectContains property. + * @return a void + */ + public void setSubjectContains(@javax.annotation.Nullable final List value) { + this._subjectContains = value; + } + /** + * Sets the withinSizeRange property value. + * @param value Value to set for the withinSizeRange property. + * @return a void + */ + public void setWithinSizeRange(@javax.annotation.Nullable final SizeRange value) { + this._withinSizeRange = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java index 037d3d1ad..9f67f8c6a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java @@ -9,21 +9,41 @@ import java.util.Objects; public class SizeRange implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map _additionalData; /** The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ - @javax.annotation.Nullable - public Integer maximumSize; + private Integer _maximumSize; /** The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ - @javax.annotation.Nullable - public Integer minimumSize; + private Integer _minimumSize; + /** + * Instantiates a new sizeRange and sets the default values. + * @return a void + */ + public SizeRange() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getMaximumSize() { + return this._maximumSize; + } + /** + * Gets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getMinimumSize() { + return this._minimumSize; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("maximumSize", (o, n) -> { ((SizeRange)o).maximumSize = n.getIntegerValue(); }); - this.put("minimumSize", (o, n) -> { ((SizeRange)o).minimumSize = n.getIntegerValue(); }); + this.put("maximumSize", (o, n) -> { ((SizeRange)o).setMaximumSize(n.getIntegerValue()); }); + this.put("minimumSize", (o, n) -> { ((SizeRange)o).setMinimumSize(n.getIntegerValue()); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeIntegerValue("maximumSize", maximumSize); - writer.writeIntegerValue("minimumSize", minimumSize); - writer.writeAdditionalData(this.additionalData); + writer.writeIntegerValue("maximumSize", this.getMaximumSize()); + writer.writeIntegerValue("minimumSize", this.getMinimumSize()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @param value Value to set for the maximumSize property. + * @return a void + */ + public void setMaximumSize(@javax.annotation.Nullable final Integer value) { + this._maximumSize = value; + } + /** + * Sets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @param value Value to set for the minimumSize property. + * @return a void + */ + public void setMinimumSize(@javax.annotation.Nullable final Integer value) { + this._minimumSize = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java index 4ae562a53..75172bfa5 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java @@ -23,11 +23,17 @@ public class ChildFoldersRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/childFolders"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ChildFoldersRequestBuilder and sets the default values. + * @return a void + */ + public ChildFoldersRequestBuilder() { + this.pathSegment = "/childFolders"; + } /** * Get childFolders from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java index 86c87a1c0..94d043acd 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class ChildFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new ChildFoldersResponse and sets the default values. + * @return a void + */ + public ChildFoldersResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a mailFolder + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((ChildFoldersResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((ChildFoldersResponse)o).value = n.getCollectionOfObjectValues(MailFolder.class); }); + this.put("@odata.nextLink", (o, n) -> { ((ChildFoldersResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((ChildFoldersResponse)o).setValue(n.getCollectionOfObjectValues(MailFolder.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java index 3e6fceff1..0a776db96 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java @@ -23,11 +23,17 @@ public class MailFolderRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MailFolderRequestBuilder and sets the default values. + * @return a void + */ + public MailFolderRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property childFolders for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java index 52e401bd2..b5ad92657 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java @@ -60,8 +60,7 @@ public MultiValueExtendedPropertiesRequestBuilder multiValueExtendedProperties() return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; @@ -85,6 +84,13 @@ public MailFolderRequestBuilder childFolders(@javax.annotation.Nonnull final Str final SerializationWriterFactory parentSerializationFactory = serializerFactory; return new MailFolderRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } + /** + * Instantiates a new MailFolderRequestBuilder and sets the default values. + * @return a void + */ + public MailFolderRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property mailFolders for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java index eb6dc1415..4783d5d0a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java @@ -23,11 +23,17 @@ public class MessageRulesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/messageRules"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MessageRulesRequestBuilder and sets the default values. + * @return a void + */ + public MessageRulesRequestBuilder() { + this.pathSegment = "/messageRules"; + } /** * Get messageRules from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java index 162fe69b5..71e850575 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MessageRulesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MessageRulesResponse and sets the default values. + * @return a void + */ + public MessageRulesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a messageRule + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MessageRulesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MessageRulesResponse)o).value = n.getCollectionOfObjectValues(MessageRule.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MessageRulesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MessageRulesResponse)o).setValue(n.getCollectionOfObjectValues(MessageRule.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java index b538226c9..99b03b536 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java @@ -23,11 +23,17 @@ public class MessageRuleRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MessageRuleRequestBuilder and sets the default values. + * @return a void + */ + public MessageRuleRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property messageRules for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java index b2bb499b4..ae216cf3f 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java @@ -23,11 +23,17 @@ public class MessagesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/messages"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MessagesRequestBuilder and sets the default values. + * @return a void + */ + public MessagesRequestBuilder() { + this.pathSegment = "/messages"; + } /** * Get messages from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java index d14490134..6934f3e6e 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MessagesResponse and sets the default values. + * @return a void + */ + public MessagesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a message + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MessagesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MessagesResponse)o).value = n.getCollectionOfObjectValues(Message.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MessagesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MessagesResponse)o).setValue(n.getCollectionOfObjectValues(Message.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java index 20ca67903..d9a500178 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java @@ -23,11 +23,17 @@ public class AttachmentsRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/attachments"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new AttachmentsRequestBuilder and sets the default values. + * @return a void + */ + public AttachmentsRequestBuilder() { + this.pathSegment = "/attachments"; + } /** * Get attachments from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java index af86de1c3..c98d68bde 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new AttachmentsResponse and sets the default values. + * @return a void + */ + public AttachmentsResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a attachment + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((AttachmentsResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((AttachmentsResponse)o).value = n.getCollectionOfObjectValues(Attachment.class); }); + this.put("@odata.nextLink", (o, n) -> { ((AttachmentsResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((AttachmentsResponse)o).setValue(n.getCollectionOfObjectValues(Attachment.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java index 3e7999499..983313cad 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java @@ -23,11 +23,17 @@ public class AttachmentRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new AttachmentRequestBuilder and sets the default values. + * @return a void + */ + public AttachmentRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property attachments for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java index d7330cd91..3e6f339a6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java @@ -22,11 +22,17 @@ public class ContentRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/$value"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ContentRequestBuilder and sets the default values. + * @return a void + */ + public ContentRequestBuilder() { + this.pathSegment = "/$value"; + } /** * Get media content for the navigation property messages from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java index 8a76c6b98..16d2b0320 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java @@ -23,11 +23,17 @@ public class ExtensionsRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/extensions"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ExtensionsRequestBuilder and sets the default values. + * @return a void + */ + public ExtensionsRequestBuilder() { + this.pathSegment = "/extensions"; + } /** * Get extensions from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java index 3dd256bdb..c9ab2b1b6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new ExtensionsResponse and sets the default values. + * @return a void + */ + public ExtensionsResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a extension + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((ExtensionsResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((ExtensionsResponse)o).value = n.getCollectionOfObjectValues(Extension.class); }); + this.put("@odata.nextLink", (o, n) -> { ((ExtensionsResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((ExtensionsResponse)o).setValue(n.getCollectionOfObjectValues(Extension.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java index 7722f084e..c2d75a73c 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java @@ -23,11 +23,17 @@ public class ExtensionRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ExtensionRequestBuilder and sets the default values. + * @return a void + */ + public ExtensionRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property extensions for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java index d0d2cd448..7c5fd593b 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java @@ -60,8 +60,7 @@ public MultiValueExtendedPropertiesRequestBuilder multiValueExtendedProperties() return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; @@ -85,6 +84,13 @@ public AttachmentRequestBuilder attachments(@javax.annotation.Nonnull final Stri final SerializationWriterFactory parentSerializationFactory = serializerFactory; return new AttachmentRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } + /** + * Instantiates a new MessageRequestBuilder and sets the default values. + * @return a void + */ + public MessageRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property messages for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java index f0c6a30c6..941cc50f0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/multiValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/multiValueExtendedProperties"; + } /** * Get multiValueExtendedProperties from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index 3123321c2..73358015f 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a multiValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java index 42d533a98..aa201056d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property multiValueExtendedProperties for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java index 13c898b75..92b1cb9aa 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/singleValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/singleValueExtendedProperties"; + } /** * Get singleValueExtendedProperties from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index ef4450b08..f90044285 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a singleValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java index 5a6179e7b..438a7d9fe 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property singleValueExtendedProperties for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java index 65c7bdf1a..82c5307e1 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/multiValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/multiValueExtendedProperties"; + } /** * Get multiValueExtendedProperties from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index 2c8de7114..aec5f7874 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a multiValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java index b41f97916..4c35d8dad 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property multiValueExtendedProperties for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java index 8f822881d..6dc9c1d86 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/singleValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/singleValueExtendedProperties"; + } /** * Get singleValueExtendedProperties from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index b316656f0..035e65262 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a singleValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java index 9fdec8b01..a7dce10e3 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property singleValueExtendedProperties for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java index 682ec0d00..ddce087af 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java @@ -23,11 +23,17 @@ public class MessagesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/messages"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MessagesRequestBuilder and sets the default values. + * @return a void + */ + public MessagesRequestBuilder() { + this.pathSegment = "/messages"; + } /** * Get messages from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java index 32bd800eb..330f9e8b0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MessagesResponse and sets the default values. + * @return a void + */ + public MessagesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a message + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MessagesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MessagesResponse)o).value = n.getCollectionOfObjectValues(Message.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MessagesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MessagesResponse)o).setValue(n.getCollectionOfObjectValues(Message.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java index 62540d25e..38b8f5635 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java @@ -23,11 +23,17 @@ public class AttachmentsRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/attachments"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new AttachmentsRequestBuilder and sets the default values. + * @return a void + */ + public AttachmentsRequestBuilder() { + this.pathSegment = "/attachments"; + } /** * Get attachments from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java index ced731fc0..675389ea4 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new AttachmentsResponse and sets the default values. + * @return a void + */ + public AttachmentsResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a attachment + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((AttachmentsResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((AttachmentsResponse)o).value = n.getCollectionOfObjectValues(Attachment.class); }); + this.put("@odata.nextLink", (o, n) -> { ((AttachmentsResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((AttachmentsResponse)o).setValue(n.getCollectionOfObjectValues(Attachment.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java index 202dd9c3d..01b1c98a4 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java @@ -23,11 +23,17 @@ public class AttachmentRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new AttachmentRequestBuilder and sets the default values. + * @return a void + */ + public AttachmentRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property attachments for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java index bf48d905f..634c6f5cb 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java @@ -22,11 +22,17 @@ public class ContentRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/$value"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ContentRequestBuilder and sets the default values. + * @return a void + */ + public ContentRequestBuilder() { + this.pathSegment = "/$value"; + } /** * Get media content for the navigation property messages from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java index 3873b890c..a65dc6032 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java @@ -23,11 +23,17 @@ public class ExtensionsRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/extensions"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ExtensionsRequestBuilder and sets the default values. + * @return a void + */ + public ExtensionsRequestBuilder() { + this.pathSegment = "/extensions"; + } /** * Get extensions from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java index 86e3ab465..e6703871f 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new ExtensionsResponse and sets the default values. + * @return a void + */ + public ExtensionsResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a extension + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((ExtensionsResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((ExtensionsResponse)o).value = n.getCollectionOfObjectValues(Extension.class); }); + this.put("@odata.nextLink", (o, n) -> { ((ExtensionsResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((ExtensionsResponse)o).setValue(n.getCollectionOfObjectValues(Extension.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java index 7fc532809..94e57cf0d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java @@ -23,11 +23,17 @@ public class ExtensionRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ExtensionRequestBuilder and sets the default values. + * @return a void + */ + public ExtensionRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property extensions for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java index caa1411c7..1feb87eee 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java @@ -60,8 +60,7 @@ public MultiValueExtendedPropertiesRequestBuilder multiValueExtendedProperties() return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; @@ -85,6 +84,13 @@ public AttachmentRequestBuilder attachments(@javax.annotation.Nonnull final Stri final SerializationWriterFactory parentSerializationFactory = serializerFactory; return new AttachmentRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } + /** + * Instantiates a new MessageRequestBuilder and sets the default values. + * @return a void + */ + public MessageRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property messages for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java index c6146fe15..749402185 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/multiValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/multiValueExtendedProperties"; + } /** * Get multiValueExtendedProperties from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index ea0692688..099145857 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a multiValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java index b02e35229..c01414355 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property multiValueExtendedProperties for users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java index be08a2a47..40f7bad91 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/singleValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/singleValueExtendedProperties"; + } /** * Get singleValueExtendedProperties from users * @return a RequestInfo diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index 9f8324e78..0359a62c4 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; - @javax.annotation.Nullable - public List value; + private Map _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesResponse() { + this.setAdditionalData(new HashMap<>()); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return a Map */ @javax.annotation.Nonnull public Map getAdditionalData() { - return additionalData; + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ + @javax.annotation.Nullable + public String getNextLink() { + return this._nextLink; + } + /** + * Gets the value property value. + * @return a singleValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,19 +52,43 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); - writer.writeAdditionalData(this.additionalData); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final Map value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java index 28b02929b..5dc3946e6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property singleValueExtendedProperties for users * @return a RequestInfo diff --git a/msgraph-mail/typescript/src/apiClient.ts b/msgraph-mail/typescript/src/apiClient.ts index 4199cf5c4..e127c303d 100644 --- a/msgraph-mail/typescript/src/apiClient.ts +++ b/msgraph-mail/typescript/src/apiClient.ts @@ -9,7 +9,7 @@ export class ApiClient { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "https://graph.microsoft.com/v1.0"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; public get users(): UsersRequestBuilder { @@ -19,12 +19,18 @@ export class ApiClient { builder.serializerFactory = this.serializerFactory; return builder; } + /** + * Instantiates a new ApiClient and sets the default values. + */ + public constructor() { + this.pathSegment = "https://graph.microsoft.com/v1.0"; + }; /** * Gets an item from the graphtypescriptv4.utilities.users collection * @param id Unique identifier of the item * @returns a UserRequestBuilder */ - public usersById (id: String) : UserRequestBuilder { + public usersById(id: String) : UserRequestBuilder { const builder = new UserRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/users/" + id; builder.httpCore = this.httpCore; diff --git a/msgraph-mail/typescript/src/users/attachment.ts b/msgraph-mail/typescript/src/users/attachment.ts index 931569ae3..a8ffe5ad8 100644 --- a/msgraph-mail/typescript/src/users/attachment.ts +++ b/msgraph-mail/typescript/src/users/attachment.ts @@ -3,20 +3,61 @@ import {Entity} from './entity'; export class Attachment extends Entity implements Parsable { /** The MIME type. */ - public contentType?: string | undefined; + private _contentType?: string | undefined; /** true if the attachment is an inline attachment; otherwise, false. */ - public isInline?: boolean | undefined; + private _isInline?: boolean | undefined; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - public lastModifiedDateTime?: Date | undefined; + private _lastModifiedDateTime?: Date | undefined; /** The display name of the attachment. This does not need to be the actual file name. */ - public name?: string | undefined; + private _name?: string | undefined; /** The length of the attachment in bytes. */ - public size?: number | undefined; + private _size?: number | undefined; + /** + * Instantiates a new attachment and sets the default values. + */ + public constructor() { + super(); + }; + /** + * Gets the contentType property value. The MIME type. + * @returns a string + */ + public get contentType() { + return this._contentType; + }; + /** + * Gets the isInline property value. true if the attachment is an inline attachment; otherwise, false. + * @returns a boolean + */ + public get isInline() { + return this._isInline; + }; + /** + * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @returns a Date + */ + public get lastModifiedDateTime() { + return this._lastModifiedDateTime; + }; + /** + * Gets the name property value. The display name of the attachment. This does not need to be the actual file name. + * @returns a string + */ + public get name() { + return this._name; + }; + /** + * Gets the size property value. The length of the attachment in bytes. + * @returns a integer + */ + public get size() { + return this._size; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["contentType", (o, n) => { (o as unknown as Attachment).contentType = n.getStringValue(); }], ["isInline", (o, n) => { (o as unknown as Attachment).isInline = n.getBooleanValue(); }], @@ -26,11 +67,10 @@ export class Attachment extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeStringValue("contentType", this.contentType); writer.writeBooleanValue("isInline", this.isInline); @@ -38,4 +78,39 @@ export class Attachment extends Entity implements Parsable { writer.writeStringValue("name", this.name); writer.writeNumberValue("size", this.size); }; + /** + * Sets the contentType property value. The MIME type. + * @param value Value to set for the contentType property. + */ + public set contentType(value: string | undefined) { + this._contentType = value; + }; + /** + * Sets the isInline property value. true if the attachment is an inline attachment; otherwise, false. + * @param value Value to set for the isInline property. + */ + public set isInline(value: boolean | undefined) { + this._isInline = value; + }; + /** + * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the lastModifiedDateTime property. + */ + public set lastModifiedDateTime(value: Date | undefined) { + this._lastModifiedDateTime = value; + }; + /** + * Sets the name property value. The display name of the attachment. This does not need to be the actual file name. + * @param value Value to set for the name property. + */ + public set name(value: string | undefined) { + this._name = value; + }; + /** + * Sets the size property value. The length of the attachment in bytes. + * @param value Value to set for the size property. + */ + public set size(value: number | undefined) { + this._size = value; + }; } diff --git a/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts b/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts index 561b5b9d3..5d66fb6cc 100644 --- a/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts +++ b/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts @@ -2,29 +2,76 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class DateTimeTimeZone implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map; /** A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. */ - public dateTime?: string | undefined; + private _dateTime?: string | undefined; /** Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. */ - public timeZone?: string | undefined; + private _timeZone?: string | undefined; + /** + * Instantiates a new dateTimeTimeZone and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. + * @returns a string + */ + public get dateTime() { + return this._dateTime; + }; + /** + * Gets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. + * @returns a string + */ + public get timeZone() { + return this._timeZone; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["dateTime", (o, n) => { (o as unknown as DateTimeTimeZone).dateTime = n.getStringValue(); }], ["timeZone", (o, n) => { (o as unknown as DateTimeTimeZone).timeZone = n.getStringValue(); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("dateTime", this.dateTime); writer.writeStringValue("timeZone", this.timeZone); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. + * @param value Value to set for the dateTime property. + */ + public set dateTime(value: string | undefined) { + this._dateTime = value; + }; + /** + * Sets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. + * @param value Value to set for the timeZone property. + */ + public set timeZone(value: string | undefined) { + this._timeZone = value; + }; } diff --git a/msgraph-mail/typescript/src/users/emailAddress.ts b/msgraph-mail/typescript/src/users/emailAddress.ts index 5a297bbc6..ca496661f 100644 --- a/msgraph-mail/typescript/src/users/emailAddress.ts +++ b/msgraph-mail/typescript/src/users/emailAddress.ts @@ -2,29 +2,76 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class EmailAddress implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map; /** The email address of an entity instance. */ - public address?: string | undefined; + private _address?: string | undefined; /** The display name of an entity instance. */ - public name?: string | undefined; + private _name?: string | undefined; + /** + * Instantiates a new emailAddress and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the address property value. The email address of an entity instance. + * @returns a string + */ + public get address() { + return this._address; + }; + /** + * Gets the name property value. The display name of an entity instance. + * @returns a string + */ + public get name() { + return this._name; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["address", (o, n) => { (o as unknown as EmailAddress).address = n.getStringValue(); }], ["name", (o, n) => { (o as unknown as EmailAddress).name = n.getStringValue(); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("address", this.address); writer.writeStringValue("name", this.name); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the address property value. The email address of an entity instance. + * @param value Value to set for the address property. + */ + public set address(value: string | undefined) { + this._address = value; + }; + /** + * Sets the name property value. The display name of an entity instance. + * @param value Value to set for the name property. + */ + public set name(value: string | undefined) { + this._name = value; + }; } diff --git a/msgraph-mail/typescript/src/users/entity.ts b/msgraph-mail/typescript/src/users/entity.ts index abfa20244..a6ad9d422 100644 --- a/msgraph-mail/typescript/src/users/entity.ts +++ b/msgraph-mail/typescript/src/users/entity.ts @@ -2,25 +2,58 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class Entity implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map; /** Read-only. */ - public id?: string | undefined; + private _id?: string | undefined; + /** + * Instantiates a new entity and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the id property value. Read-only. + * @returns a string + */ + public get id() { + return this._id; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["id", (o, n) => { (o as unknown as Entity).id = n.getStringValue(); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("id", this.id); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the id property value. Read-only. + * @param value Value to set for the id property. + */ + public set id(value: string | undefined) { + this._id = value; + }; } diff --git a/msgraph-mail/typescript/src/users/extension.ts b/msgraph-mail/typescript/src/users/extension.ts index 4bcb0c174..5e5678a2b 100644 --- a/msgraph-mail/typescript/src/users/extension.ts +++ b/msgraph-mail/typescript/src/users/extension.ts @@ -2,20 +2,25 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac import {Entity} from './entity'; export class Extension extends Entity implements Parsable { + /** + * Instantiates a new extension and sets the default values. + */ + public constructor() { + super(); + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); }; } diff --git a/msgraph-mail/typescript/src/users/followupFlag.ts b/msgraph-mail/typescript/src/users/followupFlag.ts index 58ad0d6bb..fb323b7bc 100644 --- a/msgraph-mail/typescript/src/users/followupFlag.ts +++ b/msgraph-mail/typescript/src/users/followupFlag.ts @@ -4,16 +4,57 @@ import {FollowupFlagStatus} from './followupFlagStatus'; export class FollowupFlag implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public completedDateTime?: DateTimeTimeZone | undefined; - public dueDateTime?: DateTimeTimeZone | undefined; - public flagStatus?: FollowupFlagStatus | undefined; - public startDateTime?: DateTimeTimeZone | undefined; + private _additionalData: Map; + private _completedDateTime?: DateTimeTimeZone | undefined; + private _dueDateTime?: DateTimeTimeZone | undefined; + private _flagStatus?: FollowupFlagStatus | undefined; + private _startDateTime?: DateTimeTimeZone | undefined; + /** + * Instantiates a new followupFlag and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the completedDateTime property value. + * @returns a dateTimeTimeZone + */ + public get completedDateTime() { + return this._completedDateTime; + }; + /** + * Gets the dueDateTime property value. + * @returns a dateTimeTimeZone + */ + public get dueDateTime() { + return this._dueDateTime; + }; + /** + * Gets the flagStatus property value. + * @returns a followupFlagStatus + */ + public get flagStatus() { + return this._flagStatus; + }; + /** + * Gets the startDateTime property value. + * @returns a dateTimeTimeZone + */ + public get startDateTime() { + return this._startDateTime; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["completedDateTime", (o, n) => { (o as unknown as FollowupFlag).completedDateTime = n.getObjectValue(DateTimeTimeZone); }], ["dueDateTime", (o, n) => { (o as unknown as FollowupFlag).dueDateTime = n.getObjectValue(DateTimeTimeZone); }], @@ -22,15 +63,49 @@ export class FollowupFlag implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeObjectValue("completedDateTime", this.completedDateTime); writer.writeObjectValue("dueDateTime", this.dueDateTime); writer.writeEnumValue("flagStatus", this.flagStatus); writer.writeObjectValue("startDateTime", this.startDateTime); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the completedDateTime property value. + * @param value Value to set for the completedDateTime property. + */ + public set completedDateTime(value: DateTimeTimeZone | undefined) { + this._completedDateTime = value; + }; + /** + * Sets the dueDateTime property value. + * @param value Value to set for the dueDateTime property. + */ + public set dueDateTime(value: DateTimeTimeZone | undefined) { + this._dueDateTime = value; + }; + /** + * Sets the flagStatus property value. + * @param value Value to set for the flagStatus property. + */ + public set flagStatus(value: FollowupFlagStatus | undefined) { + this._flagStatus = value; + }; + /** + * Sets the startDateTime property value. + * @param value Value to set for the startDateTime property. + */ + public set startDateTime(value: DateTimeTimeZone | undefined) { + this._startDateTime = value; + }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts index 41139fc92..2e2ca30a1 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts @@ -4,23 +4,42 @@ import {InferenceClassificationOverride} from './inferenceClassificationOverride export class InferenceClassification extends Entity implements Parsable { /** A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. */ - public overrides?: InferenceClassificationOverride[] | undefined; + private _overrides?: InferenceClassificationOverride[] | undefined; + /** + * Instantiates a new InferenceClassification and sets the default values. + */ + public constructor() { + super(); + }; + /** + * Gets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. + * @returns a inferenceClassificationOverride + */ + public get overrides() { + return this._overrides; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["overrides", (o, n) => { (o as unknown as InferenceClassification).overrides = n.getCollectionOfObjectValues(InferenceClassificationOverride); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfObjectValues("overrides", this.overrides); }; + /** + * Sets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. + * @param value Value to set for the overrides property. + */ + public set overrides(value: InferenceClassificationOverride[] | undefined) { + this._overrides = value; + }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts index 21a445dcf..4e890f6c5 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts @@ -4,26 +4,59 @@ import {Entity} from '../entity'; import {InferenceClassificationType} from '../inferenceClassificationType'; export class InferenceClassificationOverride extends Entity implements Parsable { - public classifyAs?: InferenceClassificationType | undefined; - public senderEmailAddress?: EmailAddress | undefined; + private _classifyAs?: InferenceClassificationType | undefined; + private _senderEmailAddress?: EmailAddress | undefined; + /** + * Instantiates a new inferenceClassificationOverride and sets the default values. + */ + public constructor() { + super(); + }; + /** + * Gets the classifyAs property value. + * @returns a inferenceClassificationType + */ + public get classifyAs() { + return this._classifyAs; + }; + /** + * Gets the senderEmailAddress property value. + * @returns a emailAddress + */ + public get senderEmailAddress() { + return this._senderEmailAddress; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["classifyAs", (o, n) => { (o as unknown as InferenceClassificationOverride).classifyAs = n.getEnumValue(InferenceClassificationType); }], ["senderEmailAddress", (o, n) => { (o as unknown as InferenceClassificationOverride).senderEmailAddress = n.getObjectValue(EmailAddress); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeEnumValue("classifyAs", this.classifyAs); writer.writeObjectValue("senderEmailAddress", this.senderEmailAddress); }; + /** + * Sets the classifyAs property value. + * @param value Value to set for the classifyAs property. + */ + public set classifyAs(value: InferenceClassificationType | undefined) { + this._classifyAs = value; + }; + /** + * Sets the senderEmailAddress property value. + * @param value Value to set for the senderEmailAddress property. + */ + public set senderEmailAddress(value: EmailAddress | undefined) { + this._senderEmailAddress = value; + }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts index f1a4c6287..ea902da7e 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts @@ -17,15 +17,21 @@ export class InferenceClassificationRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/inferenceClassification"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new InferenceClassificationRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/inferenceClassification"; + }; /** * Delete navigation property inferenceClassification for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -38,7 +44,7 @@ export class InferenceClassificationRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -55,7 +61,7 @@ export class InferenceClassificationRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: InferenceClassification, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: InferenceClassification | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -67,9 +73,8 @@ export class InferenceClassificationRequestBuilder { * Delete navigation property inferenceClassification for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -82,7 +87,7 @@ export class InferenceClassificationRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of InferenceClassification */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -96,7 +101,7 @@ export class InferenceClassificationRequestBuilder { * @param id Unique identifier of the item * @returns a InferenceClassificationOverrideRequestBuilder */ - public overridesById (id: String) : InferenceClassificationOverrideRequestBuilder { + public overridesById(id: String) : InferenceClassificationOverrideRequestBuilder { const builder = new InferenceClassificationOverrideRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/overrides/" + id; builder.httpCore = this.httpCore; @@ -108,9 +113,8 @@ export class InferenceClassificationRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: InferenceClassification, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: InferenceClassification | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts index 19bf74d7b..49e3a1077 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts @@ -8,15 +8,21 @@ export class InferenceClassificationOverrideRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new InferenceClassificationOverrideRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property overrides for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class InferenceClassificationOverrideRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class InferenceClassificationOverrideRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: InferenceClassificationOverride, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: InferenceClassificationOverride | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class InferenceClassificationOverrideRequestBuilder { * Delete navigation property overrides for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class InferenceClassificationOverrideRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of InferenceClassificationOverride */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class InferenceClassificationOverrideRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: InferenceClassificationOverride, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: InferenceClassificationOverride | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts index 12dde9323..091840ef1 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts @@ -9,16 +9,22 @@ export class OverridesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/overrides"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new OverridesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/overrides"; + }; /** * Get overrides from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class OverridesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: InferenceClassificationOverride, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: InferenceClassificationOverride | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class OverridesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of OverridesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class OverridesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of InferenceClassificationOverride */ - public post (body: InferenceClassificationOverride, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: InferenceClassificationOverride | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts index dc5e04f49..f4ae5caae 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts @@ -3,27 +3,74 @@ import {InferenceClassificationOverride} from '../inferenceClassificationOverrid export class OverridesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: InferenceClassificationOverride[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: InferenceClassificationOverride[] | undefined; + /** + * Instantiates a new OverridesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a inferenceClassificationOverride + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as OverridesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as OverridesResponse).value = n.getCollectionOfObjectValues(InferenceClassificationOverride); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: InferenceClassificationOverride[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/internetMessageHeader.ts b/msgraph-mail/typescript/src/users/internetMessageHeader.ts index 7395d969c..ff61c963c 100644 --- a/msgraph-mail/typescript/src/users/internetMessageHeader.ts +++ b/msgraph-mail/typescript/src/users/internetMessageHeader.ts @@ -2,29 +2,76 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class InternetMessageHeader implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map; /** Represents the key in a key-value pair. */ - public name?: string | undefined; + private _name?: string | undefined; /** The value in a key-value pair. */ - public value?: string | undefined; + private _value?: string | undefined; + /** + * Instantiates a new internetMessageHeader and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the name property value. Represents the key in a key-value pair. + * @returns a string + */ + public get name() { + return this._name; + }; + /** + * Gets the value property value. The value in a key-value pair. + * @returns a string + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["name", (o, n) => { (o as unknown as InternetMessageHeader).name = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as InternetMessageHeader).value = n.getStringValue(); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("name", this.name); writer.writeStringValue("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the name property value. Represents the key in a key-value pair. + * @param value Value to set for the name property. + */ + public set name(value: string | undefined) { + this._name = value; + }; + /** + * Sets the value property value. The value in a key-value pair. + * @param value Value to set for the value property. + */ + public set value(value: string | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts b/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts index 10b9a88ae..fdbdeda42 100644 --- a/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts @@ -33,15 +33,21 @@ export class UserRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new UserRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders collection * @param id Unique identifier of the item * @returns a MailFolderRequestBuilder */ - public mailFoldersById (id: String) : MailFolderRequestBuilder { + public mailFoldersById(id: String) : MailFolderRequestBuilder { const builder = new MailFolderRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/mailFolders/" + id; builder.httpCore = this.httpCore; @@ -53,7 +59,7 @@ export class UserRequestBuilder { * @param id Unique identifier of the item * @returns a MessageRequestBuilder */ - public messagesById (id: String) : MessageRequestBuilder { + public messagesById(id: String) : MessageRequestBuilder { const builder = new MessageRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/messages/" + id; builder.httpCore = this.httpCore; diff --git a/msgraph-mail/typescript/src/users/itemBody.ts b/msgraph-mail/typescript/src/users/itemBody.ts index 0d3603930..b6187ec8e 100644 --- a/msgraph-mail/typescript/src/users/itemBody.ts +++ b/msgraph-mail/typescript/src/users/itemBody.ts @@ -3,28 +3,75 @@ import {BodyType} from './bodyType'; export class ItemBody implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map; /** The content of the item. */ - public content?: string | undefined; - public contentType?: BodyType | undefined; + private _content?: string | undefined; + private _contentType?: BodyType | undefined; + /** + * Instantiates a new itemBody and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the content property value. The content of the item. + * @returns a string + */ + public get content() { + return this._content; + }; + /** + * Gets the contentType property value. + * @returns a bodyType + */ + public get contentType() { + return this._contentType; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["content", (o, n) => { (o as unknown as ItemBody).content = n.getStringValue(); }], ["contentType", (o, n) => { (o as unknown as ItemBody).contentType = n.getEnumValue(BodyType); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("content", this.content); writer.writeEnumValue("contentType", this.contentType); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the content property value. The content of the item. + * @param value Value to set for the content property. + */ + public set content(value: string | undefined) { + this._content = value; + }; + /** + * Sets the contentType property value. + * @param value Value to set for the contentType property. + */ + public set contentType(value: BodyType | undefined) { + this._contentType = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolder.ts b/msgraph-mail/typescript/src/users/mailFolder.ts index d114b9b14..3277ae01b 100644 --- a/msgraph-mail/typescript/src/users/mailFolder.ts +++ b/msgraph-mail/typescript/src/users/mailFolder.ts @@ -7,32 +7,115 @@ import {SingleValueLegacyExtendedProperty} from './singleValueLegacyExtendedProp export class MailFolder extends Entity implements Parsable { /** The number of immediate child mailFolders in the current mailFolder. */ - public childFolderCount?: number | undefined; + private _childFolderCount?: number | undefined; /** The collection of child folders in the mailFolder. */ - public childFolders?: MailFolder[] | undefined; + private _childFolders?: MailFolder[] | undefined; /** The mailFolder's display name. */ - public displayName?: string | undefined; + private _displayName?: string | undefined; /** Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. */ - public isHidden?: boolean | undefined; + private _isHidden?: boolean | undefined; /** The collection of rules that apply to the user's Inbox folder. */ - public messageRules?: MessageRule[] | undefined; + private _messageRules?: MessageRule[] | undefined; /** The collection of messages in the mailFolder. */ - public messages?: Message[] | undefined; + private _messages?: Message[] | undefined; /** The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. */ - public multiValueExtendedProperties?: MultiValueLegacyExtendedProperty[] | undefined; + private _multiValueExtendedProperties?: MultiValueLegacyExtendedProperty[] | undefined; /** The unique identifier for the mailFolder's parent mailFolder. */ - public parentFolderId?: string | undefined; + private _parentFolderId?: string | undefined; /** The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. */ - public singleValueExtendedProperties?: SingleValueLegacyExtendedProperty[] | undefined; + private _singleValueExtendedProperties?: SingleValueLegacyExtendedProperty[] | undefined; /** The number of items in the mailFolder. */ - public totalItemCount?: number | undefined; + private _totalItemCount?: number | undefined; /** The number of items in the mailFolder marked as unread. */ - public unreadItemCount?: number | undefined; + private _unreadItemCount?: number | undefined; + /** + * Instantiates a new mailFolder and sets the default values. + */ + public constructor() { + super(); + }; + /** + * Gets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. + * @returns a integer + */ + public get childFolderCount() { + return this._childFolderCount; + }; + /** + * Gets the childFolders property value. The collection of child folders in the mailFolder. + * @returns a mailFolder + */ + public get childFolders() { + return this._childFolders; + }; + /** + * Gets the displayName property value. The mailFolder's display name. + * @returns a string + */ + public get displayName() { + return this._displayName; + }; + /** + * Gets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. + * @returns a boolean + */ + public get isHidden() { + return this._isHidden; + }; + /** + * Gets the messageRules property value. The collection of rules that apply to the user's Inbox folder. + * @returns a messageRule + */ + public get messageRules() { + return this._messageRules; + }; + /** + * Gets the messages property value. The collection of messages in the mailFolder. + * @returns a message + */ + public get messages() { + return this._messages; + }; + /** + * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. + * @returns a multiValueLegacyExtendedProperty + */ + public get multiValueExtendedProperties() { + return this._multiValueExtendedProperties; + }; + /** + * Gets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. + * @returns a string + */ + public get parentFolderId() { + return this._parentFolderId; + }; + /** + * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. + * @returns a singleValueLegacyExtendedProperty + */ + public get singleValueExtendedProperties() { + return this._singleValueExtendedProperties; + }; + /** + * Gets the totalItemCount property value. The number of items in the mailFolder. + * @returns a integer + */ + public get totalItemCount() { + return this._totalItemCount; + }; + /** + * Gets the unreadItemCount property value. The number of items in the mailFolder marked as unread. + * @returns a integer + */ + public get unreadItemCount() { + return this._unreadItemCount; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["childFolderCount", (o, n) => { (o as unknown as MailFolder).childFolderCount = n.getNumberValue(); }], ["childFolders", (o, n) => { (o as unknown as MailFolder).childFolders = n.getCollectionOfObjectValues(MailFolder); }], @@ -48,11 +131,10 @@ export class MailFolder extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeNumberValue("childFolderCount", this.childFolderCount); writer.writeCollectionOfObjectValues("childFolders", this.childFolders); @@ -66,4 +148,81 @@ export class MailFolder extends Entity implements Parsable { writer.writeNumberValue("totalItemCount", this.totalItemCount); writer.writeNumberValue("unreadItemCount", this.unreadItemCount); }; + /** + * Sets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. + * @param value Value to set for the childFolderCount property. + */ + public set childFolderCount(value: number | undefined) { + this._childFolderCount = value; + }; + /** + * Sets the childFolders property value. The collection of child folders in the mailFolder. + * @param value Value to set for the childFolders property. + */ + public set childFolders(value: MailFolder[] | undefined) { + this._childFolders = value; + }; + /** + * Sets the displayName property value. The mailFolder's display name. + * @param value Value to set for the displayName property. + */ + public set displayName(value: string | undefined) { + this._displayName = value; + }; + /** + * Sets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. + * @param value Value to set for the isHidden property. + */ + public set isHidden(value: boolean | undefined) { + this._isHidden = value; + }; + /** + * Sets the messageRules property value. The collection of rules that apply to the user's Inbox folder. + * @param value Value to set for the messageRules property. + */ + public set messageRules(value: MessageRule[] | undefined) { + this._messageRules = value; + }; + /** + * Sets the messages property value. The collection of messages in the mailFolder. + * @param value Value to set for the messages property. + */ + public set messages(value: Message[] | undefined) { + this._messages = value; + }; + /** + * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. + * @param value Value to set for the multiValueExtendedProperties property. + */ + public set multiValueExtendedProperties(value: MultiValueLegacyExtendedProperty[] | undefined) { + this._multiValueExtendedProperties = value; + }; + /** + * Sets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. + * @param value Value to set for the parentFolderId property. + */ + public set parentFolderId(value: string | undefined) { + this._parentFolderId = value; + }; + /** + * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. + * @param value Value to set for the singleValueExtendedProperties property. + */ + public set singleValueExtendedProperties(value: SingleValueLegacyExtendedProperty[] | undefined) { + this._singleValueExtendedProperties = value; + }; + /** + * Sets the totalItemCount property value. The number of items in the mailFolder. + * @param value Value to set for the totalItemCount property. + */ + public set totalItemCount(value: number | undefined) { + this._totalItemCount = value; + }; + /** + * Sets the unreadItemCount property value. The number of items in the mailFolder marked as unread. + * @param value Value to set for the unreadItemCount property. + */ + public set unreadItemCount(value: number | undefined) { + this._unreadItemCount = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts index 18329b153..600d3081b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts @@ -9,16 +9,22 @@ export class ChildFoldersRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/childFolders"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ChildFoldersRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/childFolders"; + }; /** * Get childFolders from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class ChildFoldersRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MailFolder, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class ChildFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ChildFoldersResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class ChildFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public post (body: MailFolder, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts index a1f209358..b587dc5fb 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts @@ -3,27 +3,74 @@ import {MailFolder} from '../../mailFolder'; export class ChildFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MailFolder[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: MailFolder[] | undefined; + /** + * Instantiates a new ChildFoldersResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a mailFolder + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as ChildFoldersResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as ChildFoldersResponse).value = n.getCollectionOfObjectValues(MailFolder); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: MailFolder[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts index b80adbfb0..7a57e070f 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts @@ -8,15 +8,21 @@ export class MailFolderRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MailFolderRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property childFolders for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MailFolderRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MailFolder, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class MailFolderRequestBuilder { * Delete navigation property childFolders for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class MailFolderRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class MailFolderRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MailFolder, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts index 86fe38602..c74e90568 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts @@ -45,7 +45,7 @@ export class MailFolderRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { @@ -60,19 +60,25 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a MailFolderRequestBuilder */ - public childFoldersById (id: String) : MailFolderRequestBuilder { + public childFoldersById(id: String) : MailFolderRequestBuilder { const builder = new MailFolderRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/childFolders/" + id; builder.httpCore = this.httpCore; builder.serializerFactory = this.serializerFactory; return builder; }; + /** + * Instantiates a new MailFolderRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property mailFolders for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -85,7 +91,7 @@ export class MailFolderRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -102,7 +108,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MailFolder, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -114,9 +120,8 @@ export class MailFolderRequestBuilder { * Delete navigation property mailFolders for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -129,7 +134,7 @@ export class MailFolderRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -143,7 +148,7 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a MessageRuleRequestBuilder */ - public messageRulesById (id: String) : MessageRuleRequestBuilder { + public messageRulesById(id: String) : MessageRuleRequestBuilder { const builder = new MessageRuleRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/messageRules/" + id; builder.httpCore = this.httpCore; @@ -155,7 +160,7 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a MessageRequestBuilder */ - public messagesById (id: String) : MessageRequestBuilder { + public messagesById(id: String) : MessageRequestBuilder { const builder = new MessageRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/messages/" + id; builder.httpCore = this.httpCore; @@ -167,7 +172,7 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a MultiValueLegacyExtendedPropertyRequestBuilder */ - public multiValueExtendedPropertiesById (id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { + public multiValueExtendedPropertiesById(id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { const builder = new MultiValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/multiValueExtendedProperties/" + id; builder.httpCore = this.httpCore; @@ -179,9 +184,8 @@ export class MailFolderRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MailFolder, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -192,7 +196,7 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a SingleValueLegacyExtendedPropertyRequestBuilder */ - public singleValueExtendedPropertiesById (id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { + public singleValueExtendedPropertiesById(id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { const builder = new SingleValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/singleValueExtendedProperties/" + id; builder.httpCore = this.httpCore; diff --git a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts index 7114c71c0..907ce8404 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts @@ -9,16 +9,22 @@ export class MailFoldersRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/mailFolders"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MailFoldersRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/mailFolders"; + }; /** * Get mailFolders from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MailFoldersRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MailFolder, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MailFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFoldersResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class MailFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public post (body: MailFolder, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts index 441d42693..a8f4575fa 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts @@ -3,27 +3,74 @@ import {MailFolder} from '../mailFolder'; export class MailFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MailFolder[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: MailFolder[] | undefined; + /** + * Instantiates a new MailFoldersResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a mailFolder + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MailFoldersResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MailFoldersResponse).value = n.getCollectionOfObjectValues(MailFolder); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: MailFolder[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts index 2529f98c6..4a699f61b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts @@ -4,33 +4,123 @@ import {Recipient} from '../recipient'; export class MessageRuleActions implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map; /** A list of categories to be assigned to a message. */ - public assignCategories?: string[] | undefined; + private _assignCategories?: string[] | undefined; /** The ID of a folder that a message is to be copied to. */ - public copyToFolder?: string | undefined; + private _copyToFolder?: string | undefined; /** Indicates whether a message should be moved to the Deleted Items folder. */ - public delete?: boolean | undefined; + private _delete?: boolean | undefined; /** The email addresses of the recipients to which a message should be forwarded as an attachment. */ - public forwardAsAttachmentTo?: Recipient[] | undefined; + private _forwardAsAttachmentTo?: Recipient[] | undefined; /** The email addresses of the recipients to which a message should be forwarded. */ - public forwardTo?: Recipient[] | undefined; + private _forwardTo?: Recipient[] | undefined; /** Indicates whether a message should be marked as read. */ - public markAsRead?: boolean | undefined; - public markImportance?: Importance | undefined; + private _markAsRead?: boolean | undefined; + private _markImportance?: Importance | undefined; /** The ID of the folder that a message will be moved to. */ - public moveToFolder?: string | undefined; + private _moveToFolder?: string | undefined; /** Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. */ - public permanentDelete?: boolean | undefined; + private _permanentDelete?: boolean | undefined; /** The email address to which a message should be redirected. */ - public redirectTo?: Recipient[] | undefined; + private _redirectTo?: Recipient[] | undefined; /** Indicates whether subsequent rules should be evaluated. */ - public stopProcessingRules?: boolean | undefined; + private _stopProcessingRules?: boolean | undefined; + /** + * Instantiates a new messageRuleActions and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the assignCategories property value. A list of categories to be assigned to a message. + * @returns a string + */ + public get assignCategories() { + return this._assignCategories; + }; + /** + * Gets the copyToFolder property value. The ID of a folder that a message is to be copied to. + * @returns a string + */ + public get copyToFolder() { + return this._copyToFolder; + }; + /** + * Gets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. + * @returns a boolean + */ + public get delete() { + return this._delete; + }; + /** + * Gets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. + * @returns a recipient + */ + public get forwardAsAttachmentTo() { + return this._forwardAsAttachmentTo; + }; + /** + * Gets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. + * @returns a recipient + */ + public get forwardTo() { + return this._forwardTo; + }; + /** + * Gets the markAsRead property value. Indicates whether a message should be marked as read. + * @returns a boolean + */ + public get markAsRead() { + return this._markAsRead; + }; + /** + * Gets the markImportance property value. + * @returns a importance + */ + public get markImportance() { + return this._markImportance; + }; + /** + * Gets the moveToFolder property value. The ID of the folder that a message will be moved to. + * @returns a string + */ + public get moveToFolder() { + return this._moveToFolder; + }; + /** + * Gets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. + * @returns a boolean + */ + public get permanentDelete() { + return this._permanentDelete; + }; + /** + * Gets the redirectTo property value. The email address to which a message should be redirected. + * @returns a recipient + */ + public get redirectTo() { + return this._redirectTo; + }; + /** + * Gets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. + * @returns a boolean + */ + public get stopProcessingRules() { + return this._stopProcessingRules; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["assignCategories", (o, n) => { (o as unknown as MessageRuleActions).assignCategories = n.getCollectionOfPrimitiveValues(); }], ["copyToFolder", (o, n) => { (o as unknown as MessageRuleActions).copyToFolder = n.getStringValue(); }], @@ -46,11 +136,10 @@ export class MessageRuleActions implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeCollectionOfPrimitiveValues("assignCategories", this.assignCategories); writer.writeStringValue("copyToFolder", this.copyToFolder); writer.writeBooleanValue("delete", this.delete); @@ -64,4 +153,88 @@ export class MessageRuleActions implements Parsable { writer.writeBooleanValue("stopProcessingRules", this.stopProcessingRules); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the assignCategories property value. A list of categories to be assigned to a message. + * @param value Value to set for the assignCategories property. + */ + public set assignCategories(value: string[] | undefined) { + this._assignCategories = value; + }; + /** + * Sets the copyToFolder property value. The ID of a folder that a message is to be copied to. + * @param value Value to set for the copyToFolder property. + */ + public set copyToFolder(value: string | undefined) { + this._copyToFolder = value; + }; + /** + * Sets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. + * @param value Value to set for the delete property. + */ + public set delete(value: boolean | undefined) { + this._delete = value; + }; + /** + * Sets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. + * @param value Value to set for the forwardAsAttachmentTo property. + */ + public set forwardAsAttachmentTo(value: Recipient[] | undefined) { + this._forwardAsAttachmentTo = value; + }; + /** + * Sets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. + * @param value Value to set for the forwardTo property. + */ + public set forwardTo(value: Recipient[] | undefined) { + this._forwardTo = value; + }; + /** + * Sets the markAsRead property value. Indicates whether a message should be marked as read. + * @param value Value to set for the markAsRead property. + */ + public set markAsRead(value: boolean | undefined) { + this._markAsRead = value; + }; + /** + * Sets the markImportance property value. + * @param value Value to set for the markImportance property. + */ + public set markImportance(value: Importance | undefined) { + this._markImportance = value; + }; + /** + * Sets the moveToFolder property value. The ID of the folder that a message will be moved to. + * @param value Value to set for the moveToFolder property. + */ + public set moveToFolder(value: string | undefined) { + this._moveToFolder = value; + }; + /** + * Sets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. + * @param value Value to set for the permanentDelete property. + */ + public set permanentDelete(value: boolean | undefined) { + this._permanentDelete = value; + }; + /** + * Sets the redirectTo property value. The email address to which a message should be redirected. + * @param value Value to set for the redirectTo property. + */ + public set redirectTo(value: Recipient[] | undefined) { + this._redirectTo = value; + }; + /** + * Sets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. + * @param value Value to set for the stopProcessingRules property. + */ + public set stopProcessingRules(value: boolean | undefined) { + this._stopProcessingRules = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts index ea78db59f..6af3d6064 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts @@ -7,68 +7,291 @@ import {SizeRange} from './sizeRange'; export class MessageRulePredicates implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map; /** Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. */ - public bodyContains?: string[] | undefined; + private _bodyContains?: string[] | undefined; /** Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. */ - public bodyOrSubjectContains?: string[] | undefined; + private _bodyOrSubjectContains?: string[] | undefined; /** Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. */ - public categories?: string[] | undefined; + private _categories?: string[] | undefined; /** Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. */ - public fromAddresses?: Recipient[] | undefined; + private _fromAddresses?: Recipient[] | undefined; /** Indicates whether an incoming message must have attachments in order for the condition or exception to apply. */ - public hasAttachments?: boolean | undefined; + private _hasAttachments?: boolean | undefined; /** Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. */ - public headerContains?: string[] | undefined; - public importance?: Importance | undefined; + private _headerContains?: string[] | undefined; + private _importance?: Importance | undefined; /** Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. */ - public isApprovalRequest?: boolean | undefined; + private _isApprovalRequest?: boolean | undefined; /** Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. */ - public isAutomaticForward?: boolean | undefined; + private _isAutomaticForward?: boolean | undefined; /** Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. */ - public isAutomaticReply?: boolean | undefined; + private _isAutomaticReply?: boolean | undefined; /** Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. */ - public isEncrypted?: boolean | undefined; + private _isEncrypted?: boolean | undefined; /** Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. */ - public isMeetingRequest?: boolean | undefined; + private _isMeetingRequest?: boolean | undefined; /** Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. */ - public isMeetingResponse?: boolean | undefined; + private _isMeetingResponse?: boolean | undefined; /** Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. */ - public isNonDeliveryReport?: boolean | undefined; + private _isNonDeliveryReport?: boolean | undefined; /** Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. */ - public isPermissionControlled?: boolean | undefined; + private _isPermissionControlled?: boolean | undefined; /** Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. */ - public isReadReceipt?: boolean | undefined; + private _isReadReceipt?: boolean | undefined; /** Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. */ - public isSigned?: boolean | undefined; + private _isSigned?: boolean | undefined; /** Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. */ - public isVoicemail?: boolean | undefined; - public messageActionFlag?: MessageActionFlag | undefined; + private _isVoicemail?: boolean | undefined; + private _messageActionFlag?: MessageActionFlag | undefined; /** Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. */ - public notSentToMe?: boolean | undefined; + private _notSentToMe?: boolean | undefined; /** Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. */ - public recipientContains?: string[] | undefined; + private _recipientContains?: string[] | undefined; /** Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. */ - public senderContains?: string[] | undefined; - public sensitivity?: Sensitivity | undefined; + private _senderContains?: string[] | undefined; + private _sensitivity?: Sensitivity | undefined; /** Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. */ - public sentCcMe?: boolean | undefined; + private _sentCcMe?: boolean | undefined; /** Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. */ - public sentOnlyToMe?: boolean | undefined; + private _sentOnlyToMe?: boolean | undefined; /** Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. */ - public sentToAddresses?: Recipient[] | undefined; + private _sentToAddresses?: Recipient[] | undefined; /** Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. */ - public sentToMe?: boolean | undefined; + private _sentToMe?: boolean | undefined; /** Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. */ - public sentToOrCcMe?: boolean | undefined; + private _sentToOrCcMe?: boolean | undefined; /** Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. */ - public subjectContains?: string[] | undefined; - public withinSizeRange?: SizeRange | undefined; + private _subjectContains?: string[] | undefined; + private _withinSizeRange?: SizeRange | undefined; + /** + * Instantiates a new messageRulePredicates and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get bodyContains() { + return this._bodyContains; + }; + /** + * Gets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get bodyOrSubjectContains() { + return this._bodyOrSubjectContains; + }; + /** + * Gets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. + * @returns a string + */ + public get categories() { + return this._categories; + }; + /** + * Gets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. + * @returns a recipient + */ + public get fromAddresses() { + return this._fromAddresses; + }; + /** + * Gets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. + * @returns a boolean + */ + public get hasAttachments() { + return this._hasAttachments; + }; + /** + * Gets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get headerContains() { + return this._headerContains; + }; + /** + * Gets the importance property value. + * @returns a importance + */ + public get importance() { + return this._importance; + }; + /** + * Gets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. + * @returns a boolean + */ + public get isApprovalRequest() { + return this._isApprovalRequest; + }; + /** + * Gets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. + * @returns a boolean + */ + public get isAutomaticForward() { + return this._isAutomaticForward; + }; + /** + * Gets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. + * @returns a boolean + */ + public get isAutomaticReply() { + return this._isAutomaticReply; + }; + /** + * Gets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. + * @returns a boolean + */ + public get isEncrypted() { + return this._isEncrypted; + }; + /** + * Gets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. + * @returns a boolean + */ + public get isMeetingRequest() { + return this._isMeetingRequest; + }; + /** + * Gets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. + * @returns a boolean + */ + public get isMeetingResponse() { + return this._isMeetingResponse; + }; + /** + * Gets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. + * @returns a boolean + */ + public get isNonDeliveryReport() { + return this._isNonDeliveryReport; + }; + /** + * Gets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. + * @returns a boolean + */ + public get isPermissionControlled() { + return this._isPermissionControlled; + }; + /** + * Gets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. + * @returns a boolean + */ + public get isReadReceipt() { + return this._isReadReceipt; + }; + /** + * Gets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. + * @returns a boolean + */ + public get isSigned() { + return this._isSigned; + }; + /** + * Gets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. + * @returns a boolean + */ + public get isVoicemail() { + return this._isVoicemail; + }; + /** + * Gets the messageActionFlag property value. + * @returns a messageActionFlag + */ + public get messageActionFlag() { + return this._messageActionFlag; + }; + /** + * Gets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get notSentToMe() { + return this._notSentToMe; + }; + /** + * Gets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get recipientContains() { + return this._recipientContains; + }; + /** + * Gets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get senderContains() { + return this._senderContains; + }; + /** + * Gets the sensitivity property value. + * @returns a sensitivity + */ + public get sensitivity() { + return this._sensitivity; + }; + /** + * Gets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get sentCcMe() { + return this._sentCcMe; + }; + /** + * Gets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get sentOnlyToMe() { + return this._sentOnlyToMe; + }; + /** + * Gets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. + * @returns a recipient + */ + public get sentToAddresses() { + return this._sentToAddresses; + }; + /** + * Gets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get sentToMe() { + return this._sentToMe; + }; + /** + * Gets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get sentToOrCcMe() { + return this._sentToOrCcMe; + }; + /** + * Gets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get subjectContains() { + return this._subjectContains; + }; + /** + * Gets the withinSizeRange property value. + * @returns a sizeRange + */ + public get withinSizeRange() { + return this._withinSizeRange; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["bodyContains", (o, n) => { (o as unknown as MessageRulePredicates).bodyContains = n.getCollectionOfPrimitiveValues(); }], ["bodyOrSubjectContains", (o, n) => { (o as unknown as MessageRulePredicates).bodyOrSubjectContains = n.getCollectionOfPrimitiveValues(); }], @@ -103,11 +326,10 @@ export class MessageRulePredicates implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeCollectionOfPrimitiveValues("bodyContains", this.bodyContains); writer.writeCollectionOfPrimitiveValues("bodyOrSubjectContains", this.bodyOrSubjectContains); writer.writeCollectionOfPrimitiveValues("categories", this.categories); @@ -140,4 +362,221 @@ export class MessageRulePredicates implements Parsable { writer.writeObjectValue("withinSizeRange", this.withinSizeRange); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the bodyContains property. + */ + public set bodyContains(value: string[] | undefined) { + this._bodyContains = value; + }; + /** + * Sets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the bodyOrSubjectContains property. + */ + public set bodyOrSubjectContains(value: string[] | undefined) { + this._bodyOrSubjectContains = value; + }; + /** + * Sets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. + * @param value Value to set for the categories property. + */ + public set categories(value: string[] | undefined) { + this._categories = value; + }; + /** + * Sets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the fromAddresses property. + */ + public set fromAddresses(value: Recipient[] | undefined) { + this._fromAddresses = value; + }; + /** + * Sets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. + * @param value Value to set for the hasAttachments property. + */ + public set hasAttachments(value: boolean | undefined) { + this._hasAttachments = value; + }; + /** + * Sets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the headerContains property. + */ + public set headerContains(value: string[] | undefined) { + this._headerContains = value; + }; + /** + * Sets the importance property value. + * @param value Value to set for the importance property. + */ + public set importance(value: Importance | undefined) { + this._importance = value; + }; + /** + * Sets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. + * @param value Value to set for the isApprovalRequest property. + */ + public set isApprovalRequest(value: boolean | undefined) { + this._isApprovalRequest = value; + }; + /** + * Sets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. + * @param value Value to set for the isAutomaticForward property. + */ + public set isAutomaticForward(value: boolean | undefined) { + this._isAutomaticForward = value; + }; + /** + * Sets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. + * @param value Value to set for the isAutomaticReply property. + */ + public set isAutomaticReply(value: boolean | undefined) { + this._isAutomaticReply = value; + }; + /** + * Sets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. + * @param value Value to set for the isEncrypted property. + */ + public set isEncrypted(value: boolean | undefined) { + this._isEncrypted = value; + }; + /** + * Sets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. + * @param value Value to set for the isMeetingRequest property. + */ + public set isMeetingRequest(value: boolean | undefined) { + this._isMeetingRequest = value; + }; + /** + * Sets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. + * @param value Value to set for the isMeetingResponse property. + */ + public set isMeetingResponse(value: boolean | undefined) { + this._isMeetingResponse = value; + }; + /** + * Sets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. + * @param value Value to set for the isNonDeliveryReport property. + */ + public set isNonDeliveryReport(value: boolean | undefined) { + this._isNonDeliveryReport = value; + }; + /** + * Sets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. + * @param value Value to set for the isPermissionControlled property. + */ + public set isPermissionControlled(value: boolean | undefined) { + this._isPermissionControlled = value; + }; + /** + * Sets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. + * @param value Value to set for the isReadReceipt property. + */ + public set isReadReceipt(value: boolean | undefined) { + this._isReadReceipt = value; + }; + /** + * Sets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. + * @param value Value to set for the isSigned property. + */ + public set isSigned(value: boolean | undefined) { + this._isSigned = value; + }; + /** + * Sets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. + * @param value Value to set for the isVoicemail property. + */ + public set isVoicemail(value: boolean | undefined) { + this._isVoicemail = value; + }; + /** + * Sets the messageActionFlag property value. + * @param value Value to set for the messageActionFlag property. + */ + public set messageActionFlag(value: MessageActionFlag | undefined) { + this._messageActionFlag = value; + }; + /** + * Sets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the notSentToMe property. + */ + public set notSentToMe(value: boolean | undefined) { + this._notSentToMe = value; + }; + /** + * Sets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the recipientContains property. + */ + public set recipientContains(value: string[] | undefined) { + this._recipientContains = value; + }; + /** + * Sets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the senderContains property. + */ + public set senderContains(value: string[] | undefined) { + this._senderContains = value; + }; + /** + * Sets the sensitivity property value. + * @param value Value to set for the sensitivity property. + */ + public set sensitivity(value: Sensitivity | undefined) { + this._sensitivity = value; + }; + /** + * Sets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentCcMe property. + */ + public set sentCcMe(value: boolean | undefined) { + this._sentCcMe = value; + }; + /** + * Sets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentOnlyToMe property. + */ + public set sentOnlyToMe(value: boolean | undefined) { + this._sentOnlyToMe = value; + }; + /** + * Sets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. + * @param value Value to set for the sentToAddresses property. + */ + public set sentToAddresses(value: Recipient[] | undefined) { + this._sentToAddresses = value; + }; + /** + * Sets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentToMe property. + */ + public set sentToMe(value: boolean | undefined) { + this._sentToMe = value; + }; + /** + * Sets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentToOrCcMe property. + */ + public set sentToOrCcMe(value: boolean | undefined) { + this._sentToOrCcMe = value; + }; + /** + * Sets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the subjectContains property. + */ + public set subjectContains(value: string[] | undefined) { + this._subjectContains = value; + }; + /** + * Sets the withinSizeRange property value. + * @param value Value to set for the withinSizeRange property. + */ + public set withinSizeRange(value: SizeRange | undefined) { + this._withinSizeRange = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts index e8f789451..52a570ea6 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts @@ -8,15 +8,21 @@ export class MessageRuleRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MessageRuleRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property messageRules for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MessageRuleRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MessageRuleRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MessageRule, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MessageRule | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class MessageRuleRequestBuilder { * Delete navigation property messageRules for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class MessageRuleRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessageRule */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class MessageRuleRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MessageRule, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MessageRule | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts index b2d2acf92..7d34e3920 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MessageRulesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/messageRules"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MessageRulesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/messageRules"; + }; /** * Get messageRules from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MessageRulesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MessageRule, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MessageRule | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MessageRulesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessageRulesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class MessageRulesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessageRule */ - public post (body: MessageRule, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MessageRule | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts index 1478bec33..43cdd5e3d 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts @@ -3,27 +3,74 @@ import {MessageRule} from '../../messageRule'; export class MessageRulesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MessageRule[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: MessageRule[] | undefined; + /** + * Instantiates a new MessageRulesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a messageRule + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MessageRulesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MessageRulesResponse).value = n.getCollectionOfObjectValues(MessageRule); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: MessageRule[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts index a691ab765..f01f6172b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts @@ -9,16 +9,22 @@ export class AttachmentsRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/attachments"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new AttachmentsRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/attachments"; + }; /** * Get attachments from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class AttachmentsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Attachment, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of AttachmentsResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public post (body: Attachment, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts index 303d4cf79..082f4e0f0 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts @@ -3,27 +3,74 @@ import {Attachment} from '../../../attachment'; export class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Attachment[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: Attachment[] | undefined; + /** + * Instantiates a new AttachmentsResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a attachment + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as AttachmentsResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as AttachmentsResponse).value = n.getCollectionOfObjectValues(Attachment); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: Attachment[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts index 6592ed091..274dc6940 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts @@ -8,15 +8,21 @@ export class AttachmentRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new AttachmentRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property attachments for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class AttachmentRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Attachment, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class AttachmentRequestBuilder { * Delete navigation property attachments for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class AttachmentRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class AttachmentRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Attachment, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts index 6a39e3191..9e98d3e7d 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts @@ -8,15 +8,21 @@ export class ContentRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/$value"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ContentRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/$value"; + }; /** * Get media content for the navigation property messages from users * @param h Request headers * @returns a RequestInfo */ - public createGetRequestInfo (h?: object | undefined) : RequestInfo { + public createGetRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.GET, @@ -29,7 +35,7 @@ export class ContentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPutRequestInfo (body: ReadableStream, h?: object | undefined) : RequestInfo { + public createPutRequestInfo(body: ReadableStream, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PUT, @@ -43,7 +49,7 @@ export class ContentRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ReadableStream */ - public get (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public get(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createGetRequestInfo( h ); @@ -54,9 +60,8 @@ export class ContentRequestBuilder { * @param body Binary request body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public put (body: ReadableStream, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public put(body: ReadableStream, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPutRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts index da378a2f9..9ac84ee1b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts @@ -9,16 +9,22 @@ export class ExtensionsRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/extensions"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ExtensionsRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/extensions"; + }; /** * Get extensions from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class ExtensionsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Extension, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ExtensionsResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public post (body: Extension, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts index 0deaf4f48..d63d4d04d 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts @@ -3,27 +3,74 @@ import {Extension} from '../../../extension'; export class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Extension[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: Extension[] | undefined; + /** + * Instantiates a new ExtensionsResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a extension + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as ExtensionsResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as ExtensionsResponse).value = n.getCollectionOfObjectValues(Extension); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: Extension[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts index d1fe1a6a8..44f48c1cc 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts @@ -8,15 +8,21 @@ export class ExtensionRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ExtensionRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property extensions for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class ExtensionRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Extension, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class ExtensionRequestBuilder { * Delete navigation property extensions for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class ExtensionRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class ExtensionRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Extension, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts index 06f6d3b7c..4d2f0c837 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts @@ -45,7 +45,7 @@ export class MessageRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { @@ -60,19 +60,25 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a AttachmentRequestBuilder */ - public attachmentsById (id: String) : AttachmentRequestBuilder { + public attachmentsById(id: String) : AttachmentRequestBuilder { const builder = new AttachmentRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/attachments/" + id; builder.httpCore = this.httpCore; builder.serializerFactory = this.serializerFactory; return builder; }; + /** + * Instantiates a new MessageRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property messages for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -85,7 +91,7 @@ export class MessageRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -102,7 +108,7 @@ export class MessageRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Message, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -114,9 +120,8 @@ export class MessageRequestBuilder { * Delete navigation property messages for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -127,7 +132,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a ExtensionRequestBuilder */ - public extensionsById (id: String) : ExtensionRequestBuilder { + public extensionsById(id: String) : ExtensionRequestBuilder { const builder = new ExtensionRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/extensions/" + id; builder.httpCore = this.httpCore; @@ -141,7 +146,7 @@ export class MessageRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -155,7 +160,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a MultiValueLegacyExtendedPropertyRequestBuilder */ - public multiValueExtendedPropertiesById (id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { + public multiValueExtendedPropertiesById(id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { const builder = new MultiValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/multiValueExtendedProperties/" + id; builder.httpCore = this.httpCore; @@ -167,9 +172,8 @@ export class MessageRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Message, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -180,7 +184,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a SingleValueLegacyExtendedPropertyRequestBuilder */ - public singleValueExtendedPropertiesById (id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { + public singleValueExtendedPropertiesById(id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { const builder = new SingleValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/singleValueExtendedProperties/" + id; builder.httpCore = this.httpCore; diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts index b47a2bea4..13750a271 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MessagesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/messages"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MessagesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/messages"; + }; /** * Get messages from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MessagesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Message, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessagesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public post (body: Message, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts index 2050598af..d9abdd869 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts @@ -3,27 +3,74 @@ import {Message} from '../../message'; export class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Message[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: Message[] | undefined; + /** + * Instantiates a new MessagesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a message + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MessagesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MessagesResponse).value = n.getCollectionOfObjectValues(Message); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: Message[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index c92cf4184..a39084b9b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index d0ffa674d..b9eec7708 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MultiValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/multiValueExtendedProperties"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/multiValueExtendedProperties"; + }; /** * Get multiValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public post (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts index 988a63469..9091fc5be 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts @@ -3,27 +3,74 @@ import {MultiValueLegacyExtendedProperty} from '../../../multiValueLegacyExtende export class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MultiValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: MultiValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a multiValueLegacyExtendedProperty + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: MultiValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index a4f1e8058..bb8b40e88 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index ace80cfe3..b46a2dfd8 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class SingleValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/singleValueExtendedProperties"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/singleValueExtendedProperties"; + }; /** * Get singleValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public post (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts index cccfafd48..bac0eae27 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts @@ -3,27 +3,74 @@ import {SingleValueLegacyExtendedProperty} from '../../../singleValueLegacyExten export class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: SingleValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: SingleValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a singleValueLegacyExtendedProperty + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: SingleValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index 8171ef5d7..7efa3369a 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index 9d0561ccd..de1addbd7 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MultiValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/multiValueExtendedProperties"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/multiValueExtendedProperties"; + }; /** * Get multiValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public post (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts index ff3d60186..d0a529dc4 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts @@ -3,27 +3,74 @@ import {MultiValueLegacyExtendedProperty} from '../../multiValueLegacyExtendedPr export class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MultiValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: MultiValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a multiValueLegacyExtendedProperty + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: MultiValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index b8f8f3057..a7acb8e95 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index fe401498f..76d3c65b3 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class SingleValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/singleValueExtendedProperties"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/singleValueExtendedProperties"; + }; /** * Get singleValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public post (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts index 2de99dc2b..d32da5230 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts @@ -3,27 +3,74 @@ import {SingleValueLegacyExtendedProperty} from '../../singleValueLegacyExtended export class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: SingleValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: SingleValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a singleValueLegacyExtendedProperty + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: SingleValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts b/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts index ef23d73a4..45d7644d4 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts @@ -2,29 +2,76 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class SizeRange implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map; /** The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ - public maximumSize?: number | undefined; + private _maximumSize?: number | undefined; /** The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ - public minimumSize?: number | undefined; + private _minimumSize?: number | undefined; + /** + * Instantiates a new sizeRange and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @returns a integer + */ + public get maximumSize() { + return this._maximumSize; + }; + /** + * Gets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @returns a integer + */ + public get minimumSize() { + return this._minimumSize; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["maximumSize", (o, n) => { (o as unknown as SizeRange).maximumSize = n.getNumberValue(); }], ["minimumSize", (o, n) => { (o as unknown as SizeRange).minimumSize = n.getNumberValue(); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeNumberValue("maximumSize", this.maximumSize); writer.writeNumberValue("minimumSize", this.minimumSize); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @param value Value to set for the maximumSize property. + */ + public set maximumSize(value: number | undefined) { + this._maximumSize = value; + }; + /** + * Sets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @param value Value to set for the minimumSize property. + */ + public set minimumSize(value: number | undefined) { + this._minimumSize = value; + }; } diff --git a/msgraph-mail/typescript/src/users/message.ts b/msgraph-mail/typescript/src/users/message.ts index f8b5f6059..75d4d805b 100644 --- a/msgraph-mail/typescript/src/users/message.ts +++ b/msgraph-mail/typescript/src/users/message.ts @@ -13,63 +13,279 @@ import {SingleValueLegacyExtendedProperty} from './singleValueLegacyExtendedProp export class Message extends OutlookItem implements Parsable { /** The fileAttachment and itemAttachment attachments for the message. */ - public attachments?: Attachment[] | undefined; + private _attachments?: Attachment[] | undefined; /** The Bcc: recipients for the message. */ - public bccRecipients?: Recipient[] | undefined; - public body?: ItemBody | undefined; + private _bccRecipients?: Recipient[] | undefined; + private _body?: ItemBody | undefined; /** The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. */ - public bodyPreview?: string | undefined; + private _bodyPreview?: string | undefined; /** The Cc: recipients for the message. */ - public ccRecipients?: Recipient[] | undefined; + private _ccRecipients?: Recipient[] | undefined; /** The ID of the conversation the email belongs to. */ - public conversationId?: string | undefined; + private _conversationId?: string | undefined; /** Indicates the position of the message within the conversation. */ - public conversationIndex?: string | undefined; + private _conversationIndex?: string | undefined; /** The collection of open extensions defined for the message. Nullable. */ - public extensions?: Extension[] | undefined; - public flag?: FollowupFlag | undefined; - public from?: Recipient | undefined; + private _extensions?: Extension[] | undefined; + private _flag?: FollowupFlag | undefined; + private _from?: Recipient | undefined; /** Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . */ - public hasAttachments?: boolean | undefined; - public importance?: Importance | undefined; - public inferenceClassification?: InferenceClassificationType | undefined; + private _hasAttachments?: boolean | undefined; + private _importance?: Importance | undefined; + private _inferenceClassification?: InferenceClassificationType | undefined; /** A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. */ - public internetMessageHeaders?: InternetMessageHeader[] | undefined; + private _internetMessageHeaders?: InternetMessageHeader[] | undefined; /** The message ID in the format specified by RFC2822. */ - public internetMessageId?: string | undefined; + private _internetMessageId?: string | undefined; /** Indicates whether a read receipt is requested for the message. */ - public isDeliveryReceiptRequested?: boolean | undefined; + private _isDeliveryReceiptRequested?: boolean | undefined; /** Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. */ - public isDraft?: boolean | undefined; + private _isDraft?: boolean | undefined; /** Indicates whether the message has been read. */ - public isRead?: boolean | undefined; + private _isRead?: boolean | undefined; /** Indicates whether a read receipt is requested for the message. */ - public isReadReceiptRequested?: boolean | undefined; + private _isReadReceiptRequested?: boolean | undefined; /** The collection of multi-value extended properties defined for the message. Nullable. */ - public multiValueExtendedProperties?: MultiValueLegacyExtendedProperty[] | undefined; + private _multiValueExtendedProperties?: MultiValueLegacyExtendedProperty[] | undefined; /** The unique identifier for the message's parent mailFolder. */ - public parentFolderId?: string | undefined; + private _parentFolderId?: string | undefined; /** The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ - public receivedDateTime?: Date | undefined; + private _receivedDateTime?: Date | undefined; /** The email addresses to use when replying. */ - public replyTo?: Recipient[] | undefined; - public sender?: Recipient | undefined; + private _replyTo?: Recipient[] | undefined; + private _sender?: Recipient | undefined; /** The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ - public sentDateTime?: Date | undefined; + private _sentDateTime?: Date | undefined; /** The collection of single-value extended properties defined for the message. Nullable. */ - public singleValueExtendedProperties?: SingleValueLegacyExtendedProperty[] | undefined; + private _singleValueExtendedProperties?: SingleValueLegacyExtendedProperty[] | undefined; /** The subject of the message. */ - public subject?: string | undefined; + private _subject?: string | undefined; /** The To: recipients for the message. */ - public toRecipients?: Recipient[] | undefined; - public uniqueBody?: ItemBody | undefined; + private _toRecipients?: Recipient[] | undefined; + private _uniqueBody?: ItemBody | undefined; /** The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. */ - public webLink?: string | undefined; + private _webLink?: string | undefined; + /** + * Instantiates a new message and sets the default values. + */ + public constructor() { + super(); + }; + /** + * Gets the attachments property value. The fileAttachment and itemAttachment attachments for the message. + * @returns a attachment + */ + public get attachments() { + return this._attachments; + }; + /** + * Gets the bccRecipients property value. The Bcc: recipients for the message. + * @returns a recipient + */ + public get bccRecipients() { + return this._bccRecipients; + }; + /** + * Gets the body property value. + * @returns a itemBody + */ + public get body() { + return this._body; + }; + /** + * Gets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. + * @returns a string + */ + public get bodyPreview() { + return this._bodyPreview; + }; + /** + * Gets the ccRecipients property value. The Cc: recipients for the message. + * @returns a recipient + */ + public get ccRecipients() { + return this._ccRecipients; + }; + /** + * Gets the conversationId property value. The ID of the conversation the email belongs to. + * @returns a string + */ + public get conversationId() { + return this._conversationId; + }; + /** + * Gets the conversationIndex property value. Indicates the position of the message within the conversation. + * @returns a string + */ + public get conversationIndex() { + return this._conversationIndex; + }; + /** + * Gets the extensions property value. The collection of open extensions defined for the message. Nullable. + * @returns a extension + */ + public get extensions() { + return this._extensions; + }; + /** + * Gets the flag property value. + * @returns a followupFlag + */ + public get flag() { + return this._flag; + }; + /** + * Gets the from property value. + * @returns a recipient + */ + public get from() { + return this._from; + }; + /** + * Gets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . + * @returns a boolean + */ + public get hasAttachments() { + return this._hasAttachments; + }; + /** + * Gets the importance property value. + * @returns a importance + */ + public get importance() { + return this._importance; + }; + /** + * Gets the inferenceClassification property value. + * @returns a inferenceClassificationType + */ + public get inferenceClassification() { + return this._inferenceClassification; + }; + /** + * Gets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. + * @returns a internetMessageHeader + */ + public get internetMessageHeaders() { + return this._internetMessageHeaders; + }; + /** + * Gets the internetMessageId property value. The message ID in the format specified by RFC2822. + * @returns a string + */ + public get internetMessageId() { + return this._internetMessageId; + }; + /** + * Gets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @returns a boolean + */ + public get isDeliveryReceiptRequested() { + return this._isDeliveryReceiptRequested; + }; + /** + * Gets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. + * @returns a boolean + */ + public get isDraft() { + return this._isDraft; + }; + /** + * Gets the isRead property value. Indicates whether the message has been read. + * @returns a boolean + */ + public get isRead() { + return this._isRead; + }; + /** + * Gets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @returns a boolean + */ + public get isReadReceiptRequested() { + return this._isReadReceiptRequested; + }; + /** + * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. + * @returns a multiValueLegacyExtendedProperty + */ + public get multiValueExtendedProperties() { + return this._multiValueExtendedProperties; + }; + /** + * Gets the parentFolderId property value. The unique identifier for the message's parent mailFolder. + * @returns a string + */ + public get parentFolderId() { + return this._parentFolderId; + }; + /** + * Gets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @returns a Date + */ + public get receivedDateTime() { + return this._receivedDateTime; + }; + /** + * Gets the replyTo property value. The email addresses to use when replying. + * @returns a recipient + */ + public get replyTo() { + return this._replyTo; + }; + /** + * Gets the sender property value. + * @returns a recipient + */ + public get sender() { + return this._sender; + }; + /** + * Gets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @returns a Date + */ + public get sentDateTime() { + return this._sentDateTime; + }; + /** + * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. + * @returns a singleValueLegacyExtendedProperty + */ + public get singleValueExtendedProperties() { + return this._singleValueExtendedProperties; + }; + /** + * Gets the subject property value. The subject of the message. + * @returns a string + */ + public get subject() { + return this._subject; + }; + /** + * Gets the toRecipients property value. The To: recipients for the message. + * @returns a recipient + */ + public get toRecipients() { + return this._toRecipients; + }; + /** + * Gets the uniqueBody property value. + * @returns a itemBody + */ + public get uniqueBody() { + return this._uniqueBody; + }; + /** + * Gets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. + * @returns a string + */ + public get webLink() { + return this._webLink; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["attachments", (o, n) => { (o as unknown as Message).attachments = n.getCollectionOfObjectValues(Attachment); }], ["bccRecipients", (o, n) => { (o as unknown as Message).bccRecipients = n.getCollectionOfObjectValues(Recipient); }], @@ -104,11 +320,10 @@ export class Message extends OutlookItem implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfObjectValues("attachments", this.attachments); writer.writeCollectionOfObjectValues("bccRecipients", this.bccRecipients); @@ -141,4 +356,214 @@ export class Message extends OutlookItem implements Parsable { writer.writeObjectValue("uniqueBody", this.uniqueBody); writer.writeStringValue("webLink", this.webLink); }; + /** + * Sets the attachments property value. The fileAttachment and itemAttachment attachments for the message. + * @param value Value to set for the attachments property. + */ + public set attachments(value: Attachment[] | undefined) { + this._attachments = value; + }; + /** + * Sets the bccRecipients property value. The Bcc: recipients for the message. + * @param value Value to set for the bccRecipients property. + */ + public set bccRecipients(value: Recipient[] | undefined) { + this._bccRecipients = value; + }; + /** + * Sets the body property value. + * @param value Value to set for the body property. + */ + public set body(value: ItemBody | undefined) { + this._body = value; + }; + /** + * Sets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. + * @param value Value to set for the bodyPreview property. + */ + public set bodyPreview(value: string | undefined) { + this._bodyPreview = value; + }; + /** + * Sets the ccRecipients property value. The Cc: recipients for the message. + * @param value Value to set for the ccRecipients property. + */ + public set ccRecipients(value: Recipient[] | undefined) { + this._ccRecipients = value; + }; + /** + * Sets the conversationId property value. The ID of the conversation the email belongs to. + * @param value Value to set for the conversationId property. + */ + public set conversationId(value: string | undefined) { + this._conversationId = value; + }; + /** + * Sets the conversationIndex property value. Indicates the position of the message within the conversation. + * @param value Value to set for the conversationIndex property. + */ + public set conversationIndex(value: string | undefined) { + this._conversationIndex = value; + }; + /** + * Sets the extensions property value. The collection of open extensions defined for the message. Nullable. + * @param value Value to set for the extensions property. + */ + public set extensions(value: Extension[] | undefined) { + this._extensions = value; + }; + /** + * Sets the flag property value. + * @param value Value to set for the flag property. + */ + public set flag(value: FollowupFlag | undefined) { + this._flag = value; + }; + /** + * Sets the from property value. + * @param value Value to set for the from property. + */ + public set from(value: Recipient | undefined) { + this._from = value; + }; + /** + * Sets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . + * @param value Value to set for the hasAttachments property. + */ + public set hasAttachments(value: boolean | undefined) { + this._hasAttachments = value; + }; + /** + * Sets the importance property value. + * @param value Value to set for the importance property. + */ + public set importance(value: Importance | undefined) { + this._importance = value; + }; + /** + * Sets the inferenceClassification property value. + * @param value Value to set for the inferenceClassification property. + */ + public set inferenceClassification(value: InferenceClassificationType | undefined) { + this._inferenceClassification = value; + }; + /** + * Sets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. + * @param value Value to set for the internetMessageHeaders property. + */ + public set internetMessageHeaders(value: InternetMessageHeader[] | undefined) { + this._internetMessageHeaders = value; + }; + /** + * Sets the internetMessageId property value. The message ID in the format specified by RFC2822. + * @param value Value to set for the internetMessageId property. + */ + public set internetMessageId(value: string | undefined) { + this._internetMessageId = value; + }; + /** + * Sets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @param value Value to set for the isDeliveryReceiptRequested property. + */ + public set isDeliveryReceiptRequested(value: boolean | undefined) { + this._isDeliveryReceiptRequested = value; + }; + /** + * Sets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. + * @param value Value to set for the isDraft property. + */ + public set isDraft(value: boolean | undefined) { + this._isDraft = value; + }; + /** + * Sets the isRead property value. Indicates whether the message has been read. + * @param value Value to set for the isRead property. + */ + public set isRead(value: boolean | undefined) { + this._isRead = value; + }; + /** + * Sets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @param value Value to set for the isReadReceiptRequested property. + */ + public set isReadReceiptRequested(value: boolean | undefined) { + this._isReadReceiptRequested = value; + }; + /** + * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. + * @param value Value to set for the multiValueExtendedProperties property. + */ + public set multiValueExtendedProperties(value: MultiValueLegacyExtendedProperty[] | undefined) { + this._multiValueExtendedProperties = value; + }; + /** + * Sets the parentFolderId property value. The unique identifier for the message's parent mailFolder. + * @param value Value to set for the parentFolderId property. + */ + public set parentFolderId(value: string | undefined) { + this._parentFolderId = value; + }; + /** + * Sets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the receivedDateTime property. + */ + public set receivedDateTime(value: Date | undefined) { + this._receivedDateTime = value; + }; + /** + * Sets the replyTo property value. The email addresses to use when replying. + * @param value Value to set for the replyTo property. + */ + public set replyTo(value: Recipient[] | undefined) { + this._replyTo = value; + }; + /** + * Sets the sender property value. + * @param value Value to set for the sender property. + */ + public set sender(value: Recipient | undefined) { + this._sender = value; + }; + /** + * Sets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the sentDateTime property. + */ + public set sentDateTime(value: Date | undefined) { + this._sentDateTime = value; + }; + /** + * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. + * @param value Value to set for the singleValueExtendedProperties property. + */ + public set singleValueExtendedProperties(value: SingleValueLegacyExtendedProperty[] | undefined) { + this._singleValueExtendedProperties = value; + }; + /** + * Sets the subject property value. The subject of the message. + * @param value Value to set for the subject property. + */ + public set subject(value: string | undefined) { + this._subject = value; + }; + /** + * Sets the toRecipients property value. The To: recipients for the message. + * @param value Value to set for the toRecipients property. + */ + public set toRecipients(value: Recipient[] | undefined) { + this._toRecipients = value; + }; + /** + * Sets the uniqueBody property value. + * @param value Value to set for the uniqueBody property. + */ + public set uniqueBody(value: ItemBody | undefined) { + this._uniqueBody = value; + }; + /** + * Sets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. + * @param value Value to set for the webLink property. + */ + public set webLink(value: string | undefined) { + this._webLink = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messageRule.ts b/msgraph-mail/typescript/src/users/messageRule.ts index 396cfa1aa..cc0bfd5e3 100644 --- a/msgraph-mail/typescript/src/users/messageRule.ts +++ b/msgraph-mail/typescript/src/users/messageRule.ts @@ -4,24 +4,86 @@ import {MessageRuleActions} from './mailFolders/messageRuleActions'; import {MessageRulePredicates} from './mailFolders/messageRulePredicates'; export class MessageRule extends Entity implements Parsable { - public actions?: MessageRuleActions | undefined; - public conditions?: MessageRulePredicates | undefined; + private _actions?: MessageRuleActions | undefined; + private _conditions?: MessageRulePredicates | undefined; /** The display name of the rule. */ - public displayName?: string | undefined; - public exceptions?: MessageRulePredicates | undefined; + private _displayName?: string | undefined; + private _exceptions?: MessageRulePredicates | undefined; /** Indicates whether the rule is in an error condition. Read-only. */ - public hasError?: boolean | undefined; + private _hasError?: boolean | undefined; /** Indicates whether the rule is enabled to be applied to messages. */ - public isEnabled?: boolean | undefined; + private _isEnabled?: boolean | undefined; /** Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. */ - public isReadOnly?: boolean | undefined; + private _isReadOnly?: boolean | undefined; /** Indicates the order in which the rule is executed, among other rules. */ - public sequence?: number | undefined; + private _sequence?: number | undefined; + /** + * Instantiates a new messageRule and sets the default values. + */ + public constructor() { + super(); + }; + /** + * Gets the actions property value. + * @returns a messageRuleActions + */ + public get actions() { + return this._actions; + }; + /** + * Gets the conditions property value. + * @returns a messageRulePredicates + */ + public get conditions() { + return this._conditions; + }; + /** + * Gets the displayName property value. The display name of the rule. + * @returns a string + */ + public get displayName() { + return this._displayName; + }; + /** + * Gets the exceptions property value. + * @returns a messageRulePredicates + */ + public get exceptions() { + return this._exceptions; + }; + /** + * Gets the hasError property value. Indicates whether the rule is in an error condition. Read-only. + * @returns a boolean + */ + public get hasError() { + return this._hasError; + }; + /** + * Gets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. + * @returns a boolean + */ + public get isEnabled() { + return this._isEnabled; + }; + /** + * Gets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. + * @returns a boolean + */ + public get isReadOnly() { + return this._isReadOnly; + }; + /** + * Gets the sequence property value. Indicates the order in which the rule is executed, among other rules. + * @returns a integer + */ + public get sequence() { + return this._sequence; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["actions", (o, n) => { (o as unknown as MessageRule).actions = n.getObjectValue(MessageRuleActions); }], ["conditions", (o, n) => { (o as unknown as MessageRule).conditions = n.getObjectValue(MessageRulePredicates); }], @@ -34,11 +96,10 @@ export class MessageRule extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeObjectValue("actions", this.actions); writer.writeObjectValue("conditions", this.conditions); @@ -49,4 +110,60 @@ export class MessageRule extends Entity implements Parsable { writer.writeBooleanValue("isReadOnly", this.isReadOnly); writer.writeNumberValue("sequence", this.sequence); }; + /** + * Sets the actions property value. + * @param value Value to set for the actions property. + */ + public set actions(value: MessageRuleActions | undefined) { + this._actions = value; + }; + /** + * Sets the conditions property value. + * @param value Value to set for the conditions property. + */ + public set conditions(value: MessageRulePredicates | undefined) { + this._conditions = value; + }; + /** + * Sets the displayName property value. The display name of the rule. + * @param value Value to set for the displayName property. + */ + public set displayName(value: string | undefined) { + this._displayName = value; + }; + /** + * Sets the exceptions property value. + * @param value Value to set for the exceptions property. + */ + public set exceptions(value: MessageRulePredicates | undefined) { + this._exceptions = value; + }; + /** + * Sets the hasError property value. Indicates whether the rule is in an error condition. Read-only. + * @param value Value to set for the hasError property. + */ + public set hasError(value: boolean | undefined) { + this._hasError = value; + }; + /** + * Sets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. + * @param value Value to set for the isEnabled property. + */ + public set isEnabled(value: boolean | undefined) { + this._isEnabled = value; + }; + /** + * Sets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. + * @param value Value to set for the isReadOnly property. + */ + public set isReadOnly(value: boolean | undefined) { + this._isReadOnly = value; + }; + /** + * Sets the sequence property value. Indicates the order in which the rule is executed, among other rules. + * @param value Value to set for the sequence property. + */ + public set sequence(value: number | undefined) { + this._sequence = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts index 53c3bb4b3..171703915 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts @@ -9,16 +9,22 @@ export class AttachmentsRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/attachments"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new AttachmentsRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/attachments"; + }; /** * Get attachments from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class AttachmentsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Attachment, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of AttachmentsResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public post (body: Attachment, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts index 7e7f62823..cf88d6f0d 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts @@ -3,27 +3,74 @@ import {Attachment} from '../../attachment'; export class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Attachment[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: Attachment[] | undefined; + /** + * Instantiates a new AttachmentsResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a attachment + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as AttachmentsResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as AttachmentsResponse).value = n.getCollectionOfObjectValues(Attachment); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: Attachment[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts index 83a83c09a..c746dec7e 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts @@ -8,15 +8,21 @@ export class AttachmentRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new AttachmentRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property attachments for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class AttachmentRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Attachment, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class AttachmentRequestBuilder { * Delete navigation property attachments for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class AttachmentRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class AttachmentRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Attachment, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts index 7e21efd2b..0866769dd 100644 --- a/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts @@ -8,15 +8,21 @@ export class ContentRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/$value"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ContentRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/$value"; + }; /** * Get media content for the navigation property messages from users * @param h Request headers * @returns a RequestInfo */ - public createGetRequestInfo (h?: object | undefined) : RequestInfo { + public createGetRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.GET, @@ -29,7 +35,7 @@ export class ContentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPutRequestInfo (body: ReadableStream, h?: object | undefined) : RequestInfo { + public createPutRequestInfo(body: ReadableStream, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PUT, @@ -43,7 +49,7 @@ export class ContentRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ReadableStream */ - public get (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public get(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createGetRequestInfo( h ); @@ -54,9 +60,8 @@ export class ContentRequestBuilder { * @param body Binary request body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public put (body: ReadableStream, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public put(body: ReadableStream, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPutRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts index c87fab74c..0e3055f6a 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts @@ -9,16 +9,22 @@ export class ExtensionsRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/extensions"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ExtensionsRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/extensions"; + }; /** * Get extensions from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class ExtensionsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Extension, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ExtensionsResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public post (body: Extension, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts b/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts index 65a657d7d..1023dd93c 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts @@ -3,27 +3,74 @@ import {Extension} from '../../extension'; export class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Extension[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: Extension[] | undefined; + /** + * Instantiates a new ExtensionsResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a extension + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as ExtensionsResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as ExtensionsResponse).value = n.getCollectionOfObjectValues(Extension); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: Extension[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts index 21f4d1397..e73bae680 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts @@ -8,15 +8,21 @@ export class ExtensionRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ExtensionRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property extensions for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class ExtensionRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Extension, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class ExtensionRequestBuilder { * Delete navigation property extensions for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class ExtensionRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class ExtensionRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Extension, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts index 594987ff6..b933a7c58 100644 --- a/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts @@ -45,7 +45,7 @@ export class MessageRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { @@ -60,19 +60,25 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a AttachmentRequestBuilder */ - public attachmentsById (id: String) : AttachmentRequestBuilder { + public attachmentsById(id: String) : AttachmentRequestBuilder { const builder = new AttachmentRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/attachments/" + id; builder.httpCore = this.httpCore; builder.serializerFactory = this.serializerFactory; return builder; }; + /** + * Instantiates a new MessageRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property messages for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -85,7 +91,7 @@ export class MessageRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -102,7 +108,7 @@ export class MessageRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Message, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -114,9 +120,8 @@ export class MessageRequestBuilder { * Delete navigation property messages for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -127,7 +132,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a ExtensionRequestBuilder */ - public extensionsById (id: String) : ExtensionRequestBuilder { + public extensionsById(id: String) : ExtensionRequestBuilder { const builder = new ExtensionRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/extensions/" + id; builder.httpCore = this.httpCore; @@ -141,7 +146,7 @@ export class MessageRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -155,7 +160,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a MultiValueLegacyExtendedPropertyRequestBuilder */ - public multiValueExtendedPropertiesById (id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { + public multiValueExtendedPropertiesById(id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { const builder = new MultiValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/multiValueExtendedProperties/" + id; builder.httpCore = this.httpCore; @@ -167,9 +172,8 @@ export class MessageRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Message, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -180,7 +184,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a SingleValueLegacyExtendedPropertyRequestBuilder */ - public singleValueExtendedPropertiesById (id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { + public singleValueExtendedPropertiesById(id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { const builder = new SingleValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/singleValueExtendedProperties/" + id; builder.httpCore = this.httpCore; diff --git a/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts index 74469bd42..698136246 100644 --- a/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MessagesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/messages"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MessagesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/messages"; + }; /** * Get messages from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MessagesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Message, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessagesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public post (body: Message, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/messagesResponse.ts b/msgraph-mail/typescript/src/users/messages/messagesResponse.ts index b21cbe6e4..14033287e 100644 --- a/msgraph-mail/typescript/src/users/messages/messagesResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/messagesResponse.ts @@ -3,27 +3,74 @@ import {Message} from '../message'; export class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Message[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: Message[] | undefined; + /** + * Instantiates a new MessagesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a message + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MessagesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MessagesResponse).value = n.getCollectionOfObjectValues(Message); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: Message[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index 4dcd45bc1..9e7682bcd 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index b4ac9f5f2..e86de61a2 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MultiValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/multiValueExtendedProperties"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/multiValueExtendedProperties"; + }; /** * Get multiValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public post (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts index ff3d60186..d0a529dc4 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts @@ -3,27 +3,74 @@ import {MultiValueLegacyExtendedProperty} from '../../multiValueLegacyExtendedPr export class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MultiValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: MultiValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a multiValueLegacyExtendedProperty + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: MultiValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index a81b03c28..5d3bbdc60 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = ""; + }; /** * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,9 +64,8 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -73,7 +78,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -87,9 +92,8 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index b934318e0..03e0e3244 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class SingleValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/singleValueExtendedProperties"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/singleValueExtendedProperties"; + }; /** * Get singleValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -78,7 +84,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public post (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts index 2de99dc2b..d32da5230 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts @@ -3,27 +3,74 @@ import {SingleValueLegacyExtendedProperty} from '../../singleValueLegacyExtended export class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: SingleValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map; + private _nextLink?: string | undefined; + private _value?: SingleValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink() { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a singleValueLegacyExtendedProperty + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink(value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value(value: SingleValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts b/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts index 99669c200..04af70797 100644 --- a/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts +++ b/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts @@ -3,23 +3,42 @@ import {Entity} from './entity'; export class MultiValueLegacyExtendedProperty extends Entity implements Parsable { /** A collection of property values. */ - public value?: string[] | undefined; + private _value?: string[] | undefined; + /** + * Instantiates a new multiValueLegacyExtendedProperty and sets the default values. + */ + public constructor() { + super(); + }; + /** + * Gets the value property value. A collection of property values. + * @returns a string + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["value", (o, n) => { (o as unknown as MultiValueLegacyExtendedProperty).value = n.getCollectionOfPrimitiveValues(); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfPrimitiveValues("value", this.value); }; + /** + * Sets the value property value. A collection of property values. + * @param value Value to set for the value property. + */ + public set value(value: string[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/outlookItem.ts b/msgraph-mail/typescript/src/users/outlookItem.ts index 777592984..af305f0c7 100644 --- a/msgraph-mail/typescript/src/users/outlookItem.ts +++ b/msgraph-mail/typescript/src/users/outlookItem.ts @@ -3,18 +3,52 @@ import {Entity} from './entity'; export class OutlookItem extends Entity implements Parsable { /** The categories associated with the item */ - public categories?: string[] | undefined; + private _categories?: string[] | undefined; /** Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. */ - public changeKey?: string | undefined; + private _changeKey?: string | undefined; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - public createdDateTime?: Date | undefined; + private _createdDateTime?: Date | undefined; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - public lastModifiedDateTime?: Date | undefined; + private _lastModifiedDateTime?: Date | undefined; + /** + * Instantiates a new outlookItem and sets the default values. + */ + public constructor() { + super(); + }; + /** + * Gets the categories property value. The categories associated with the item + * @returns a string + */ + public get categories() { + return this._categories; + }; + /** + * Gets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. + * @returns a string + */ + public get changeKey() { + return this._changeKey; + }; + /** + * Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @returns a Date + */ + public get createdDateTime() { + return this._createdDateTime; + }; + /** + * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @returns a Date + */ + public get lastModifiedDateTime() { + return this._lastModifiedDateTime; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["categories", (o, n) => { (o as unknown as OutlookItem).categories = n.getCollectionOfPrimitiveValues(); }], ["changeKey", (o, n) => { (o as unknown as OutlookItem).changeKey = n.getStringValue(); }], @@ -23,15 +57,42 @@ export class OutlookItem extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfPrimitiveValues("categories", this.categories); writer.writeStringValue("changeKey", this.changeKey); writer.writeDateValue("createdDateTime", this.createdDateTime); writer.writeDateValue("lastModifiedDateTime", this.lastModifiedDateTime); }; + /** + * Sets the categories property value. The categories associated with the item + * @param value Value to set for the categories property. + */ + public set categories(value: string[] | undefined) { + this._categories = value; + }; + /** + * Sets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. + * @param value Value to set for the changeKey property. + */ + public set changeKey(value: string | undefined) { + this._changeKey = value; + }; + /** + * Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the createdDateTime property. + */ + public set createdDateTime(value: Date | undefined) { + this._createdDateTime = value; + }; + /** + * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the lastModifiedDateTime property. + */ + public set lastModifiedDateTime(value: Date | undefined) { + this._lastModifiedDateTime = value; + }; } diff --git a/msgraph-mail/typescript/src/users/recipient.ts b/msgraph-mail/typescript/src/users/recipient.ts index 960993abf..a4fb1b7cb 100644 --- a/msgraph-mail/typescript/src/users/recipient.ts +++ b/msgraph-mail/typescript/src/users/recipient.ts @@ -3,24 +3,57 @@ import {EmailAddress} from './emailAddress'; export class Recipient implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public emailAddress?: EmailAddress | undefined; + private _additionalData: Map; + private _emailAddress?: EmailAddress | undefined; + /** + * Instantiates a new recipient and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData() { + return this._additionalData; + }; + /** + * Gets the emailAddress property value. + * @returns a emailAddress + */ + public get emailAddress() { + return this._emailAddress; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["emailAddress", (o, n) => { (o as unknown as Recipient).emailAddress = n.getObjectValue(EmailAddress); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeObjectValue("emailAddress", this.emailAddress); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData(value: Map) { + this._additionalData = value; + }; + /** + * Sets the emailAddress property value. + * @param value Value to set for the emailAddress property. + */ + public set emailAddress(value: EmailAddress | undefined) { + this._emailAddress = value; + }; } diff --git a/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts b/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts index 25052ba62..c2f9fdbda 100644 --- a/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts +++ b/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts @@ -3,23 +3,42 @@ import {Entity} from './entity'; export class SingleValueLegacyExtendedProperty extends Entity implements Parsable { /** A property value. */ - public value?: string | undefined; + private _value?: string | undefined; + /** + * Instantiates a new singleValueLegacyExtendedProperty and sets the default values. + */ + public constructor() { + super(); + }; + /** + * Gets the value property value. A property value. + * @returns a string + */ + public get value() { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["value", (o, n) => { (o as unknown as SingleValueLegacyExtendedProperty).value = n.getStringValue(); }], ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeStringValue("value", this.value); }; + /** + * Sets the value property value. A property value. + * @param value Value to set for the value property. + */ + public set value(value: string | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/usersRequestBuilder.ts b/msgraph-mail/typescript/src/users/usersRequestBuilder.ts index 579d20f40..550878129 100644 --- a/msgraph-mail/typescript/src/users/usersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/usersRequestBuilder.ts @@ -7,7 +7,13 @@ export class UsersRequestBuilder { /** Core service to use to execute the requests */ public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/users"; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ public serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new UsersRequestBuilder and sets the default values. + */ + public constructor() { + this.pathSegment = "/users"; + }; }