Class: MicrosoftGraph::Models::MessageRulePredicates

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/message_rule_predicates.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new messageRulePredicates and sets the default values.



169
170
171
# File 'lib/models/message_rule_predicates.rb', line 169

def initialize()
    @additional_data = Hash.new
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a message_rule_predicates

Raises:

  • (StandardError)


177
178
179
180
# File 'lib/models/message_rule_predicates.rb', line 177

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return MessageRulePredicates.new
end

Instance Method Details

#additional_dataObject

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 i_dictionary



109
110
111
# File 'lib/models/message_rule_predicates.rb', line 109

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



117
118
119
# File 'lib/models/message_rule_predicates.rb', line 117

def additional_data=(value)
    @additional_data = value
end

#body_containsObject

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



124
125
126
# File 'lib/models/message_rule_predicates.rb', line 124

def body_contains
    return @body_contains
end

#body_contains=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the bodyContains property.

Returns:

  • a void



132
133
134
# File 'lib/models/message_rule_predicates.rb', line 132

def body_contains=(value)
    @body_contains = value
end

#body_or_subject_containsObject

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



139
140
141
# File 'lib/models/message_rule_predicates.rb', line 139

def body_or_subject_contains
    return @body_or_subject_contains
end

#body_or_subject_contains=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the bodyOrSubjectContains property.

Returns:

  • a void



147
148
149
# File 'lib/models/message_rule_predicates.rb', line 147

def body_or_subject_contains=(value)
    @body_or_subject_contains = value
end

#categoriesObject

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



154
155
156
# File 'lib/models/message_rule_predicates.rb', line 154

def categories
    return @categories
end

#categories=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the categories property.

Returns:

  • a void



162
163
164
# File 'lib/models/message_rule_predicates.rb', line 162

def categories=(value)
    @categories = value
end

#from_addressesObject

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



185
186
187
# File 'lib/models/message_rule_predicates.rb', line 185

def from_addresses
    return @from_addresses
end

#from_addresses=(value) ⇒ Object

Sets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the fromAddresses property.

Returns:

  • a void



193
194
195
# File 'lib/models/message_rule_predicates.rb', line 193

def from_addresses=(value)
    @from_addresses = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# File 'lib/models/message_rule_predicates.rb', line 200

def get_field_deserializers()
    return {
        "bodyContains" => lambda {|n| @body_contains = n.get_collection_of_primitive_values(String) },
        "bodyOrSubjectContains" => lambda {|n| @body_or_subject_contains = n.get_collection_of_primitive_values(String) },
        "categories" => lambda {|n| @categories = n.get_collection_of_primitive_values(String) },
        "fromAddresses" => lambda {|n| @from_addresses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Recipient.create_from_discriminator_value(pn) }) },
        "hasAttachments" => lambda {|n| @has_attachments = n.get_boolean_value() },
        "headerContains" => lambda {|n| @header_contains = n.get_collection_of_primitive_values(String) },
        "importance" => lambda {|n| @importance = n.get_enum_value(MicrosoftGraph::Models::Importance) },
        "isApprovalRequest" => lambda {|n| @is_approval_request = n.get_boolean_value() },
        "isAutomaticForward" => lambda {|n| @is_automatic_forward = n.get_boolean_value() },
        "isAutomaticReply" => lambda {|n| @is_automatic_reply = n.get_boolean_value() },
        "isEncrypted" => lambda {|n| @is_encrypted = n.get_boolean_value() },
        "isMeetingRequest" => lambda {|n| @is_meeting_request = n.get_boolean_value() },
        "isMeetingResponse" => lambda {|n| @is_meeting_response = n.get_boolean_value() },
        "isNonDeliveryReport" => lambda {|n| @is_non_delivery_report = n.get_boolean_value() },
        "isPermissionControlled" => lambda {|n| @is_permission_controlled = n.get_boolean_value() },
        "isReadReceipt" => lambda {|n| @is_read_receipt = n.get_boolean_value() },
        "isSigned" => lambda {|n| @is_signed = n.get_boolean_value() },
        "isVoicemail" => lambda {|n| @is_voicemail = n.get_boolean_value() },
        "messageActionFlag" => lambda {|n| @message_action_flag = n.get_enum_value(MicrosoftGraph::Models::MessageActionFlag) },
        "notSentToMe" => lambda {|n| @not_sent_to_me = n.get_boolean_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "recipientContains" => lambda {|n| @recipient_contains = n.get_collection_of_primitive_values(String) },
        "senderContains" => lambda {|n| @sender_contains = n.get_collection_of_primitive_values(String) },
        "sensitivity" => lambda {|n| @sensitivity = n.get_enum_value(MicrosoftGraph::Models::Sensitivity) },
        "sentCcMe" => lambda {|n| @sent_cc_me = n.get_boolean_value() },
        "sentOnlyToMe" => lambda {|n| @sent_only_to_me = n.get_boolean_value() },
        "sentToAddresses" => lambda {|n| @sent_to_addresses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Recipient.create_from_discriminator_value(pn) }) },
        "sentToMe" => lambda {|n| @sent_to_me = n.get_boolean_value() },
        "sentToOrCcMe" => lambda {|n| @sent_to_or_cc_me = n.get_boolean_value() },
        "subjectContains" => lambda {|n| @subject_contains = n.get_collection_of_primitive_values(String) },
        "withinSizeRange" => lambda {|n| @within_size_range = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SizeRange.create_from_discriminator_value(pn) }) },
    }
