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.
/** * 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; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
A failover group update request.
/** * A failover group update request. */
@JsonFlatten public class FailoverGroupUpdate {
Read-write endpoint of the failover group instance.
/** * Read-write endpoint of the failover group instance. */
@JsonProperty(value = "properties.readWriteEndpoint") private FailoverGroupReadWriteEndpoint readWriteEndpoint;
Read-only endpoint of the failover group instance.
/** * Read-only endpoint of the failover group instance. */
@JsonProperty(value = "properties.readOnlyEndpoint") private FailoverGroupReadOnlyEndpoint readOnlyEndpoint;
List of databases in the failover group.
/** * List of databases in the failover group. */
@JsonProperty(value = "properties.databases") private List<String> databases;
Resource tags.
/** * Resource tags. */
@JsonProperty(value = "tags") private Map<String, String> tags;
Get read-write endpoint of the failover group instance.
Returns:the readWriteEndpoint value
/** * 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.
Params:
  • readWriteEndpoint – the readWriteEndpoint value to set
Returns:the FailoverGroupUpdate object itself.
/** * Set read-write endpoint of the failover group instance. * * @param readWriteEndpoint the readWriteEndpoint value to set * @return the FailoverGroupUpdate object itself. */
public FailoverGroupUpdate withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint) { this.readWriteEndpoint = readWriteEndpoint; return this; }
Get read-only endpoint of the failover group instance.
Returns:the readOnlyEndpoint value
/** * 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.
Params:
  • readOnlyEndpoint – the readOnlyEndpoint value to set
Returns:the FailoverGroupUpdate object itself.
/** * Set read-only endpoint of the failover group instance. * * @param readOnlyEndpoint the readOnlyEndpoint value to set * @return the FailoverGroupUpdate object itself. */
public FailoverGroupUpdate withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint) { this.readOnlyEndpoint = readOnlyEndpoint; return this; }
Get list of databases in the failover group.
Returns:the databases value
/** * Get list of databases in the failover group. * * @return the databases value */
public List<String> databases() { return this.databases; }
Set list of databases in the failover group.
Params:
  • databases – the databases value to set
Returns:the FailoverGroupUpdate object itself.
/** * Set list of databases in the failover group. * * @param databases the databases value to set * @return the FailoverGroupUpdate object itself. */
public FailoverGroupUpdate withDatabases(List<String> databases) { this.databases = databases; return this; }
Get resource tags.
Returns:the tags value
/** * Get resource tags. * * @return the tags value */
public Map<String, String> tags() { return this.tags; }
Set resource tags.
Params:
  • tags – the tags value to set
Returns:the FailoverGroupUpdate object itself.
/** * Set resource tags. * * @param tags the tags value to set * @return the FailoverGroupUpdate object itself. */
public FailoverGroupUpdate withTags(Map<String, String> tags) { this.tags = tags; return this; } }