com.microsoft.azure.management.network.EffectiveNetworkSecurityGroupAssociation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-network Show documentation
Show all versions of azure-mgmt-network Show documentation
This package contains Microsoft Azure Network Management SDK.
/**
* 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 com.microsoft.azure.SubResource;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The effective network security group association.
*/
public class EffectiveNetworkSecurityGroupAssociation {
/**
* The ID of the subnet if assigned.
*/
@JsonProperty(value = "subnet")
private SubResource subnet;
/**
* The ID of the network interface if assigned.
*/
@JsonProperty(value = "networkInterface")
private SubResource networkInterface;
/**
* Get the subnet value.
*
* @return the subnet value
*/
public SubResource subnet() {
return this.subnet;
}
/**
* Set the subnet value.
*
* @param subnet the subnet value to set
* @return the EffectiveNetworkSecurityGroupAssociation object itself.
*/
public EffectiveNetworkSecurityGroupAssociation withSubnet(SubResource subnet) {
this.subnet = subnet;
return this;
}
/**
* Get the networkInterface value.
*
* @return the networkInterface value
*/
public SubResource networkInterface() {
return this.networkInterface;
}
/**
* Set the networkInterface value.
*
* @param networkInterface the networkInterface value to set
* @return the EffectiveNetworkSecurityGroupAssociation object itself.
*/
public EffectiveNetworkSecurityGroupAssociation withNetworkInterface(SubResource networkInterface) {
this.networkInterface = networkInterface;
return this;
}
}