io.gravitee.management.model.PlanSecurityEntity Maven / Gradle / Ivy
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 io.gravitee.management.model;
import java.util.Objects;
/**
* @author Nicolas GERAUD (nicolas.geraud at graviteesource.com)
* @author GraviteeSource Team
*/
public class PlanSecurityEntity {
private String id;
private String name;
private String policy;
public PlanSecurityEntity(String id, String name, String policy) {
this.id = id;
this.name = name;
this.policy = policy;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPolicy() {
return policy;
}
public void setPolicy(String policy) {
this.policy = policy;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof PlanSecurityEntity)) return false;
PlanSecurityEntity that = (PlanSecurityEntity) o;
return id.equals(that.id);
}
@Override
public int hashCode() {
return Objects.hash(id);
}
@Override
public String toString() {
return "PlanSecurityEntity{" +
"id='" + id + '\'' +
", name='" + name + '\'' +
", policy='" + policy + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy