content: /*
   * Copyright 1999-2025 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.api.naming.pojo.maintainer;
  
  import java.io.Serializable;
  
  /**
   * Nacos service subscriber information.
   *
   * @author xiweng.yy
   */
  public class SubscriberInfo implements Serializable {
      
      private static final long serialVersionUID = -3803634488440573042L;
      
      private String namespaceId;
      
      private String groupName;
      
      private String serviceName;
      
      private String ip;
      
      private int port;
      
      private String agent;
      
      private String appName;
      
      public String getNamespaceId() {
          return namespaceId;
      }
      
      public void setNamespaceId(String namespaceId) {
          this.namespaceId = namespaceId;
      }
      
      public String getGroupName() {
          return groupName;
      }
      
      public void setGroupName(String groupName) {
          this.groupName = groupName;
      }
      
      public String getServiceName() {
          return serviceName;
      }
      
      public void setServiceName(String serviceName) {
          this.serviceName = serviceName;
      }
      
      public String getIp() {
          return ip;
      }
      
      public void setIp(String ip) {
          this.ip = ip;
      }
      
      public int getPort() {
          return port;
      }
      
      public void setPort(int port) {
          this.port = port;
      }
      
      public String getAgent() {
          return agent;
      }
      
      public void setAgent(String agent) {
          this.agent = agent;
      }
      
      public String getAppName() {
          return appName;
      }
      
      public void setAppName(String appName) {
          this.appName = appName;
      }
      
      public String getAddress() {
          return ip + ":" + port;
      }
  }
  