-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
EdifactValidationOverride.cs
53 lines (47 loc) · 3.18 KB
/
EdifactValidationOverride.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.Logic.Models
{
/// <summary> The Edifact validation override settings. </summary>
public partial class EdifactValidationOverride
{
/// <summary> Initializes a new instance of <see cref="EdifactValidationOverride"/>. </summary>
/// <param name="messageId"> The message id on which the validation settings has to be applied. </param>
/// <param name="enforceCharacterSet"> The value indicating whether to validate character Set. </param>
/// <param name="validateEdiTypes"> The value indicating whether to validate EDI types. </param>
/// <param name="validateXsdTypes"> The value indicating whether to validate XSD types. </param>
/// <param name="allowLeadingAndTrailingSpacesAndZeroes"> The value indicating whether to allow leading and trailing spaces and zeroes. </param>
/// <param name="trailingSeparatorPolicy"> The trailing separator policy. </param>
/// <param name="trimLeadingAndTrailingSpacesAndZeroes"> The value indicating whether to trim leading and trailing spaces and zeroes. </param>
/// <exception cref="ArgumentNullException"> <paramref name="messageId"/> is null. </exception>
public EdifactValidationOverride(string messageId, bool enforceCharacterSet, bool validateEdiTypes, bool validateXsdTypes, bool allowLeadingAndTrailingSpacesAndZeroes, TrailingSeparatorPolicy trailingSeparatorPolicy, bool trimLeadingAndTrailingSpacesAndZeroes)
{
Argument.AssertNotNull(messageId, nameof(messageId));
MessageId = messageId;
EnforceCharacterSet = enforceCharacterSet;
ValidateEdiTypes = validateEdiTypes;
ValidateXsdTypes = validateXsdTypes;
AllowLeadingAndTrailingSpacesAndZeroes = allowLeadingAndTrailingSpacesAndZeroes;
TrailingSeparatorPolicy = trailingSeparatorPolicy;
TrimLeadingAndTrailingSpacesAndZeroes = trimLeadingAndTrailingSpacesAndZeroes;
}
/// <summary> The message id on which the validation settings has to be applied. </summary>
public string MessageId { get; set; }
/// <summary> The value indicating whether to validate character Set. </summary>
public bool EnforceCharacterSet { get; set; }
/// <summary> The value indicating whether to validate EDI types. </summary>
public bool ValidateEdiTypes { get; set; }
/// <summary> The value indicating whether to validate XSD types. </summary>
public bool ValidateXsdTypes { get; set; }
/// <summary> The value indicating whether to allow leading and trailing spaces and zeroes. </summary>
public bool AllowLeadingAndTrailingSpacesAndZeroes { get; set; }
/// <summary> The trailing separator policy. </summary>
public TrailingSeparatorPolicy TrailingSeparatorPolicy { get; set; }
/// <summary> The value indicating whether to trim leading and trailing spaces and zeroes. </summary>
public bool TrimLeadingAndTrailingSpacesAndZeroes { get; set; }
}
}