All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dell.cpsd.hal.data.provider.api.EndpointCredential Maven / Gradle / Ivy


package com.dell.cpsd.hal.data.provider.api;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * EndpointCredential
 * 

* * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "name", "username", "password", "community" }) public class EndpointCredential { @JsonProperty("name") private String name; @JsonProperty("username") private String username; @JsonProperty("password") private String password; @JsonProperty("community") private String community; /** * No args constructor for use in serialization * */ public EndpointCredential() { } /** * * @param password * @param name * @param community * @param username */ public EndpointCredential(String name, String username, String password, String community) { super(); this.name = name; this.username = username; this.password = password; this.community = community; } /** * * @return * The name */ @JsonProperty("name") public String getName() { return name; } /** * * @param name * The name */ @JsonProperty("name") public void setName(String name) { this.name = name; } /** * * @return * The username */ @JsonProperty("username") public String getUsername() { return username; } /** * * @param username * The username */ @JsonProperty("username") public void setUsername(String username) { this.username = username; } /** * * @return * The password */ @JsonProperty("password") public String getPassword() { return password; } /** * * @param password * The password */ @JsonProperty("password") public void setPassword(String password) { this.password = password; } /** * * @return * The community */ @JsonProperty("community") public String getCommunity() { return community; } /** * * @param community * The community */ @JsonProperty("community") public void setCommunity(String community) { this.community = community; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } @Override public int hashCode() { return new HashCodeBuilder().append(name).append(username).append(password).append(community).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof EndpointCredential) == false) { return false; } EndpointCredential rhs = ((EndpointCredential) other); return new EqualsBuilder().append(name, rhs.name).append(username, rhs.username).append(password, rhs.password).append(community, rhs.community).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy