-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ServicePlacementRequiredDomainPolicy.cs
39 lines (32 loc) · 1.92 KB
/
ServicePlacementRequiredDomainPolicy.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models
{
/// <summary> Describes the policy to be used for placement of a Service Fabric service where the instances or replicas of that service must be placed in a particular domain. </summary>
public partial class ServicePlacementRequiredDomainPolicy : ManagedServicePlacementPolicy
{
/// <summary> Initializes a new instance of ServicePlacementRequiredDomainPolicy. </summary>
/// <param name="domainName"> The name of the domain that should used for placement as per this policy. </param>
/// <exception cref="ArgumentNullException"> <paramref name="domainName"/> is null. </exception>
public ServicePlacementRequiredDomainPolicy(string domainName)
{
Argument.AssertNotNull(domainName, nameof(domainName));
DomainName = domainName;
ServicePlacementPolicyType = ServicePlacementPolicyType.RequiredDomain;
}
/// <summary> Initializes a new instance of ServicePlacementRequiredDomainPolicy. </summary>
/// <param name="servicePlacementPolicyType"> The type of placement policy for a service fabric service. Following are the possible values. </param>
/// <param name="domainName"> The name of the domain that should used for placement as per this policy. </param>
internal ServicePlacementRequiredDomainPolicy(ServicePlacementPolicyType servicePlacementPolicyType, string domainName) : base(servicePlacementPolicyType)
{
DomainName = domainName;
ServicePlacementPolicyType = servicePlacementPolicyType;
}
/// <summary> The name of the domain that should used for placement as per this policy. </summary>
public string DomainName { get; set; }
}
}