7636b10f9b75829f847fa108888c3754924280ce
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / sync / entity / SelfLinkDescriptor.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017 Amdocs
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  *
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  */
23 package org.onap.aai.sparky.sync.entity;
24
25 /**
26  * The Class SelfLinkDescriptor.
27  */
28 public class SelfLinkDescriptor {
29   private String selfLink;
30   private String entityType;
31   private String depthModifier;
32
33   public String getDepthModifier() {
34     return depthModifier;
35   }
36
37   public void setDepthModifier(String depthModifier) {
38     this.depthModifier = depthModifier;
39   }
40
41   public String getSelfLink() {
42     return selfLink;
43   }
44
45   public void setSelfLink(String selfLink) {
46     this.selfLink = selfLink;
47   }
48
49   public String getEntityType() {
50     return entityType;
51   }
52
53   public void setEntityType(String entityType) {
54     this.entityType = entityType;
55   }
56
57   public SelfLinkDescriptor(String selfLink) {
58     this(selfLink, null, null);
59   }
60   
61   /**
62    * Instantiates a new self link descriptor.
63    *
64    * @param selfLink the self link
65    * @param entityType the entity type
66    */
67   public SelfLinkDescriptor(String selfLink, String entityType) {
68     this(selfLink, null, entityType);
69   }
70
71   public SelfLinkDescriptor(String selfLink, String depthModifier, String entityType) {
72     this.selfLink = selfLink;
73     this.entityType = entityType;
74     this.depthModifier = depthModifier;
75   }
76
77   /* (non-Javadoc)
78    * @see java.lang.Object#toString()
79    */
80   @Override
81   public String toString() {
82     return "SelfLinkDescriptor [" + (selfLink != null ? "selfLink=" + selfLink + ", " : "")
83         + (entityType != null ? "entityType=" + entityType + ", " : "")
84         + (depthModifier != null ? "depthModifier=" + depthModifier : "") + "]";
85   }
86
87 }
88