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.network;
import java.util.List;
import com.microsoft.azure.management.network.implementation.SecurityRuleInner;
import com.fasterxml.jackson.annotation.JsonProperty;
All security rules associated with the network interface.
/**
* All security rules associated with the network interface.
*/
public class SecurityRuleAssociations {
Network interface and it's custom security rules.
/**
* Network interface and it's custom security rules.
*/
@JsonProperty(value = "networkInterfaceAssociation")
private NetworkInterfaceAssociation networkInterfaceAssociation;
Subnet and it's custom security rules.
/**
* Subnet and it's custom security rules.
*/
@JsonProperty(value = "subnetAssociation")
private SubnetAssociation subnetAssociation;
Collection of default security rules of the network security group.
/**
* Collection of default security rules of the network security group.
*/
@JsonProperty(value = "defaultSecurityRules")
private List<SecurityRuleInner> defaultSecurityRules;
Collection of effective security rules.
/**
* Collection of effective security rules.
*/
@JsonProperty(value = "effectiveSecurityRules")
private List<EffectiveNetworkSecurityRule> effectiveSecurityRules;
Get network interface and it's custom security rules.
Returns: the networkInterfaceAssociation value
/**
* Get network interface and it's custom security rules.
*
* @return the networkInterfaceAssociation value
*/
public NetworkInterfaceAssociation networkInterfaceAssociation() {
return this.networkInterfaceAssociation;
}
Set network interface and it's custom security rules.
Params: - networkInterfaceAssociation – the networkInterfaceAssociation value to set
Returns: the SecurityRuleAssociations object itself.
/**
* Set network interface and it's custom security rules.
*
* @param networkInterfaceAssociation the networkInterfaceAssociation value to set
* @return the SecurityRuleAssociations object itself.
*/
public SecurityRuleAssociations withNetworkInterfaceAssociation(NetworkInterfaceAssociation networkInterfaceAssociation) {
this.networkInterfaceAssociation = networkInterfaceAssociation;
return this;
}
Get subnet and it's custom security rules.
Returns: the subnetAssociation value
/**
* Get subnet and it's custom security rules.
*
* @return the subnetAssociation value
*/
public SubnetAssociation subnetAssociation() {
return this.subnetAssociation;
}
Set subnet and it's custom security rules.
Params: - subnetAssociation – the subnetAssociation value to set
Returns: the SecurityRuleAssociations object itself.
/**
* Set subnet and it's custom security rules.
*
* @param subnetAssociation the subnetAssociation value to set
* @return the SecurityRuleAssociations object itself.
*/
public SecurityRuleAssociations withSubnetAssociation(SubnetAssociation subnetAssociation) {
this.subnetAssociation = subnetAssociation;
return this;
}
Get collection of default security rules of the network security group.
Returns: the defaultSecurityRules value
/**
* Get collection of default security rules of the network security group.
*
* @return the defaultSecurityRules value
*/
public List<SecurityRuleInner> defaultSecurityRules() {
return this.defaultSecurityRules;
}
Set collection of default security rules of the network security group.
Params: - defaultSecurityRules – the defaultSecurityRules value to set
Returns: the SecurityRuleAssociations object itself.
/**
* Set collection of default security rules of the network security group.
*
* @param defaultSecurityRules the defaultSecurityRules value to set
* @return the SecurityRuleAssociations object itself.
*/
public SecurityRuleAssociations withDefaultSecurityRules(List<SecurityRuleInner> defaultSecurityRules) {
this.defaultSecurityRules = defaultSecurityRules;
return this;
}
Get collection of effective security rules.
Returns: the effectiveSecurityRules value
/**
* Get collection of effective security rules.
*
* @return the effectiveSecurityRules value
*/
public List<EffectiveNetworkSecurityRule> effectiveSecurityRules() {
return this.effectiveSecurityRules;
}
Set collection of effective security rules.
Params: - effectiveSecurityRules – the effectiveSecurityRules value to set
Returns: the SecurityRuleAssociations object itself.
/**
* Set collection of effective security rules.
*
* @param effectiveSecurityRules the effectiveSecurityRules value to set
* @return the SecurityRuleAssociations object itself.
*/
public SecurityRuleAssociations withEffectiveSecurityRules(List<EffectiveNetworkSecurityRule> effectiveSecurityRules) {
this.effectiveSecurityRules = effectiveSecurityRules;
return this;
}
}