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
 
   9  *      http://www.apache.org/licenses/LICENSE-2.0
 
  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.
 
  17  * SPDX-License-Identifier: Apache-2.0
 
  18  * ============LICENSE_END=========================================================
 
  21 package org.onap.so.adapters.vnfmadapter.extclients.vim.model;
 
  23 import java.util.Objects;
 
  25 public class AccessInfo {
 
  27     protected String projectId;
 
  28     protected String projectName;
 
  29     protected String domainName;
 
  30     protected VimCredentials credentials;
 
  32     public String getProjectId() {
 
  36     public void setProjectId(final String value) {
 
  40     public String getProjectName() {
 
  44     public void setProjectName(final String value) {
 
  48     public String getDomainName() {
 
  52     public void setDomainName(final String value) {
 
  56     public VimCredentials getCredentials() {
 
  60     public void setCredentials(final VimCredentials value) {
 
  65     public boolean equals(final java.lang.Object o) {
 
  69         if (o == null || getClass() != o.getClass()) {
 
  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);
 
  80     public int hashCode() {
 
  81         return Objects.hash(projectId, projectName, domainName, credentials);
 
  85     public String toString() {
 
  86         final StringBuilder sb = new StringBuilder();
 
  87         sb.append("class AccessInfo {\n");
 
  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");
 
  98      * Convert the given object to string with each line indented by 4 spaces (except the first line).
 
 100     private String toIndentedString(final java.lang.Object o) {
 
 104         return o.toString().replace("\n", "\n    ");