end

#has_attachmentsObject

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



239
240
241
# File 'lib/models/message_rule_predicates.rb', line 239

def has_attachments
    return @has_attachments
end

#has_attachments=(value) ⇒ Object

Sets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the hasAttachments property.

Returns:

  • a void



247
248
249
# File 'lib/models/message_rule_predicates.rb', line 247

def has_attachments=(value)
    @has_attachments = value
end

#header_containsObject

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



254
255
256
# File 'lib/models/message_rule_predicates.rb', line 254

def header_contains
    return @header_contains
end

#header_contains=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the headerContains property.

Returns:

  • a void



262
263
264
# File 'lib/models/message_rule_predicates.rb', line 262

def header_contains=(value)
    @header_contains = value
end

#importanceObject

Gets the importance property value. The importance that is stamped on an incoming message in order for the condition or exception to apply: low, normal, high.

Returns:

  • a importance



269
270
271
# File 'lib/models/message_rule_predicates.rb', line 269

def importance
    return @importance
end

#importance=(value) ⇒ Object

Sets the importance property value. The importance that is stamped on an incoming message in order for the condition or exception to apply: low, normal, high.

Parameters:

  • value

    Value to set for the importance property.

Returns:

  • a void



277
278
279
# File 'lib/models/message_rule_predicates.rb', line 277

def importance=(value)
    @importance = value
end

#is_approval_requestObject

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



284
285
286
# File 'lib/models/message_rule_predicates.rb', line 284

def is_approval_request
    return @is_approval_request
end

#is_approval_request=(value) ⇒ Object

Sets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the isApprovalRequest property.

Returns:

  • a void



292
293
294
# File 'lib/models/message_rule_predicates.rb', line 292

def is_approval_request=(value)
    @is_approval_request = value
end

#is_automatic_forwardObject

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



299
300
301
# File 'lib/models/message_rule_predicates.rb', line 299

def is_automatic_forward
    return @is_automatic_forward
end

#is_automatic_forward=(value) ⇒ Object

Sets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the isAutomaticForward property.

Returns:

  • a void



307
308
309
# File 'lib/models/message_rule_predicates.rb', line 307

def is_automatic_forward=(value)
    @is_automatic_forward = value
end

#is_automatic_replyObject

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



314
315
316
# File 'lib/models/message_rule_predicates.rb', line 314

def is_automatic_reply
    return @is_automatic_reply
end

#is_automatic_reply=(value) ⇒ Object

Sets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the isAutomaticReply property.

Returns:

  • a void



322
323
324
# File 'lib/models/message_rule_predicates.rb', line 322

