All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.nacos.naming.pojo.IpAddressInfo Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 1999-2018 Alibaba Group Holding Ltd.
 *
 * 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
 *
 *      http://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 com.alibaba.nacos.naming.pojo;

import java.io.Serializable;
import java.util.Map;

/**
 * @author caogu.wyp
 * @version $Id: IpAddressInfo.java, v 0.1 2018-09-17 上午10:52 caogu.wyp Exp $$
 */
public class IpAddressInfo implements Serializable {

    private boolean             valid;

    private Map metadata;

    private Integer             port;

    private String              ip;

    private Double              weight;

    private boolean             enabled;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isValid() {
        return valid;
    }

    /**
     * Setter method for property valid .
     *
     * @param valid value to be assigned to property valid
     */
    public void setValid(boolean valid) {
        this.valid = valid;
    }

    public Map getMetadata() {
        return metadata;
    }

    /**
     * Setter method for property metadata .
     *
     * @param metadata value to be assigned to property metadata
     */
    public void setMetadata(Map metadata) {
        this.metadata = metadata;
    }

    public Integer getPort() {
        return port;
    }

    /**
     * Setter method for property port .
     *
     * @param port value to be assigned to property port
     */
    public void setPort(Integer port) {
        this.port = port;
    }

    public String getIp() {
        return ip;
    }

    /**
     * Setter method for property ip .
     *
     * @param ip value to be assigned to property ip
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    public Double getWeight() {
        return weight;
    }

    /**
     * Setter method for property weight .
     *
     * @param weight value to be assigned to property weight
     */
    public void setWeight(Double weight) {
        this.weight = weight;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy