/** * 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 com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.management.sql.SqlSubResource; /** * Represents an Azure SQL server firewall rule. */ @JsonFlatten public class ServerFirewallRuleInner extends SqlSubResource { /** * Kind of server that contains this firewall rule. */ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY) private String kind; /** * Location of the server that contains this firewall rule. */ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; /** * The start IP address of the Azure SQL server firewall rule. Must be IPv4 * format. */ @JsonProperty(value = "properties.startIpAddress") private String startIpAddress; /** * The end IP address of the Azure SQL server firewall rule. Must be IPv4 * format. */ @JsonProperty(value = "properties.endIpAddress") private String endIpAddress; /** * Get the kind value. * * @return the kind value */ public String kind() { return this.kind; } /** * Get the location value. * * @return the location value */ public String location() { return this.location; } /** * Get the startIpAddress value. * * @return the startIpAddress value */ public String startIpAddress() { return this.startIpAddress; } /** * Set the startIpAddress value. * * @param startIpAddress the startIpAddress value to set * @return the ServerFirewallRuleInner object itself. */ public ServerFirewallRuleInner withStartIpAddress(String startIpAddress) { this.startIpAddress = startIpAddress; return this; } /** * Get the endIpAddress value. * * @return the endIpAddress value */ public String endIpAddress() { return this.endIpAddress; } /** * Set the endIpAddress value. * * @param endIpAddress the endIpAddress value to set * @return the ServerFirewallRuleInner object itself. */ public ServerFirewallRuleInner withEndIpAddress(String endIpAddress) { this.endIpAddress = endIpAddress; return this; } }