1 /*
2 * Copyright (C) 2010 Atlassian
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.atlassian.jira.rest.client.domain.input;
18
19 /**
20 * New value fo selected field - used while changing issue fields - e.g. while transitioning issue.
21 *
22 * @since v0.1
23 */
24 public class FieldInput {
25 private final String id;
26 private final Object value;
27
28 /**
29 * @param id field id
30 * @param value new value for this issue field
31 */
32 public FieldInput(String id, Object value) {
33 this.id = id;
34 this.value = value;
35 }
36
37 /**
38 * @return field id
39 */
40 public String getId() {
41 return id;
42 }
43
44 /**
45 * @return new value for this issue field
46 */
47 public Object getValue() {
48 return value;
49 }
50 }