/******************************************************************************* * Copyright © 2017-2018 AT&T Intellectual Property. * * 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 org.onap.ccsdk.apps.ms.vlantagapi.core.model; import jakarta.validation.Valid; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty; /** * AssignVlanTagRequestInput.java Purpose: Provide Assign VlanTag Request Input Model * * @author Saurav Paira * @version 1.0 */ public class AssignVlanTagRequestInput { private @Valid String policyInstanceName = null; private @Valid String resourceName = null; private @Valid String resourceValue = null; private @Valid String scopeId = null; private @Valid String vlanTagKey = null; private @Valid String vlanType = null; public AssignVlanTagRequestInput policyInstanceName(String policyInstanceName) { this.policyInstanceName = policyInstanceName; return this; } @ApiModelProperty(value = "") @JsonProperty("policy-instance-name") public String getPolicyInstanceName() { return policyInstanceName; } public void setPolicyInstanceName(String policyInstanceName) { this.policyInstanceName = policyInstanceName; } /** **/ public AssignVlanTagRequestInput resourceName(String resourceName) { this.resourceName = resourceName; return this; } @ApiModelProperty(value = "") @JsonProperty("resource-name") public String getResourceName() { return resourceName; } public void setResourceName(String resourceName) { this.resourceName = resourceName; } /** **/ public AssignVlanTagRequestInput resourceValue(String resourceValue) { this.resourceValue = resourceValue; return this; } @ApiModelProperty(value = "") @JsonProperty("resource-value") public String getResourceValue() { return resourceValue; } public void setResourceValue(String resourceValue) { this.resourceValue = resourceValue; } /** **/ public AssignVlanTagRequestInput scopeId(String scopeId) { this.scopeId = scopeId; return this; } @ApiModelProperty(value = "") @JsonProperty("scope-id") public String getScopeId() { return scopeId; } public void setScopeId(String scopeId) { this.scopeId = scopeId; } /** **/ public AssignVlanTagRequestInput vlanTagKey(String vlanTagKey) { this.vlanTagKey = vlanTagKey; return this; } @ApiModelProperty(value = "") @JsonProperty("vlan-tag-key") public String getVlanTagKey() { return vlanTagKey; } public void setVlanTagKey(String vlanTagKey) { this.vlanTagKey = vlanTagKey; } /** **/ public AssignVlanTagRequestInput vlanType(String vlanType) { this.vlanType = vlanType; return this; } @ApiModelProperty(value = "") @JsonProperty("vlan-type") public String getVlanType() { return vlanType; } public void setVlanType(String vlanType) { this.vlanType = vlanType; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AssignVlanTagRequestInput assignVlanTagRequestInput = (AssignVlanTagRequestInput) o; return Objects.equals(policyInstanceName, assignVlanTagRequestInput.policyInstanceName) && Objects.equals(resourceName, assignVlanTagRequestInput.resourceName) && Objects.equals(resourceValue, assignVlanTagRequestInput.resourceValue) && Objects.equals(scopeId, assignVlanTagRequestInput.scopeId) && Objects.equals(vlanTagKey, assignVlanTagRequestInput.vlanTagKey) && Objects.equals(vlanType, assignVlanTagRequestInput.vlanType); } @Override public int hashCode() { return Objects.hash(policyInstanceName, resourceName, resourceValue, scopeId, vlanTagKey, vlanType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AssignVlanTagRequestInput {\n"); sb.append(" policyInstanceName: ").append(toIndentedString(policyInstanceName)).append("\n"); sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); sb.append(" resourceValue: ").append(toIndentedString(resourceValue)).append("\n"); sb.append(" scopeId: ").append(toIndentedString(scopeId)).append("\n"); sb.append(" vlanTagKey: ").append(toIndentedString(vlanTagKey)).append("\n"); sb.append(" vlanType: ").append(toIndentedString(vlanType)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }