io.gravitee.repository.management.model.Environment 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.repository.management.model;
import java.util.List;
import java.util.Objects;
/**
* @author Florent CHAMFROY (florent.chamfroy at graviteesource.com)
* @author GraviteeSource Team
*/
public class Environment {
private String id;
private String cockpitId;
private List hrids;
private String name;
private String description;
private String organizationId;
private List domainRestrictions;
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 getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getOrganizationId() {
return organizationId;
}
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public List getDomainRestrictions() {
return domainRestrictions;
}
public void setDomainRestrictions(List domainRestrictions) {
this.domainRestrictions = domainRestrictions;
}
public List getHrids() {
return hrids;
}
public void setHrids(List hrids) {
this.hrids = hrids;
}
public String getCockpitId() {
return cockpitId;
}
public void setCockpitId(String cockpitId) {
this.cockpitId = cockpitId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Environment that = (Environment) o;
return (
Objects.equals(id, that.id) &&
Objects.equals(cockpitId, that.cockpitId) &&
Objects.equals(hrids, that.hrids) &&
Objects.equals(name, that.name) &&
Objects.equals(description, that.description) &&
Objects.equals(organizationId, that.organizationId) &&
Objects.equals(domainRestrictions, that.domainRestrictions)
);
}
@Override
public int hashCode() {
return Objects.hash(id, cockpitId, hrids, name, description, organizationId, domainRestrictions);
}
@Override
public String toString() {
return (
"Environment{" +
"id='" +
id +
'\'' +
", cockpitId='" +
cockpitId +
'\'' +
", hrids=" +
hrids +
", name='" +
name +
'\'' +
", description='" +
description +
'\'' +
", organizationId='" +
organizationId +
'\'' +
", domainRestrictions=" +
domainRestrictions +
'}'
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy