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.etsisol003adapter.lcm.extclients.vim.model;
23 import java.util.Objects;
25 public class VimCredentials {
27 protected String username;
29 protected String password;
31 public String getUsername() {
35 public void setUsername(final String value) {
39 public String getPassword() {
43 public void setPassword(final String password) {
44 this.password = password;
48 public boolean equals(final java.lang.Object o) {
52 if (o == null || getClass() != o.getClass()) {
55 final VimCredentials vimCredentials = (VimCredentials) o;
56 return Objects.equals(this.username, vimCredentials.username)
57 && Objects.equals(this.password, vimCredentials.password);
61 public int hashCode() {
62 return Objects.hash(username, password);
66 public String toString() {
67 final StringBuilder sb = new StringBuilder();
68 sb.append("class AccessInfo {\n");
70 sb.append(" username: ").append(toIndentedString(username)).append("\n");
71 sb.append(" password: ").append(toIndentedString(password)).append("\n");
77 * Convert the given object to string with each line indented by 4 spaces (except the first line).
79 private String toIndentedString(final java.lang.Object o) {
83 return o.toString().replace("\n", "\n ");