def is_automatic_reply=(value)
    @is_automatic_reply = value
end

#is_encryptedObject

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



329
330
331
# File 'lib/models/message_rule_predicates.rb', line 329

def is_encrypted
    return @is_encrypted
end

#is_encrypted=(value) ⇒ Object

Sets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the isEncrypted property.

Returns:

  • a void



337
338
339
# File 'lib/models/message_rule_predicates.rb', line 337

def is_encrypted=(value)
    @is_encrypted = value
end

#is_meeting_requestObject

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



344
345
346
# File 'lib/models/message_rule_predicates.rb', line 344

def is_meeting_request
    return @is_meeting_request
end

#is_meeting_request=(value) ⇒ Object

Sets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the isMeetingRequest property.

Returns:

  • a void



352
353
354
# File 'lib/models/message_rule_predicates.rb', line 352

def is_meeting_request=(value)
    @is_meeting_request = value
end

#is_meeting_responseObject

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



359
360
361
# File 'lib/models/message_rule_predicates.rb', line 359

def is_meeting_response
    return @is_meeting_response
end

#is_meeting_response=(value) ⇒ Object

Sets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the isMeetingResponse property.

Returns:

  • a void



367
368
369
# File 'lib/models/message_rule_predicates.rb', line 367

def is_meeting_response=(value)
    @is_meeting_response = value
end

#is_non_delivery_reportObject

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



374
375
376
# File 'lib/models/message_rule_predicates.rb', line 374

def is_non_delivery_report
    return @is_non_delivery_report
end

#is_non_delivery_report=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the isNonDeliveryReport property.

Returns:

  • a void



382
383
384
# File 'lib/models/message_rule_predicates.rb', line 382

def is_non_delivery_report=(value)
    @is_non_delivery_report = value
end

#is_permission_controlledObject

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



389
390
391
# File 'lib/models/message_rule_predicates.rb', line 389

def is_permission_controlled
    return @is_permission_controlled
end

#is_permission_controlled=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the isPermissionControlled property.

Returns:

  • a void



397
398
399
# File 'lib/models/message_rule_predicates.rb', line 397

def is_permission_controlled=(value)
    @is_permission_controlled = value
end

#is_read_receiptObject

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



404
405
406
# File 'lib/models/message_rule_predicates.rb', line 404

def is_read_receipt
    return @is_read_receipt
end

#is_read_receipt=(value) ⇒ Object

Sets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the isReadReceipt property.

Returns:

  • a void



412
413
414
# File 'lib/models/message_rule_predicates.rb', line 412

def is_read_receipt=(value)
    @is_read_receipt = value
end

#is_signedObject

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



419
420
421
# File 'lib/models/message_rule_predicates.rb', line 419

def is_signed
    return @is_signed
end

#is_signed=(value) ⇒ Object

Sets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the isSigned property.

Returns:

  • a void



427
428
429
# File 'lib/models/message_rule_predicates.rb', line 427

def is_signed=(value)
    @is_signed = value
end

#is_voicemailObject

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



434
435
436
# File 'lib/models/message_rule_predicates.rb', line 434

def is_voicemail
    return @is_voicemail
end

#is_voicemail=(value) ⇒ Object

Sets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the isVoicemail property.

Returns:

  • a void



442
443
444
# File 'lib/models/message_rule_predicates.rb', line 442

def is_voicemail=(value)
    @is_voicemail = value
end

#message_action_flagObject

Gets the messageActionFlag property value. Represents the flag-for-action value that appears on an incoming message in order for the condition or exception to apply. The possible values are: any, call, doNotForward, followUp, fyi, forward, noResponseNecessary, read, reply, replyToAll, review.

Returns:

  • a message_action_flag



449
450
451
# File 'lib/models/message_rule_predicates.rb', line 449

def message_action_flag
    return @message_action_flag
end

#message_action_flag=(value) ⇒ Object

