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.Map; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource;
Represents an elastic pool update.
/** * Represents an elastic pool update. */
@JsonFlatten public class ElasticPoolUpdate extends ProxyResource {
Resource tags.
/** * Resource tags. */
@JsonProperty(value = "tags") private Map<String, String> tags;
The creation date of the elastic pool (ISO8601 format).
/** * The creation date of the elastic pool (ISO8601 format). */
@JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY) private DateTime creationDate;
The state of the elastic pool. Possible values include: 'Creating', 'Ready', 'Disabled'.
/** * The state of the elastic pool. Possible values include: 'Creating', * 'Ready', 'Disabled'. */
@JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY) private ElasticPoolState state;
The edition of the elastic pool. Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', 'BusinessCritical'.
/** * The edition of the elastic pool. Possible values include: 'Basic', * 'Standard', 'Premium', 'GeneralPurpose', 'BusinessCritical'. */
@JsonProperty(value = "properties.edition") private ElasticPoolEdition edition;
The total shared DTU for the database elastic pool.
/** * The total shared DTU for the database elastic pool. */
@JsonProperty(value = "properties.dtu") private Integer dtu;
The maximum DTU any one database can consume.
/** * The maximum DTU any one database can consume. */
@JsonProperty(value = "properties.databaseDtuMax") private Integer databaseDtuMax;
The minimum DTU all databases are guaranteed.
/** * The minimum DTU all databases are guaranteed. */
@JsonProperty(value = "properties.databaseDtuMin") private Integer databaseDtuMin;
Gets storage limit for the database elastic pool in MB.
/** * Gets storage limit for the database elastic pool in MB. */
@JsonProperty(value = "properties.storageMB") private Integer storageMB;
Whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
/** * Whether or not this database elastic pool is zone redundant, which means * the replicas of this database will be spread across multiple * availability zones. */
@JsonProperty(value = "properties.zoneRedundant") private Boolean zoneRedundant;
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 ElasticPoolUpdate object itself.
/** * Set resource tags. * * @param tags the tags value to set * @return the ElasticPoolUpdate object itself. */
public ElasticPoolUpdate withTags(Map<String, String> tags) { this.tags = tags; return this; }
Get the creation date of the elastic pool (ISO8601 format).
Returns:the creationDate value
/** * Get the creation date of the elastic pool (ISO8601 format). * * @return the creationDate value */
public DateTime creationDate() { return this.creationDate; }
Get the state of the elastic pool. Possible values include: 'Creating', 'Ready', 'Disabled'.
Returns:the state value
/** * Get the state of the elastic pool. Possible values include: 'Creating', 'Ready', 'Disabled'. * * @return the state value */
public ElasticPoolState state() { return this.state; }
Get the edition of the elastic pool. Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', 'BusinessCritical'.
Returns:the edition value
/** * Get the edition of the elastic pool. Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', 'BusinessCritical'. * * @return the edition value */
public ElasticPoolEdition edition() { return this.edition; }
Set the edition of the elastic pool. Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', 'BusinessCritical'.
Params:
  • edition – the edition value to set
Returns:the ElasticPoolUpdate object itself.
/** * Set the edition of the elastic pool. Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', 'BusinessCritical'. * * @param edition the edition value to set * @return the ElasticPoolUpdate object itself. */
public ElasticPoolUpdate withEdition(ElasticPoolEdition edition) { this.edition = edition; return this; }
Get the total shared DTU for the database elastic pool.
Returns:the dtu value
/** * Get the total shared DTU for the database elastic pool. * * @return the dtu value */
public Integer dtu() { return this.dtu; }
Set the total shared DTU for the database elastic pool.
Params:
  • dtu – the dtu value to set
Returns:the ElasticPoolUpdate object itself.
/** * Set the total shared DTU for the database elastic pool. * * @param dtu the dtu value to set * @return the ElasticPoolUpdate object itself. */
public ElasticPoolUpdate withDtu(Integer dtu) { this.dtu = dtu; return this; }
Get the maximum DTU any one database can consume.
Returns:the databaseDtuMax value
/** * Get the maximum DTU any one database can consume. * * @return the databaseDtuMax value */
public Integer databaseDtuMax() { return this.databaseDtuMax; }
Set the maximum DTU any one database can consume.
Params:
  • databaseDtuMax – the databaseDtuMax value to set
Returns:the ElasticPoolUpdate object itself.
/** * Set the maximum DTU any one database can consume. * * @param databaseDtuMax the databaseDtuMax value to set * @return the ElasticPoolUpdate object itself. */
public ElasticPoolUpdate withDatabaseDtuMax(Integer databaseDtuMax) { this.databaseDtuMax = databaseDtuMax; return this; }
Get the minimum DTU all databases are guaranteed.
Returns:the databaseDtuMin value
/** * Get the minimum DTU all databases are guaranteed. * * @return the databaseDtuMin value */
public Integer databaseDtuMin() { return this.databaseDtuMin; }
Set the minimum DTU all databases are guaranteed.
Params:
  • databaseDtuMin – the databaseDtuMin value to set
Returns:the ElasticPoolUpdate object itself.
/** * Set the minimum DTU all databases are guaranteed. * * @param databaseDtuMin the databaseDtuMin value to set * @return the ElasticPoolUpdate object itself. */
public ElasticPoolUpdate withDatabaseDtuMin(Integer databaseDtuMin) { this.databaseDtuMin = databaseDtuMin; return this; }
Get gets storage limit for the database elastic pool in MB.
Returns:the storageMB value
/** * Get gets storage limit for the database elastic pool in MB. * * @return the storageMB value */
public Integer storageMB() { return this.storageMB; }
Set gets storage limit for the database elastic pool in MB.
Params:
  • storageMB – the storageMB value to set
Returns:the ElasticPoolUpdate object itself.
/** * Set gets storage limit for the database elastic pool in MB. * * @param storageMB the storageMB value to set * @return the ElasticPoolUpdate object itself. */
public ElasticPoolUpdate withStorageMB(Integer storageMB) { this.storageMB = storageMB; return this; }
Get whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
Returns:the zoneRedundant value
/** * Get whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones. * * @return the zoneRedundant value */
public Boolean zoneRedundant() { return this.zoneRedundant; }
Set whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
Params:
  • zoneRedundant – the zoneRedundant value to set
Returns:the ElasticPoolUpdate object itself.
/** * Set whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones. * * @param zoneRedundant the zoneRedundant value to set * @return the ElasticPoolUpdate object itself. */
public ElasticPoolUpdate withZoneRedundant(Boolean zoneRedundant) { this.zoneRedundant = zoneRedundant; return this; } }