/*
 * Copyright 2017-2020 original authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.micronaut.discovery.cloud;

import java.io.Serializable;

Represents information about a network interface in the Cloud.
Author:rvanderwerf, Graeme Rocher
Since:1.0
/** * Represents information about a network interface in the Cloud. * * @author rvanderwerf * @author Graeme Rocher * @since 1.0 */
public class NetworkInterface implements Serializable { private String ipv4; private String ipv6; private String name; private String mac; private String id; private String gateway; private String network; private String netmask;
Returns:The IPv4 address
/** * @return The IPv4 address */
public String getIpv4() { return ipv4; }
Returns:The IPv6 address
/** * @return The IPv6 address */
public String getIpv6() { return ipv6; }
Returns:Name of the Network interface
/** * @return Name of the Network interface */
public String getName() { return name; }
Returns:The MAC address
/** * @return The MAC address */
public String getMac() { return mac; }
Returns:The ID of network interface
/** * @return The ID of network interface */
public String getId() { return id; }
Returns:The gateway
/** * @return The gateway */
public String getGateway() { return gateway; }
Returns:The network
/** * @return The network */
public String getNetwork() { return network; }
Returns:The network mask
/** * @return The network mask */
public String getNetmask() { return netmask; }
Params:
  • ipv4 – The IPv4 address
/** * @param ipv4 The IPv4 address */
protected void setIpv4(String ipv4) { this.ipv4 = ipv4; }
Params:
  • ipv6 – The IPv6 address
/** * @param ipv6 The IPv6 address */
protected void setIpv6(String ipv6) { this.ipv6 = ipv6; }
Params:
  • name – The name
/** * @param name The name */
protected void setName(String name) { this.name = name; }
Params:
  • mac – The MAC address
/** * @param mac The MAC address */
protected void setMac(String mac) { this.mac = mac; }
Params:
  • id – The Id of network interface
/** * @param id The Id of network interface */
protected void setId(String id) { this.id = id; }
Params:
  • gateway – The network gateway
/** * @param gateway The network gateway */
protected void setGateway(String gateway) { this.gateway = gateway; }
Params:
  • network – The network
/** * @param network The network */
protected void setNetwork(String network) { this.network = network; }
Params:
  • netmask – The network mask
/** * @param netmask The network mask */
protected void setNetmask(String netmask) { this.netmask = netmask; } }