* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END============================================
+ * Modifications copyright (c) 2019 AT&T
* ===================================================================
*
*/
+
package org.onap.clamp.clds.sdc.controller.installer;
import java.util.Objects;
public class MicroService {
- private final String name;
- private final String inputFrom;
+ private final String name;
+ private final String modelType;
+ private final String blueprintName;
+ private final String inputFrom;
+ private String mappedNameJpa;
+
+ public MicroService(String name, String modelType, String inputFrom, String mappedNameJpa, String blueprintName) {
+ this.name = name;
+ this.inputFrom = inputFrom;
+ this.mappedNameJpa = mappedNameJpa;
+ this.modelType = modelType;
+ this.blueprintName = blueprintName;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getModelType() {
+ return modelType;
+ }
- public MicroService(String name, String inputFrom) {
- this.name = name;
- this.inputFrom = inputFrom;
- }
- public String getName() {
- return name;
- }
+ public String getInputFrom() {
+ return inputFrom;
+ }
- public String getInputFrom() {
- return inputFrom;
- }
+ public String getBlueprintName() {
+ return blueprintName;
+ }
- @Override
- public String toString() {
- return "MicroService{" +
- "name='" + name + '\'' +
- ", inputFrom='" + inputFrom + '\'' +
- '}';
- }
+ @Override
+ public String toString() {
+ return "MicroService{" + "name='" + name + '\'' + ", modelType='" + modelType + '\'' + ", inputFrom='"
+ + inputFrom + '\'' + ", mappedNameJpa='" + mappedNameJpa + '\'' + ", blueprintName='"
+ + blueprintName + '\'' + '}';
+ }
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
+ public String getMappedNameJpa() {
+ return mappedNameJpa;
}
- if (o == null || getClass() != o.getClass()) {
- return false;
+
+ public void setMappedNameJpa(String mappedNameJpa) {
+ this.mappedNameJpa = mappedNameJpa;
}
- MicroService that = (MicroService) o;
- return name.equals(that.name) &&
- inputFrom.equals(that.inputFrom);
- }
- @Override
- public int hashCode() {
- return Objects.hash(name, inputFrom);
- }
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ MicroService that = (MicroService) o;
+ return name.equals(that.name) && modelType.equals(that.modelType) && inputFrom.equals(that.inputFrom) && mappedNameJpa.equals(that.mappedNameJpa) && blueprintName.equals(that.blueprintName);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name, modelType, inputFrom, mappedNameJpa, blueprintName);
+ }
}