Sets the messageActionFlag property value. Represents the flag-for-action value that appears on an incoming message in order for the condition or exception to apply. The possible values are: any, call, doNotForward, followUp, fyi, forward, noResponseNecessary, read, reply, replyToAll, review.

Parameters:

  • value

    Value to set for the messageActionFlag property.

Returns:

  • a void



457
458
459
# File 'lib/models/message_rule_predicates.rb', line 457

def message_action_flag=(value)
    @message_action_flag = value
end

#not_sent_to_meObject

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



464
465
466
# File 'lib/models/message_rule_predicates.rb', line 464

def not_sent_to_me
    return @not_sent_to_me
end

#not_sent_to_me=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the notSentToMe property.

Returns:

  • a void



472
473
474
# File 'lib/models/message_rule_predicates.rb', line 472

def not_sent_to_me=(value)
    @not_sent_to_me = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



479
480
481
# File 'lib/models/message_rule_predicates.rb', line 479

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



487
488
489
# File 'lib/models/message_rule_predicates.rb', line 487

def odata_type=(value)
    @odata_type = value
end

#recipient_containsObject

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



494
495
496
# File 'lib/models/message_rule_predicates.rb', line 494

def recipient_contains
    return @recipient_contains
end

#recipient_contains=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the recipientContains property.

Returns:

  • a void



502
503
504
# File 'lib/models/message_rule_predicates.rb', line 502

def recipient_contains=(value)
    @recipient_contains = value
end

#sender_containsObject

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



509
510
511
# File 'lib/models/message_rule_predicates.rb', line 509

def sender_contains
    return @sender_contains
end

#sender_contains=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the senderContains property.

Returns:

  • a void



517
518
519
# File 'lib/models/message_rule_predicates.rb', line 517

def sender_contains=(value)
    @sender_contains = value
end

#sensitivityObject

Gets the sensitivity property value. Represents the sensitivity level that must be stamped on an incoming message in order for the condition or exception to apply. The possible values are: normal, personal, private, confidential.

Returns:

  • a sensitivity



524
525
526
# File 'lib/models/message_rule_predicates.rb', line 524

def sensitivity
    return @sensitivity
end

#sensitivity=(value) ⇒ Object

Sets the sensitivity property value. Represents the sensitivity level that must be stamped on an incoming message in order for the condition or exception to apply. The possible values are: normal, personal, private, confidential.

Parameters:

  • value

    Value to set for the sensitivity property.

Returns:

  • a void



532
533
534
# File 'lib/models/message_rule_predicates.rb', line 532

def sensitivity=(value)
    @sensitivity = value
end

#sent_cc_meObject

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



539
540
541
# File 'lib/models/message_rule_predicates.rb', line 539

def sent_cc_me
    return @sent_cc_me
end

#sent_cc_me=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the sentCcMe property.

Returns:

  • a void



547
548
549
# File 'lib/models/message_rule_predicates.rb', line 547

def sent_cc_me=(value)
    @sent_cc_me = value
end

#sent_only_to_meObject

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



554
555
556
# File 'lib/models/message_rule_predicates.rb', line 554

def sent_only_to_me
    return @sent_only_to_me
end

#sent_only_to_me=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the sentOnlyToMe property.

Returns:

  • a void



562
563
564
# File 'lib/models/message_rule_predicates.rb', line 562

def sent_only_to_me=(value)
    @sent_only_to_me = value
end

#sent_to_addressesObject

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



569
570
571
# File 'lib/models/message_rule_predicates.rb', line 569

def sent_to_addresses
    return @sent_to_addresses
end

#sent_to_addresses=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the sentToAddresses property.

Returns:

  • a void



577
578
579
# File 'lib/models/message_rule_predicates.rb', line 577

def sent_to_addresses=(value)
    @sent_to_addresses = value
end

#sent_to_meObject

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



584
585
586
# File 'lib/models/message_rule_predicates.rb', line 584

def sent_to_me
    return @sent_to_me
end

#sent_to_me=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the sentToMe property.

Returns:

  • a void



592
593
594
# File 'lib/models/message_rule_predicates.rb', line 592

