Refactor SOL003 Adapter to organize its modules
[so.git] / adapters / etsi-sol003-adapter / etsi-sol003-lcm / etsi-sol003-lcm-adapter / src / main / java / org / onap / so / adapters / vnfmadapter / extclients / vim / model / AccessInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2019 Nordix Foundation.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.adapters.vnfmadapter.extclients.vim.model;
22
23 import java.util.Objects;
24
25 public class AccessInfo {
26
27     protected String projectId;
28     protected String projectName;
29     protected String domainName;
30     protected VimCredentials credentials;
31
32     public String getProjectId() {
33         return projectId;
34     }
35
36     public void setProjectId(final String value) {
37         projectId = value;
38     }
39
40     public String getProjectName() {
41         return projectName;
42     }
43
44     public void setProjectName(final String value) {
45         projectName = value;
46     }
47
48     public String getDomainName() {
49         return domainName;
50     }
51
52     public void setDomainName(final String value) {
53         domainName = value;
54     }
55
56     public VimCredentials getCredentials() {
57         return credentials;
58     }
59
60     public void setCredentials(final VimCredentials value) {
61         credentials = value;
62     }
63
64     @Override
65     public boolean equals(final java.lang.Object o) {
66         if (this == o) {
67             return true;
68         }
69         if (o == null || getClass() != o.getClass()) {
70             return false;
71         }
72         final AccessInfo accessInfo = (AccessInfo) o;
73         return Objects.equals(this.projectId, accessInfo.projectId)
74                 && Objects.equals(this.projectName, accessInfo.projectName)
75                 && Objects.equals(this.domainName, accessInfo.domainName)
76                 && Objects.equals(this.credentials, accessInfo.credentials);
77     }
78
79     @Override
80     public int hashCode() {
81         return Objects.hash(projectId, projectName, domainName, credentials);
82     }
83
84     @Override
85     public String toString() {
86         final StringBuilder sb = new StringBuilder();
87         sb.append("class AccessInfo {\n");
88
89         sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
90         sb.append("    projectName: ").append(toIndentedString(projectName)).append("\n");
91         sb.append("    domainName: ").append(toIndentedString(domainName)).append("\n");
92         sb.append("    credentials: ").append(toIndentedString(credentials)).append("\n");
93         sb.append("}");
94         return sb.toString();
95     }
96
97     /**
98      * Convert the given object to string with each line indented by 4 spaces (except the first line).
99      */
100     private String toIndentedString(final java.lang.Object o) {
101         if (o == null) {
102             return "null";
103         }
104         return o.toString().replace("\n", "\n    ");
105     }
106
107 }