com.microsoft.azure.management.sql.implementation.FirewallRuleInner 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 Sql Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* 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.ProxyResource;
/**
* Represents a server firewall rule.
*/
@JsonFlatten
public class FirewallRuleInner extends ProxyResource {
/**
* 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 firewall rule. Must be IPv4 format. Use
* value '0.0.0.0' to represent all Azure-internal IP addresses.
*/
@JsonProperty(value = "properties.startIpAddress", required = true)
private String startIpAddress;
/**
* The end IP address of the firewall rule. Must be IPv4 format. Must be
* greater than or equal to startIpAddress. Use value '0.0.0.0' to
* represent all Azure-internal IP addresses.
*/
@JsonProperty(value = "properties.endIpAddress", required = true)
private String endIpAddress;
/**
* Get kind of server that contains this firewall rule.
*
* @return the kind value
*/
public String kind() {
return this.kind;
}
/**
* Get location of the server that contains this firewall rule.
*
* @return the location value
*/
public String location() {
return this.location;
}
/**
* Get the start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal IP addresses.
*
* @return the startIpAddress value
*/
public String startIpAddress() {
return this.startIpAddress;
}
/**
* Set the start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal IP addresses.
*
* @param startIpAddress the startIpAddress value to set
* @return the FirewallRuleInner object itself.
*/
public FirewallRuleInner withStartIpAddress(String startIpAddress) {
this.startIpAddress = startIpAddress;
return this;
}
/**
* Get the end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses.
*
* @return the endIpAddress value
*/
public String endIpAddress() {
return this.endIpAddress;
}
/**
* Set the end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses.
*
* @param endIpAddress the endIpAddress value to set
* @return the FirewallRuleInner object itself.
*/
public FirewallRuleInner withEndIpAddress(String endIpAddress) {
this.endIpAddress = endIpAddress;
return this;
}
}