001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019package org.apache.maven.scm; 020 021import java.io.Serializable; 022 023/** 024 * parameters used by implementation to perform untag operation 025 * 026 * @since 1.11.2 027 */ 028public class ScmUntagParameters implements Serializable { 029 /** 030 * serial version id 031 */ 032 private static final long serialVersionUID = -7508529445894924957L; 033 034 /** 035 * id of tag to delete/remove 036 */ 037 private String tag; 038 039 /** 040 * commit message 041 */ 042 private String message; 043 044 /** 045 * constructor with tag and message 046 * 047 * @param tag tag id 048 * @param message commit message 049 */ 050 public ScmUntagParameters(String tag, String message) { 051 this.tag = tag; 052 this.message = message; 053 } 054 055 /** 056 * get tag id 057 * 058 * @return tag id 059 */ 060 public String getTag() { 061 return tag; 062 } 063 064 /** 065 * set tag id 066 * 067 * @param tag tag id 068 */ 069 public void setTag(String tag) { 070 this.tag = tag; 071 } 072 073 /** 074 * get commit message 075 * 076 * @return commit message 077 */ 078 public String getMessage() { 079 return message; 080 } 081 082 /** 083 * set commit message 084 * 085 * @param message commit message 086 */ 087 public void setMessage(String message) { 088 this.message = message; 089 } 090 091 @Override 092 public String toString() { 093 return ScmUntagParameters.class.getSimpleName() + " [tag=" + tag + ", message=" + message + "]"; 094 } 095}