View Javadoc

1   /*
2    * Copyright (C) 2011 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.api.domain.input;
18  
19  import com.atlassian.jira.rest.client.api.domain.AssigneeType;
20  
21  import javax.annotation.Nullable;
22  
23  /**
24   * Details about project component to be created or updated;
25   *
26   * @since com.atlassian.jira.rest.client.api 0.3, server 4.4
27   */
28  public class ComponentInput {
29  	@Nullable
30  	private final String name;
31  	@Nullable
32  	private final String description;
33  	@Nullable
34  	private final String leadUsername;
35  	@Nullable
36  	private final AssigneeType assigneeType;
37  
38  	public ComponentInput(@Nullable String name, @Nullable String description, @Nullable String leadUsername, @Nullable AssigneeType assigneeType) {
39  		this.name = name;
40  		this.description = description;
41  		this.leadUsername = leadUsername;
42  		this.assigneeType = assigneeType;
43  	}
44  
45  	@Nullable
46  	public String getName() {
47  		return name;
48  	}
49  
50  	@Nullable
51  	public String getDescription() {
52  		return description;
53  	}
54  
55  	@Nullable
56  	public String getLeadUsername() {
57  		return leadUsername;
58  	}
59  
60  	@Nullable
61  	public AssigneeType getAssigneeType() {
62  		return assigneeType;
63  	}
64  
65  	//	private final String projectKey;
66  }