Java tutorial
/******************************************************************************* * (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP * * Licensed under the Apache License, Version 2.0 (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *******************************************************************************/ package com.hp.ov.sdk.dto; import java.io.Serializable; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.ToStringBuilder; public class AssociatedResource implements Serializable { /** * */ private static final long serialVersionUID = 1L; private String resourceName; private String resourceUri; private String resourceCategory; private AssociationType associationType; public String getResourceName() { return resourceName; } public void setResourceName(final String resourceName) { this.resourceName = resourceName; } public String getResourceUri() { return resourceUri; } public void setResourceUri(final String resourceUri) { this.resourceUri = resourceUri; } public String getResourceCategory() { return resourceCategory; } public void setResourceCategory(final String resourceCategory) { this.resourceCategory = resourceCategory; } public AssociationType getAssociationType() { return associationType; } public void setAssociationType(final AssociationType associationType) { this.associationType = associationType; } /** * (non-Javadoc) * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } /** * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(final Object obj) { return EqualsBuilder.reflectionEquals(this, obj); } /** * (non-Javadoc) * * @see java.lang.Object#toString() */ @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }