com.microsoft.azure.management.sql.implementation.FailoverGroupInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-sql Show documentation
Show all versions of azure-mgmt-sql Show documentation
This package contains Microsoft Azure SDK for SQL Management module.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.sql.implementation;
import java.util.Map;
import com.microsoft.azure.management.sql.FailoverGroupReadWriteEndpoint;
import com.microsoft.azure.management.sql.FailoverGroupReadOnlyEndpoint;
import com.microsoft.azure.management.sql.FailoverGroupReplicationRole;
import java.util.List;
import com.microsoft.azure.management.sql.PartnerInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;
/**
* A failover group.
*/
@JsonFlatten
public class FailoverGroupInner extends ProxyResource {
/**
* Resource location.
*/
@JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
private String location;
/**
* Resource tags.
*/
@JsonProperty(value = "tags")
private Map tags;
/**
* Read-write endpoint of the failover group instance.
*/
@JsonProperty(value = "properties.readWriteEndpoint", required = true)
private FailoverGroupReadWriteEndpoint readWriteEndpoint;
/**
* Read-only endpoint of the failover group instance.
*/
@JsonProperty(value = "properties.readOnlyEndpoint")
private FailoverGroupReadOnlyEndpoint readOnlyEndpoint;
/**
* Local replication role of the failover group instance. Possible values
* include: 'Primary', 'Secondary'.
*/
@JsonProperty(value = "properties.replicationRole", access = JsonProperty.Access.WRITE_ONLY)
private FailoverGroupReplicationRole replicationRole;
/**
* Replication state of the failover group instance.
*/
@JsonProperty(value = "properties.replicationState", access = JsonProperty.Access.WRITE_ONLY)
private String replicationState;
/**
* List of partner server information for the failover group.
*/
@JsonProperty(value = "properties.partnerServers", required = true)
private List partnerServers;
/**
* List of databases in the failover group.
*/
@JsonProperty(value = "properties.databases")
private List databases;
/**
* Get resource location.
*
* @return the location value
*/
public String location() {
return this.location;
}
/**
* Get resource tags.
*
* @return the tags value
*/
public Map tags() {
return this.tags;
}
/**
* Set resource tags.
*
* @param tags the tags value to set
* @return the FailoverGroupInner object itself.
*/
public FailoverGroupInner withTags(Map tags) {
this.tags = tags;
return this;
}
/**
* Get read-write endpoint of the failover group instance.
*
* @return the readWriteEndpoint value
*/
public FailoverGroupReadWriteEndpoint readWriteEndpoint() {
return this.readWriteEndpoint;
}
/**
* Set read-write endpoint of the failover group instance.
*
* @param readWriteEndpoint the readWriteEndpoint value to set
* @return the FailoverGroupInner object itself.
*/
public FailoverGroupInner withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint) {
this.readWriteEndpoint = readWriteEndpoint;
return this;
}
/**
* Get read-only endpoint of the failover group instance.
*
* @return the readOnlyEndpoint value
*/
public FailoverGroupReadOnlyEndpoint readOnlyEndpoint() {
return this.readOnlyEndpoint;
}
/**
* Set read-only endpoint of the failover group instance.
*
* @param readOnlyEndpoint the readOnlyEndpoint value to set
* @return the FailoverGroupInner object itself.
*/
public FailoverGroupInner withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint) {
this.readOnlyEndpoint = readOnlyEndpoint;
return this;
}
/**
* Get local replication role of the failover group instance. Possible values include: 'Primary', 'Secondary'.
*
* @return the replicationRole value
*/
public FailoverGroupReplicationRole replicationRole() {
return this.replicationRole;
}
/**
* Get replication state of the failover group instance.
*
* @return the replicationState value
*/
public String replicationState() {
return this.replicationState;
}
/**
* Get list of partner server information for the failover group.
*
* @return the partnerServers value
*/
public List partnerServers() {
return this.partnerServers;
}
/**
* Set list of partner server information for the failover group.
*
* @param partnerServers the partnerServers value to set
* @return the FailoverGroupInner object itself.
*/
public FailoverGroupInner withPartnerServers(List partnerServers) {
this.partnerServers = partnerServers;
return this;
}
/**
* Get list of databases in the failover group.
*
* @return the databases value
*/
public List databases() {
return this.databases;
}
/**
* Set list of databases in the failover group.
*
* @param databases the databases value to set
* @return the FailoverGroupInner object itself.
*/
public FailoverGroupInner withDatabases(List databases) {
this.databases = databases;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy