Class WsfcDomainProfile
- java.lang.Object
-
- com.azure.resourcemanager.sqlvirtualmachine.models.WsfcDomainProfile
-
public final class WsfcDomainProfile extends Object
Active Directory account details to operate Windows Server Failover Cluster.
-
-
Constructor Summary
Constructors Constructor Description WsfcDomainProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
clusterBootstrapAccount()
Get the clusterBootstrapAccount property: Account name used for creating cluster (at minimum needs permissions to 'Create Computer Objects' in domain).String
clusterOperatorAccount()
Get the clusterOperatorAccount property: Account name used for operating cluster i.e.String
domainFqdn()
Get the domainFqdn property: Fully qualified name of the domain.String
fileShareWitnessPath()
Get the fileShareWitnessPath property: Optional path for fileshare witness.String
ouPath()
Get the ouPath property: Organizational Unit path in which the nodes and cluster will be present.String
sqlServiceAccount()
Get the sqlServiceAccount property: Account name under which SQL service will run on all participating SQL virtual machines in the cluster.String
storageAccountPrimaryKey()
Get the storageAccountPrimaryKey property: Primary key of the witness storage account.String
storageAccountUrl()
Get the storageAccountUrl property: Fully qualified ARM resource id of the witness storage account.void
validate()
Validates the instance.WsfcDomainProfile
withClusterBootstrapAccount(String clusterBootstrapAccount)
Set the clusterBootstrapAccount property: Account name used for creating cluster (at minimum needs permissions to 'Create Computer Objects' in domain).WsfcDomainProfile
withClusterOperatorAccount(String clusterOperatorAccount)
Set the clusterOperatorAccount property: Account name used for operating cluster i.e.WsfcDomainProfile
withDomainFqdn(String domainFqdn)
Set the domainFqdn property: Fully qualified name of the domain.WsfcDomainProfile
withFileShareWitnessPath(String fileShareWitnessPath)
Set the fileShareWitnessPath property: Optional path for fileshare witness.WsfcDomainProfile
withOuPath(String ouPath)
Set the ouPath property: Organizational Unit path in which the nodes and cluster will be present.WsfcDomainProfile
withSqlServiceAccount(String sqlServiceAccount)
Set the sqlServiceAccount property: Account name under which SQL service will run on all participating SQL virtual machines in the cluster.WsfcDomainProfile
withStorageAccountPrimaryKey(String storageAccountPrimaryKey)
Set the storageAccountPrimaryKey property: Primary key of the witness storage account.WsfcDomainProfile
withStorageAccountUrl(String storageAccountUrl)
Set the storageAccountUrl property: Fully qualified ARM resource id of the witness storage account.
-
-
-
Method Detail
-
domainFqdn
public String domainFqdn()
Get the domainFqdn property: Fully qualified name of the domain.- Returns:
- the domainFqdn value.
-
withDomainFqdn
public WsfcDomainProfile withDomainFqdn(String domainFqdn)
Set the domainFqdn property: Fully qualified name of the domain.- Parameters:
domainFqdn
- the domainFqdn value to set.- Returns:
- the WsfcDomainProfile object itself.
-
ouPath
public String ouPath()
Get the ouPath property: Organizational Unit path in which the nodes and cluster will be present.- Returns:
- the ouPath value.
-
withOuPath
public WsfcDomainProfile withOuPath(String ouPath)
Set the ouPath property: Organizational Unit path in which the nodes and cluster will be present.- Parameters:
ouPath
- the ouPath value to set.- Returns:
- the WsfcDomainProfile object itself.
-
clusterBootstrapAccount
public String clusterBootstrapAccount()
Get the clusterBootstrapAccount property: Account name used for creating cluster (at minimum needs permissions to 'Create Computer Objects' in domain).- Returns:
- the clusterBootstrapAccount value.
-
withClusterBootstrapAccount
public WsfcDomainProfile withClusterBootstrapAccount(String clusterBootstrapAccount)
Set the clusterBootstrapAccount property: Account name used for creating cluster (at minimum needs permissions to 'Create Computer Objects' in domain).- Parameters:
clusterBootstrapAccount
- the clusterBootstrapAccount value to set.- Returns:
- the WsfcDomainProfile object itself.
-
clusterOperatorAccount
public String clusterOperatorAccount()
Get the clusterOperatorAccount property: Account name used for operating cluster i.e. will be part of administrators group on all the participating virtual machines in the cluster.- Returns:
- the clusterOperatorAccount value.
-
withClusterOperatorAccount
public WsfcDomainProfile withClusterOperatorAccount(String clusterOperatorAccount)
Set the clusterOperatorAccount property: Account name used for operating cluster i.e. will be part of administrators group on all the participating virtual machines in the cluster.- Parameters:
clusterOperatorAccount
- the clusterOperatorAccount value to set.- Returns:
- the WsfcDomainProfile object itself.
-
sqlServiceAccount
public String sqlServiceAccount()
Get the sqlServiceAccount property: Account name under which SQL service will run on all participating SQL virtual machines in the cluster.- Returns:
- the sqlServiceAccount value.
-
withSqlServiceAccount
public WsfcDomainProfile withSqlServiceAccount(String sqlServiceAccount)
Set the sqlServiceAccount property: Account name under which SQL service will run on all participating SQL virtual machines in the cluster.- Parameters:
sqlServiceAccount
- the sqlServiceAccount value to set.- Returns:
- the WsfcDomainProfile object itself.
-
fileShareWitnessPath
public String fileShareWitnessPath()
Get the fileShareWitnessPath property: Optional path for fileshare witness.- Returns:
- the fileShareWitnessPath value.
-
withFileShareWitnessPath
public WsfcDomainProfile withFileShareWitnessPath(String fileShareWitnessPath)
Set the fileShareWitnessPath property: Optional path for fileshare witness.- Parameters:
fileShareWitnessPath
- the fileShareWitnessPath value to set.- Returns:
- the WsfcDomainProfile object itself.
-
storageAccountUrl
public String storageAccountUrl()
Get the storageAccountUrl property: Fully qualified ARM resource id of the witness storage account.- Returns:
- the storageAccountUrl value.
-
withStorageAccountUrl
public WsfcDomainProfile withStorageAccountUrl(String storageAccountUrl)
Set the storageAccountUrl property: Fully qualified ARM resource id of the witness storage account.- Parameters:
storageAccountUrl
- the storageAccountUrl value to set.- Returns:
- the WsfcDomainProfile object itself.
-
storageAccountPrimaryKey
public String storageAccountPrimaryKey()
Get the storageAccountPrimaryKey property: Primary key of the witness storage account.- Returns:
- the storageAccountPrimaryKey value.
-
withStorageAccountPrimaryKey
public WsfcDomainProfile withStorageAccountPrimaryKey(String storageAccountPrimaryKey)
Set the storageAccountPrimaryKey property: Primary key of the witness storage account.- Parameters:
storageAccountPrimaryKey
- the storageAccountPrimaryKey value to set.- Returns:
- the WsfcDomainProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-