001// -------------------------------------------------------------------------------- 002// Copyright 2002-2024 Echo Three, LLC 003// 004// Licensed under the Apache License, Version 2.0 (the "License"); 005// you may not use this file except in compliance with the License. 006// You may obtain a copy of the License at 007// 008// http://www.apache.org/licenses/LICENSE-2.0 009// 010// Unless required by applicable law or agreed to in writing, software 011// distributed under the License is distributed on an "AS IS" BASIS, 012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013// See the License for the specific language governing permissions and 014// limitations under the License. 015// -------------------------------------------------------------------------------- 016 017package com.echothree.model.control.core.common.transfer; 018 019import com.echothree.util.common.transfer.BaseTransfer; 020 021public class ServiceTransfer 022 extends BaseTransfer { 023 024 private String serviceName; 025 private Integer port; 026 private ProtocolTransfer protocol; 027 private Boolean isDefault; 028 private Integer sortOrder; 029 private String description; 030 031 /** Creates a new instance of ServiceTransfer */ 032 public ServiceTransfer(String serviceName, Integer port, ProtocolTransfer protocol, Boolean isDefault, Integer sortOrder, String description) { 033 this.serviceName = serviceName; 034 this.port = port; 035 this.protocol = protocol; 036 this.isDefault = isDefault; 037 this.sortOrder = sortOrder; 038 this.description = description; 039 } 040 041 /** 042 * Returns the serviceName. 043 * @return the serviceName 044 */ 045 public String getServiceName() { 046 return serviceName; 047 } 048 049 /** 050 * Sets the serviceName. 051 * @param serviceName the serviceName to set 052 */ 053 public void setServiceName(String serviceName) { 054 this.serviceName = serviceName; 055 } 056 057 /** 058 * Returns the port. 059 * @return the port 060 */ 061 public Integer getPort() { 062 return port; 063 } 064 065 /** 066 * Sets the port. 067 * @param port the port to set 068 */ 069 public void setPort(Integer port) { 070 this.port = port; 071 } 072 073 /** 074 * Returns the protocol. 075 * @return the protocol 076 */ 077 public ProtocolTransfer getProtocol() { 078 return protocol; 079 } 080 081 /** 082 * Sets the protocol. 083 * @param protocol the protocol to set 084 */ 085 public void setProtocol(ProtocolTransfer protocol) { 086 this.protocol = protocol; 087 } 088 089 /** 090 * Returns the isDefault. 091 * @return the isDefault 092 */ 093 public Boolean getIsDefault() { 094 return isDefault; 095 } 096 097 /** 098 * Sets the isDefault. 099 * @param isDefault the isDefault to set 100 */ 101 public void setIsDefault(Boolean isDefault) { 102 this.isDefault = isDefault; 103 } 104 105 /** 106 * Returns the sortOrder. 107 * @return the sortOrder 108 */ 109 public Integer getSortOrder() { 110 return sortOrder; 111 } 112 113 /** 114 * Sets the sortOrder. 115 * @param sortOrder the sortOrder to set 116 */ 117 public void setSortOrder(Integer sortOrder) { 118 this.sortOrder = sortOrder; 119 } 120 121 /** 122 * Returns the description. 123 * @return the description 124 */ 125 public String getDescription() { 126 return description; 127 } 128 129 /** 130 * Sets the description. 131 * @param description the description to set 132 */ 133 public void setDescription(String description) { 134 this.description = description; 135 } 136 137}