def sent_to_me=(value)
    @sent_to_me = value
end

#sent_to_or_cc_meObject

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



599
600
601
# File 'lib/models/message_rule_predicates.rb', line 599

def sent_to_or_cc_me
    return @sent_to_or_cc_me
end

#sent_to_or_cc_me=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the sentToOrCcMe property.

Returns:

  • a void



607
608
609
# File 'lib/models/message_rule_predicates.rb', line 607

def sent_to_or_cc_me=(value)
    @sent_to_or_cc_me = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
# File 'lib/models/message_rule_predicates.rb', line 615

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_collection_of_primitive_values("bodyContains", @body_contains)
    writer.write_collection_of_primitive_values("bodyOrSubjectContains", @body_or_subject_contains)
    writer.write_collection_of_primitive_values("categories", @categories)
    writer.write_collection_of_object_values("fromAddresses", @from_addresses)
    writer.write_boolean_value("hasAttachments", @has_attachments)
    writer.write_collection_of_primitive_values("headerContains", @header_contains)
    writer.write_enum_value("importance", @importance)
    writer.write_boolean_value("isApprovalRequest", @is_approval_request)
    writer.write_boolean_value("isAutomaticForward", @is_automatic_forward)
    writer.write_boolean_value("isAutomaticReply", @is_automatic_reply)
    writer.write_boolean_value("isEncrypted", @is_encrypted)
    writer.write_boolean_value("isMeetingRequest", @is_meeting_request)
    writer.write_boolean_value("isMeetingResponse", @is_meeting_response)
    writer.write_boolean_value("isNonDeliveryReport", @is_non_delivery_report)
    writer.write_boolean_value("isPermissionControlled", @is_permission_controlled)
    writer.write_boolean_value("isReadReceipt", @is_read_receipt)
    writer.write_boolean_value("isSigned", @is_signed)
    writer.write_boolean_value("isVoicemail", @is_voicemail)
    writer.write_enum_value("messageActionFlag", @message_action_flag)
    writer.write_boolean_value("notSentToMe", @not_sent_to_me)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_collection_of_primitive_values("recipientContains", @recipient_contains)
    writer.write_collection_of_primitive_values("senderContains", @sender_contains)
    writer.write_enum_value("sensitivity", @sensitivity)
    writer.write_boolean_value("sentCcMe", @sent_cc_me)
    writer.write_boolean_value("sentOnlyToMe", @sent_only_to_me)
    writer.write_collection_of_object_values("sentToAddresses", @sent_to_addresses)
    writer.write_boolean_value("sentToMe", @sent_to_me)
    writer.write_boolean_value("sentToOrCcMe", @sent_to_or_cc_me)
    writer.write_collection_of_primitive_values("subjectContains", @subject_contains)
    writer.write_object_value("withinSizeRange", @within_size_range)
    writer.write_additional_data(@additional_data)
end

#subject_containsObject

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



654
655
656
# File 'lib/models/message_rule_predicates.rb', line 654

def subject_contains
    return @subject_contains
end

#subject_contains=(value) ⇒ Object

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.

Parameters:

  • value

    Value to set for the subjectContains property.

Returns:

  • a void



662
663
664
# File 'lib/models/message_rule_predicates.rb', line 662

def subject_contains=(value)
    @subject_contains = value
end

#within_size_rangeObject

Gets the withinSizeRange property value. Represents the minimum and maximum sizes (in kilobytes) that an incoming message must fall in between in order for the condition or exception to apply.

Returns:

  • a size_range



669
670
671
# File 'lib/models/message_rule_predicates.rb', line 669

def within_size_range
    return @within_size_range
end

#within_size_range=(value) ⇒ Object

Sets the withinSizeRange property value. Represents the minimum and maximum sizes (in kilobytes) that an incoming message must fall in between in order for the condition or exception to apply.

Parameters:

  • value

    Value to set for the withinSizeRange property.

Returns:

  • a void



677
678
679
# File 'lib/models/message_rule_predicates.rb', line 677

def within_size_range=(value)
    @within_size_range = value
end