org.trustedanalytics.cloud.cc.api.CcNewServiceBinding Maven / Gradle / Ivy
/**
* Copyright (c) 2015 Intel Corporation
*
* 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.trustedanalytics.cloud.cc.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.UUID;
public class CcNewServiceBinding {
private UUID appGuid;
private UUID serviceInstanceGuid;
public CcNewServiceBinding() {
}
public CcNewServiceBinding(UUID appGuid, UUID serviceInstanceGuid) {
this.appGuid = appGuid;
this.serviceInstanceGuid = serviceInstanceGuid;
}
@JsonProperty("app_guid")
public UUID getAppGuid() {
return appGuid;
}
@JsonProperty("app_guid")
public void setAppGuid(UUID appGuid) {
this.appGuid = appGuid;
}
@JsonProperty("service_instance_guid")
public UUID getServiceInstanceGuid() {
return serviceInstanceGuid;
}
public void setServiceInstanceGuid(UUID serviceInstanceGuid) {
this.serviceInstanceGuid = serviceInstanceGuid;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CcNewServiceBinding that = (CcNewServiceBinding) o;
if (appGuid != null ? !appGuid.equals(that.appGuid) : that.appGuid != null) {
return false;
}
if (serviceInstanceGuid != null ?
!serviceInstanceGuid.equals(that.serviceInstanceGuid) :
that.serviceInstanceGuid != null) {
return false;
}
return true;
}
@Override
public int hashCode() {
int result = appGuid != null ? appGuid.hashCode() : 0;
result = 31 * result + (serviceInstanceGuid != null ? serviceInstanceGuid.hashCode() : 0);
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy